Class Attachment.Builder
- java.lang.Object
-
- com.oracle.bmc.marketplaceprivateoffer.model.Attachment.Builder
-
- Enclosing class:
- Attachment
public static class Attachment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachment
build()
Attachment.Builder
buyerCompartmentId(String buyerCompartmentId)
OCID of the buyer’s tenancy (root compartment).Attachment.Builder
copy(Attachment model)
Attachment.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Attachment.Builder
displayName(String displayName)
The name used to refer to the uploaded data.Attachment.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Attachment.Builder
id(String id)
Unique identifier that is immutable on creationAttachment.Builder
lifecycleState(Attachment.LifecycleState lifecycleState)
The current state of the Offer.Attachment.Builder
mimeType(String mimeType)
The MIME type of the uploaded data.Attachment.Builder
offerId(String offerId)
Unique identifier of the associated offer that is immutable on creationAttachment.Builder
sellerCompartmentId(String sellerCompartmentId)
OCID of the seller’s tenancy (root compartment).Attachment.Builder
timeCreated(Date timeCreated)
The time the the Offer was created.Attachment.Builder
type(Attachment.Type type)
The type of offer attachment.
-
-
-
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
-
type
public Attachment.Builder type(Attachment.Type type)
The type of offer attachment.- Parameters:
type
- 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
-
lifecycleState
public Attachment.Builder lifecycleState(Attachment.LifecycleState lifecycleState)
The current state of the Offer.- Parameters:
lifecycleState
- 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
-
build
public Attachment build()
-
copy
public Attachment.Builder copy(Attachment model)
-
-