Package com.oracle.bmc.oda.model
Class OdaInstanceAttachment.Builder
- java.lang.Object
-
- com.oracle.bmc.oda.model.OdaInstanceAttachment.Builder
-
- Enclosing class:
- OdaInstanceAttachment
public static class OdaInstanceAttachment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OdaInstanceAttachment.Builder
attachmentMetadata(String attachmentMetadata)
Attachment-specific metadata, defined by the target service.OdaInstanceAttachment.Builder
attachmentType(OdaInstanceAttachment.AttachmentType attachmentType)
The type of attachment defined as an enum.OdaInstanceAttachment.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.OdaInstanceAttachment
build()
OdaInstanceAttachment.Builder
copy(OdaInstanceAttachment model)
OdaInstanceAttachment.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.OdaInstanceAttachment.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.OdaInstanceAttachment.Builder
id(String id)
Unique immutable identifier that was assigned when the ODA instance attachment was created.OdaInstanceAttachment.Builder
instanceId(String instanceId)
The OCID of the ODA instance to which the attachment applies.OdaInstanceAttachment.Builder
lifecycleState(OdaInstanceAttachment.LifecycleState lifecycleState)
The current state of the attachment.OdaInstanceAttachment.Builder
owner(OdaInstanceOwner owner)
OdaInstanceAttachment.Builder
restrictedOperations(List<String> restrictedOperations)
List of operation names that are restricted while this ODA instance is attached.OdaInstanceAttachment.Builder
timeCreated(Date timeCreated)
The time the attachment was created.OdaInstanceAttachment.Builder
timeLastUpdate(Date timeLastUpdate)
The time the attachment was last modified.
-
-
-
Method Detail
-
id
public OdaInstanceAttachment.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 OdaInstanceAttachment.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 OdaInstanceAttachment.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 OdaInstanceAttachment.Builder attachmentType(OdaInstanceAttachment.AttachmentType attachmentType)
The type of attachment defined as an enum.- Parameters:
attachmentType
- the value to set- Returns:
- this builder
-
attachmentMetadata
public OdaInstanceAttachment.Builder attachmentMetadata(String attachmentMetadata)
Attachment-specific metadata, defined by the target service.- Parameters:
attachmentMetadata
- the value to set- Returns:
- this builder
-
restrictedOperations
public OdaInstanceAttachment.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 OdaInstanceAttachment.Builder owner(OdaInstanceOwner owner)
-
timeCreated
public OdaInstanceAttachment.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 OdaInstanceAttachment.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 OdaInstanceAttachment.Builder lifecycleState(OdaInstanceAttachment.LifecycleState lifecycleState)
The current state of the attachment.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public OdaInstanceAttachment.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 OdaInstanceAttachment.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 OdaInstanceAttachment build()
-
copy
public OdaInstanceAttachment.Builder copy(OdaInstanceAttachment model)
-
-