Package com.oracle.bmc.core.model
Class BlockVolumeReplica.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.BlockVolumeReplica.Builder
-
- Enclosing class:
- BlockVolumeReplica
public static class BlockVolumeReplica.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockVolumeReplica.Builder
availabilityDomain(String availabilityDomain)
The availability domain of the block volume replica.BlockVolumeReplica.Builder
blockVolumeId(String blockVolumeId)
The OCID of the source block volume.BlockVolumeReplica
build()
BlockVolumeReplica.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the block volume replica.BlockVolumeReplica.Builder
copy(BlockVolumeReplica model)
BlockVolumeReplica.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.BlockVolumeReplica.Builder
displayName(String displayName)
A user-friendly name.BlockVolumeReplica.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.BlockVolumeReplica.Builder
id(String id)
The block volume replica’s Oracle ID (OCID).BlockVolumeReplica.Builder
kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.BlockVolumeReplica.Builder
lifecycleState(BlockVolumeReplica.LifecycleState lifecycleState)
The current state of a block volume replica.BlockVolumeReplica.Builder
sizeInGBs(Long sizeInGBs)
The size of the source block volume, in GBs.BlockVolumeReplica.Builder
timeCreated(Date timeCreated)
The date and time the block volume replica was created.BlockVolumeReplica.Builder
timeLastSynced(Date timeLastSynced)
The date and time the block volume replica was last synced from the source block volume.BlockVolumeReplica.Builder
totalDataTransferredInGBs(Long totalDataTransferredInGBs)
The total size of the data transferred from the source block volume to the block volume replica, in GBs.BlockVolumeReplica.Builder
volumeGroupReplicaId(String volumeGroupReplicaId)
The OCID of the volume group replica.
-
-
-
Method Detail
-
availabilityDomain
public BlockVolumeReplica.Builder availabilityDomain(String availabilityDomain)
The availability domain of the block volume replica.Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
compartmentId
public BlockVolumeReplica.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the block volume replica.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public BlockVolumeReplica.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
displayName
public BlockVolumeReplica.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public BlockVolumeReplica.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
id
public BlockVolumeReplica.Builder id(String id)
The block volume replica’s Oracle ID (OCID).- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public BlockVolumeReplica.Builder lifecycleState(BlockVolumeReplica.LifecycleState lifecycleState)
The current state of a block volume replica.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
sizeInGBs
public BlockVolumeReplica.Builder sizeInGBs(Long sizeInGBs)
The size of the source block volume, in GBs.- Parameters:
sizeInGBs
- the value to set- Returns:
- this builder
-
timeCreated
public BlockVolumeReplica.Builder timeCreated(Date timeCreated)
The date and time the block volume replica was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeLastSynced
public BlockVolumeReplica.Builder timeLastSynced(Date timeLastSynced)
The date and time the block volume replica was last synced from the source block volume.Format defined by RFC3339.
- Parameters:
timeLastSynced
- the value to set- Returns:
- this builder
-
blockVolumeId
public BlockVolumeReplica.Builder blockVolumeId(String blockVolumeId)
The OCID of the source block volume.- Parameters:
blockVolumeId
- the value to set- Returns:
- this builder
-
totalDataTransferredInGBs
public BlockVolumeReplica.Builder totalDataTransferredInGBs(Long totalDataTransferredInGBs)
The total size of the data transferred from the source block volume to the block volume replica, in GBs.- Parameters:
totalDataTransferredInGBs
- the value to set- Returns:
- this builder
-
volumeGroupReplicaId
public BlockVolumeReplica.Builder volumeGroupReplicaId(String volumeGroupReplicaId)
The OCID of the volume group replica.- Parameters:
volumeGroupReplicaId
- the value to set- Returns:
- this builder
-
kmsKeyId
public BlockVolumeReplica.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.- Parameters:
kmsKeyId
- the value to set- Returns:
- this builder
-
build
public BlockVolumeReplica build()
-
copy
public BlockVolumeReplica.Builder copy(BlockVolumeReplica model)
-
-