Package com.oracle.bmc.core.model
Class BootVolumeReplica.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.BootVolumeReplica.Builder
-
- Enclosing class:
- BootVolumeReplica
public static class BootVolumeReplica.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BootVolumeReplica.Builder
availabilityDomain(String availabilityDomain)
The availability domain of the boot volume replica.BootVolumeReplica.Builder
bootVolumeId(String bootVolumeId)
The OCID of the source boot volume.BootVolumeReplica
build()
BootVolumeReplica.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the boot volume replica.BootVolumeReplica.Builder
copy(BootVolumeReplica model)
BootVolumeReplica.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.BootVolumeReplica.Builder
displayName(String displayName)
A user-friendly name.BootVolumeReplica.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.BootVolumeReplica.Builder
id(String id)
The boot volume replica’s Oracle ID (OCID).BootVolumeReplica.Builder
imageId(String imageId)
The image OCID used to create the boot volume the replica is replicated from.BootVolumeReplica.Builder
kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.BootVolumeReplica.Builder
lifecycleState(BootVolumeReplica.LifecycleState lifecycleState)
The current state of a boot volume replica.BootVolumeReplica.Builder
sizeInGBs(Long sizeInGBs)
The size of the source boot volume, in GBs.BootVolumeReplica.Builder
timeCreated(Date timeCreated)
The date and time the boot volume replica was created.BootVolumeReplica.Builder
timeLastSynced(Date timeLastSynced)
The date and time the boot volume replica was last synced from the source boot volume.BootVolumeReplica.Builder
totalDataTransferredInGBs(Long totalDataTransferredInGBs)
The total size of the data transferred from the source boot volume to the boot volume replica, in GBs.BootVolumeReplica.Builder
volumeGroupReplicaId(String volumeGroupReplicaId)
The OCID of the volume group replica.
-
-
-
Method Detail
-
availabilityDomain
public BootVolumeReplica.Builder availabilityDomain(String availabilityDomain)
The availability domain of the boot volume replica.Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
compartmentId
public BootVolumeReplica.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the boot volume replica.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public BootVolumeReplica.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 BootVolumeReplica.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 BootVolumeReplica.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 BootVolumeReplica.Builder id(String id)
The boot volume replica’s Oracle ID (OCID).- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public BootVolumeReplica.Builder lifecycleState(BootVolumeReplica.LifecycleState lifecycleState)
The current state of a boot volume replica.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
sizeInGBs
public BootVolumeReplica.Builder sizeInGBs(Long sizeInGBs)
The size of the source boot volume, in GBs.- Parameters:
sizeInGBs
- the value to set- Returns:
- this builder
-
timeCreated
public BootVolumeReplica.Builder timeCreated(Date timeCreated)
The date and time the boot volume replica was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeLastSynced
public BootVolumeReplica.Builder timeLastSynced(Date timeLastSynced)
The date and time the boot volume replica was last synced from the source boot volume.Format defined by RFC3339.
- Parameters:
timeLastSynced
- the value to set- Returns:
- this builder
-
bootVolumeId
public BootVolumeReplica.Builder bootVolumeId(String bootVolumeId)
The OCID of the source boot volume.- Parameters:
bootVolumeId
- the value to set- Returns:
- this builder
-
imageId
public BootVolumeReplica.Builder imageId(String imageId)
The image OCID used to create the boot volume the replica is replicated from.- Parameters:
imageId
- the value to set- Returns:
- this builder
-
totalDataTransferredInGBs
public BootVolumeReplica.Builder totalDataTransferredInGBs(Long totalDataTransferredInGBs)
The total size of the data transferred from the source boot volume to the boot volume replica, in GBs.- Parameters:
totalDataTransferredInGBs
- the value to set- Returns:
- this builder
-
volumeGroupReplicaId
public BootVolumeReplica.Builder volumeGroupReplicaId(String volumeGroupReplicaId)
The OCID of the volume group replica.- Parameters:
volumeGroupReplicaId
- the value to set- Returns:
- this builder
-
kmsKeyId
public BootVolumeReplica.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.- Parameters:
kmsKeyId
- the value to set- Returns:
- this builder
-
build
public BootVolumeReplica build()
-
copy
public BootVolumeReplica.Builder copy(BootVolumeReplica model)
-
-