Package com.oracle.bmc.oda.model
Class OdaInstanceAttachmentSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.oda.model.OdaInstanceAttachmentSummary.Builder
-
- Enclosing class:
- OdaInstanceAttachmentSummary
public static class OdaInstanceAttachmentSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OdaInstanceAttachmentSummary.Builder
attachmentMetadata(String attachmentMetadata)
Attachment-specific metadata, defined by the target service.OdaInstanceAttachmentSummary.Builder
attachmentType(OdaInstanceAttachmentSummary.AttachmentType attachmentType)
The type of attachment defined as an enum.OdaInstanceAttachmentSummary.Builder
attachToId(String attachToId)
The OCID of the target instance (which could be any other OCI PaaS/SaaS resource), to which the ODA instance is or is being attached.OdaInstanceAttachmentSummary
build()
OdaInstanceAttachmentSummary.Builder
copy(OdaInstanceAttachmentSummary model)
OdaInstanceAttachmentSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.OdaInstanceAttachmentSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.OdaInstanceAttachmentSummary.Builder
id(String id)
Unique immutable identifier that was assigned when the ODA instance attachment was created.OdaInstanceAttachmentSummary.Builder
instanceId(String instanceId)
The OCID of the ODA instance to which the attachment applies.OdaInstanceAttachmentSummary.Builder
lifecycleState(OdaInstanceAttachment.LifecycleState lifecycleState)
The current state of the attachment.OdaInstanceAttachmentSummary.Builder
owner(OdaInstanceOwner owner)
OdaInstanceAttachmentSummary.Builder
restrictedOperations(List<String> restrictedOperations)
List of operation names that are restricted while this ODA instance is attached.OdaInstanceAttachmentSummary.Builder
timeCreated(Date timeCreated)
The time the attachment was created.OdaInstanceAttachmentSummary.Builder
timeLastUpdate(Date timeLastUpdate)
The time the attachment was last modified.
-
-
-
Method Detail
-
id
public OdaInstanceAttachmentSummary.Builder id(String id)
Unique immutable identifier that was assigned when the ODA instance attachment was created.- Parameters:
id
- the value to set- Returns:
- this builder
-
instanceId
public OdaInstanceAttachmentSummary.Builder instanceId(String instanceId)
The OCID of the ODA instance to which the attachment applies.- Parameters:
instanceId
- the value to set- Returns:
- this builder
-
attachToId
public OdaInstanceAttachmentSummary.Builder attachToId(String attachToId)
The OCID of the target instance (which could be any other OCI PaaS/SaaS resource), to which the ODA instance is or is being attached.- Parameters:
attachToId
- the value to set- Returns:
- this builder
-
attachmentType
public OdaInstanceAttachmentSummary.Builder attachmentType(OdaInstanceAttachmentSummary.AttachmentType attachmentType)
The type of attachment defined as an enum.- Parameters:
attachmentType
- the value to set- Returns:
- this builder
-
attachmentMetadata
public OdaInstanceAttachmentSummary.Builder attachmentMetadata(String attachmentMetadata)
Attachment-specific metadata, defined by the target service.- Parameters:
attachmentMetadata
- the value to set- Returns:
- this builder
-
restrictedOperations
public OdaInstanceAttachmentSummary.Builder restrictedOperations(List<String> restrictedOperations)
List of operation names that are restricted while this ODA instance is attached.- Parameters:
restrictedOperations
- the value to set- Returns:
- this builder
-
owner
public OdaInstanceAttachmentSummary.Builder owner(OdaInstanceOwner owner)
-
timeCreated
public OdaInstanceAttachmentSummary.Builder timeCreated(Date timeCreated)
The time the attachment was created.An RFC3339 formatted datetime string
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeLastUpdate
public OdaInstanceAttachmentSummary.Builder timeLastUpdate(Date timeLastUpdate)
The time the attachment was last modified.An RFC3339 formatted datetime string
- Parameters:
timeLastUpdate
- the value to set- Returns:
- this builder
-
lifecycleState
public OdaInstanceAttachmentSummary.Builder lifecycleState(OdaInstanceAttachment.LifecycleState lifecycleState)
The current state of the attachment.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public OdaInstanceAttachmentSummary.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public OdaInstanceAttachmentSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public OdaInstanceAttachmentSummary build()
-
copy
public OdaInstanceAttachmentSummary.Builder copy(OdaInstanceAttachmentSummary model)
-
-