Class Attachment.Builder
- java.lang.Object
- 
- com.oracle.bmc.marketplaceprivateoffer.model.Attachment.Builder
 
- 
- Enclosing class:
- Attachment
 
 public static class Attachment.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachmentbuild()Attachment.BuilderbuyerCompartmentId(String buyerCompartmentId)OCID of the buyer’s tenancy (root compartment).Attachment.Buildercopy(Attachment model)Attachment.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Attachment.BuilderdisplayName(String displayName)The name used to refer to the uploaded data.Attachment.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Attachment.Builderid(String id)Unique identifier that is immutable on creationAttachment.BuilderlifecycleState(Attachment.LifecycleState lifecycleState)The current state of the Offer.Attachment.BuildermimeType(String mimeType)The MIME type of the uploaded data.Attachment.BuilderofferId(String offerId)Unique identifier of the associated offer that is immutable on creationAttachment.BuildersellerCompartmentId(String sellerCompartmentId)OCID of the seller’s tenancy (root compartment).Attachment.BuildertimeCreated(Date timeCreated)The time the the Offer was created.Attachment.Buildertype(Attachment.Type type)The type of offer attachment.
 
- 
- 
- 
Method Detail- 
idpublic Attachment.Builder id(String id) Unique identifier that is immutable on creation- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
sellerCompartmentIdpublic Attachment.Builder sellerCompartmentId(String sellerCompartmentId) OCID of the seller’s tenancy (root compartment).- Parameters:
- sellerCompartmentId- the value to set
- Returns:
- this builder
 
 - 
offerIdpublic 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
 
 - 
buyerCompartmentIdpublic Attachment.Builder buyerCompartmentId(String buyerCompartmentId) OCID of the buyer’s tenancy (root compartment).- Parameters:
- buyerCompartmentId- the value to set
- Returns:
- this builder
 
 - 
mimeTypepublic Attachment.Builder mimeType(String mimeType) The MIME type of the uploaded data.- Parameters:
- mimeType- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Attachment.Builder displayName(String displayName) The name used to refer to the uploaded data.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
typepublic Attachment.Builder type(Attachment.Type type) The type of offer attachment.- Parameters:
- type- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic 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
 
 - 
lifecycleStatepublic Attachment.Builder lifecycleState(Attachment.LifecycleState lifecycleState) The current state of the Offer.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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
 
 - 
definedTagspublic 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
 
 - 
buildpublic Attachment build() 
 - 
copypublic Attachment.Builder copy(Attachment model) 
 
- 
 
-