Class ReplaceOfferingOptions.Builder

  • Enclosing class:
    ReplaceOfferingOptions

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

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String catalogIdentifier,
                       java.lang.String offeringId)
        Instantiates a new builder with required properties.
        Parameters:
        catalogIdentifier - the catalogIdentifier
        offeringId - the offeringId
    • Method Detail

      • build

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

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

        public ReplaceOfferingOptions.Builder addKeywords​(java.lang.String keywords)
        Adds an keywords to keywords.
        Parameters:
        keywords - the new keywords
        Returns:
        the ReplaceOfferingOptions builder
      • addFeatures

        public ReplaceOfferingOptions.Builder addFeatures​(Feature features)
        Adds an features to features.
        Parameters:
        features - the new features
        Returns:
        the ReplaceOfferingOptions builder
      • addKinds

        public ReplaceOfferingOptions.Builder addKinds​(Kind kinds)
        Adds an kinds to kinds.
        Parameters:
        kinds - the new kinds
        Returns:
        the ReplaceOfferingOptions builder
      • catalogIdentifier

        public ReplaceOfferingOptions.Builder catalogIdentifier​(java.lang.String catalogIdentifier)
        Set the catalogIdentifier.
        Parameters:
        catalogIdentifier - the catalogIdentifier
        Returns:
        the ReplaceOfferingOptions builder
      • offeringId

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

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

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

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

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

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

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

        public ReplaceOfferingOptions.Builder offeringIconUrl​(java.lang.String offeringIconUrl)
        Set the offeringIconUrl.
        Parameters:
        offeringIconUrl - the offeringIconUrl
        Returns:
        the ReplaceOfferingOptions builder
      • offeringDocsUrl

        public ReplaceOfferingOptions.Builder offeringDocsUrl​(java.lang.String offeringDocsUrl)
        Set the offeringDocsUrl.
        Parameters:
        offeringDocsUrl - the offeringDocsUrl
        Returns:
        the ReplaceOfferingOptions builder
      • offeringSupportUrl

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

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

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

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

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

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

        public ReplaceOfferingOptions.Builder longDescription​(java.lang.String longDescription)
        Set the longDescription.
        Parameters:
        longDescription - the longDescription
        Returns:
        the ReplaceOfferingOptions builder
      • features

        public ReplaceOfferingOptions.Builder features​(java.util.List<Feature> features)
        Set the features. Existing features will be replaced.
        Parameters:
        features - the features
        Returns:
        the ReplaceOfferingOptions builder
      • kinds

        public ReplaceOfferingOptions.Builder kinds​(java.util.List<Kind> kinds)
        Set the kinds. Existing kinds will be replaced.
        Parameters:
        kinds - the kinds
        Returns:
        the ReplaceOfferingOptions builder
      • permitRequestIbmPublicPublish

        public ReplaceOfferingOptions.Builder permitRequestIbmPublicPublish​(java.lang.Boolean permitRequestIbmPublicPublish)
        Set the permitRequestIbmPublicPublish.
        Parameters:
        permitRequestIbmPublicPublish - the permitRequestIbmPublicPublish
        Returns:
        the ReplaceOfferingOptions builder
      • ibmPublishApproved

        public ReplaceOfferingOptions.Builder ibmPublishApproved​(java.lang.Boolean ibmPublishApproved)
        Set the ibmPublishApproved.
        Parameters:
        ibmPublishApproved - the ibmPublishApproved
        Returns:
        the ReplaceOfferingOptions builder
      • publicPublishApproved

        public ReplaceOfferingOptions.Builder publicPublishApproved​(java.lang.Boolean publicPublishApproved)
        Set the publicPublishApproved.
        Parameters:
        publicPublishApproved - the publicPublishApproved
        Returns:
        the ReplaceOfferingOptions builder
      • publicOriginalCrn

        public ReplaceOfferingOptions.Builder publicOriginalCrn​(java.lang.String publicOriginalCrn)
        Set the publicOriginalCrn.
        Parameters:
        publicOriginalCrn - the publicOriginalCrn
        Returns:
        the ReplaceOfferingOptions builder
      • publishPublicCrn

        public ReplaceOfferingOptions.Builder publishPublicCrn​(java.lang.String publishPublicCrn)
        Set the publishPublicCrn.
        Parameters:
        publishPublicCrn - the publishPublicCrn
        Returns:
        the ReplaceOfferingOptions builder
      • portalApprovalRecord

        public ReplaceOfferingOptions.Builder portalApprovalRecord​(java.lang.String portalApprovalRecord)
        Set the portalApprovalRecord.
        Parameters:
        portalApprovalRecord - the portalApprovalRecord
        Returns:
        the ReplaceOfferingOptions builder
      • portalUiUrl

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

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

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

        public ReplaceOfferingOptions.Builder metadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Set the metadata.
        Parameters:
        metadata - the metadata
        Returns:
        the ReplaceOfferingOptions builder
      • disclaimer

        public ReplaceOfferingOptions.Builder disclaimer​(java.lang.String disclaimer)
        Set the disclaimer.
        Parameters:
        disclaimer - the disclaimer
        Returns:
        the ReplaceOfferingOptions builder
      • hidden

        public ReplaceOfferingOptions.Builder hidden​(java.lang.Boolean hidden)
        Set the hidden.
        Parameters:
        hidden - the hidden
        Returns:
        the ReplaceOfferingOptions builder
      • provider

        public ReplaceOfferingOptions.Builder provider​(java.lang.String provider)
        Set the provider.
        Parameters:
        provider - the provider
        Returns:
        the ReplaceOfferingOptions builder
      • media

        public ReplaceOfferingOptions.Builder media​(java.util.List<MediaItem> media)
        Set the media. Existing media will be replaced.
        Parameters:
        media - the media
        Returns:
        the ReplaceOfferingOptions builder