Class Attachment.Builder

  • Enclosing class:
    Attachment

    public static class Attachment.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Attachment.Builder id​(String id)
        Unique identifier that is immutable on creation
        Parameters:
        id - the value to set
        Returns:
        this builder
      • sellerCompartmentId

        public Attachment.Builder sellerCompartmentId​(String sellerCompartmentId)
        OCID of the seller’s tenancy (root compartment).
        Parameters:
        sellerCompartmentId - the value to set
        Returns:
        this builder
      • offerId

        public Attachment.Builder offerId​(String offerId)
        Unique identifier of the associated offer that is immutable on creation
        Parameters:
        offerId - the value to set
        Returns:
        this builder
      • buyerCompartmentId

        public Attachment.Builder buyerCompartmentId​(String buyerCompartmentId)
        OCID of the buyer’s tenancy (root compartment).
        Parameters:
        buyerCompartmentId - the value to set
        Returns:
        this builder
      • mimeType

        public Attachment.Builder mimeType​(String mimeType)
        The MIME type of the uploaded data.
        Parameters:
        mimeType - the value to set
        Returns:
        this builder
      • displayName

        public Attachment.Builder displayName​(String displayName)
        The name used to refer to the uploaded data.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • timeCreated

        public Attachment.Builder timeCreated​(Date timeCreated)
        The time the the Offer was created.

        An RFC3339 formatted datetime string

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • freeformTags

        public Attachment.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public Attachment.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder