Class CatalogObject.Builder

  • Enclosing class:
    CatalogObject

    public static class CatalogObject.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public CatalogObject build()
        Builds a CatalogObject.
        Returns:
        the new CatalogObject instance
      • addTags

        public CatalogObject.Builder addTags​(java.lang.String tags)
        Adds an tags to tags.
        Parameters:
        tags - the new tags
        Returns:
        the CatalogObject builder
      • id

        public CatalogObject.Builder id​(java.lang.String id)
        Set the id.
        Parameters:
        id - the id
        Returns:
        the CatalogObject builder
      • name

        public CatalogObject.Builder name​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the CatalogObject builder
      • rev

        public CatalogObject.Builder rev​(java.lang.String rev)
        Set the rev.
        Parameters:
        rev - the rev
        Returns:
        the CatalogObject builder
      • crn

        public CatalogObject.Builder crn​(java.lang.String crn)
        Set the crn.
        Parameters:
        crn - the crn
        Returns:
        the CatalogObject builder
      • url

        public CatalogObject.Builder url​(java.lang.String url)
        Set the url.
        Parameters:
        url - the url
        Returns:
        the CatalogObject builder
      • parentId

        public CatalogObject.Builder parentId​(java.lang.String parentId)
        Set the parentId.
        Parameters:
        parentId - the parentId
        Returns:
        the CatalogObject builder
      • labelI18n

        public CatalogObject.Builder labelI18n​(java.lang.String labelI18n)
        Set the labelI18n.
        Parameters:
        labelI18n - the labelI18n
        Returns:
        the CatalogObject builder
      • label

        public CatalogObject.Builder label​(java.lang.String label)
        Set the label.
        Parameters:
        label - the label
        Returns:
        the CatalogObject builder
      • tags

        public CatalogObject.Builder tags​(java.util.List<java.lang.String> tags)
        Set the tags. Existing tags will be replaced.
        Parameters:
        tags - the tags
        Returns:
        the CatalogObject builder
      • created

        public CatalogObject.Builder created​(java.util.Date created)
        Set the created.
        Parameters:
        created - the created
        Returns:
        the CatalogObject builder
      • updated

        public CatalogObject.Builder updated​(java.util.Date updated)
        Set the updated.
        Parameters:
        updated - the updated
        Returns:
        the CatalogObject builder
      • shortDescription

        public CatalogObject.Builder shortDescription​(java.lang.String shortDescription)
        Set the shortDescription.
        Parameters:
        shortDescription - the shortDescription
        Returns:
        the CatalogObject builder
      • shortDescriptionI18n

        public CatalogObject.Builder shortDescriptionI18n​(java.lang.String shortDescriptionI18n)
        Set the shortDescriptionI18n.
        Parameters:
        shortDescriptionI18n - the shortDescriptionI18n
        Returns:
        the CatalogObject builder
      • kind

        public CatalogObject.Builder kind​(java.lang.String kind)
        Set the kind.
        Parameters:
        kind - the kind
        Returns:
        the CatalogObject builder
      • state

        public CatalogObject.Builder state​(State state)
        Set the state.
        Parameters:
        state - the state
        Returns:
        the CatalogObject builder
      • catalogId

        public CatalogObject.Builder catalogId​(java.lang.String catalogId)
        Set the catalogId.
        Parameters:
        catalogId - the catalogId
        Returns:
        the CatalogObject builder
      • catalogName

        public CatalogObject.Builder catalogName​(java.lang.String catalogName)
        Set the catalogName.
        Parameters:
        catalogName - the catalogName
        Returns:
        the CatalogObject builder
      • data

        public CatalogObject.Builder data​(java.util.Map<java.lang.String,​java.lang.Object> data)
        Set the data.
        Parameters:
        data - the data
        Returns:
        the CatalogObject builder