Class CreateBootVolumeDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.CreateBootVolumeDetails.Builder
-
- Enclosing class:
- CreateBootVolumeDetails
public static class CreateBootVolumeDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateBootVolumeDetails.Builder
autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies to be enabled for this volume.CreateBootVolumeDetails.Builder
availabilityDomain(String availabilityDomain)
The availability domain of the volume.CreateBootVolumeDetails.Builder
backupPolicyId(String backupPolicyId)
If provided, specifies the ID of the boot volume backup policy to assign to the newly created boot volume.CreateBootVolumeDetails.Builder
bootVolumeReplicas(List<BootVolumeReplicaDetails> bootVolumeReplicas)
The list of boot volume replicas to be enabled for this boot volume in the specified destination availability domains.CreateBootVolumeDetails
build()
CreateBootVolumeDetails.Builder
clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.CreateBootVolumeDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the boot volume.CreateBootVolumeDetails.Builder
copy(CreateBootVolumeDetails model)
CreateBootVolumeDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateBootVolumeDetails.Builder
displayName(String displayName)
A user-friendly name.CreateBootVolumeDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateBootVolumeDetails.Builder
isAutoTuneEnabled(Boolean isAutoTuneEnabled)
Specifies whether the auto-tune performance is enabled for this boot volume.CreateBootVolumeDetails.Builder
kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the boot volume.CreateBootVolumeDetails.Builder
sizeInGBs(Long sizeInGBs)
The size of the volume in GBs.CreateBootVolumeDetails.Builder
sourceDetails(BootVolumeSourceDetails sourceDetails)
CreateBootVolumeDetails.Builder
vpusPerGB(Long vpusPerGB)
The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service’s elastic performance options.CreateBootVolumeDetails.Builder
xrcKmsKeyId(String xrcKmsKeyId)
The OCID of the Vault service key which is the master encryption key for the boot volume cross region backups, which will be used in the destination region to encrypt the backup’s encryption keys.
-
-
-
Method Detail
-
availabilityDomain
public CreateBootVolumeDetails.Builder availabilityDomain(String availabilityDomain)
The availability domain of the volume.Omissible for cloning a volume. The new volume will be created in the availability domain of the source volume.
Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
backupPolicyId
public CreateBootVolumeDetails.Builder backupPolicyId(String backupPolicyId)
If provided, specifies the ID of the boot volume backup policy to assign to the newly created boot volume.If omitted, no policy will be assigned.
- Parameters:
backupPolicyId
- the value to set- Returns:
- this builder
-
compartmentId
public CreateBootVolumeDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the boot volume.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public CreateBootVolumeDetails.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 CreateBootVolumeDetails.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 CreateBootVolumeDetails.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
-
kmsKeyId
public CreateBootVolumeDetails.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the boot volume.- Parameters:
kmsKeyId
- the value to set- Returns:
- this builder
-
sizeInGBs
public CreateBootVolumeDetails.Builder sizeInGBs(Long sizeInGBs)
The size of the volume in GBs.- Parameters:
sizeInGBs
- the value to set- Returns:
- this builder
-
clusterPlacementGroupId
public CreateBootVolumeDetails.Builder clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.- Parameters:
clusterPlacementGroupId
- the value to set- Returns:
- this builder
-
vpusPerGB
public CreateBootVolumeDetails.Builder vpusPerGB(Long vpusPerGB)
The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service’s elastic performance options.See Block Volume Performance Levels for more information.
Allowed values:
10: Represents the Balanced option.
20: Represents the Higher Performance option.
30-120: Represents the Ultra High Performance option.
For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB.
- Parameters:
vpusPerGB
- the value to set- Returns:
- this builder
-
sourceDetails
public CreateBootVolumeDetails.Builder sourceDetails(BootVolumeSourceDetails sourceDetails)
-
isAutoTuneEnabled
public CreateBootVolumeDetails.Builder isAutoTuneEnabled(Boolean isAutoTuneEnabled)
Specifies whether the auto-tune performance is enabled for this boot volume.This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
- Parameters:
isAutoTuneEnabled
- the value to set- Returns:
- this builder
-
bootVolumeReplicas
public CreateBootVolumeDetails.Builder bootVolumeReplicas(List<BootVolumeReplicaDetails> bootVolumeReplicas)
The list of boot volume replicas to be enabled for this boot volume in the specified destination availability domains.- Parameters:
bootVolumeReplicas
- the value to set- Returns:
- this builder
-
autotunePolicies
public CreateBootVolumeDetails.Builder autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies to be enabled for this volume.- Parameters:
autotunePolicies
- the value to set- Returns:
- this builder
-
xrcKmsKeyId
public CreateBootVolumeDetails.Builder xrcKmsKeyId(String xrcKmsKeyId)
The OCID of the Vault service key which is the master encryption key for the boot volume cross region backups, which will be used in the destination region to encrypt the backup’s encryption keys.For more information about the Vault service and encryption keys, see Overview of Vault service and Using Keys.
- Parameters:
xrcKmsKeyId
- the value to set- Returns:
- this builder
-
build
public CreateBootVolumeDetails build()
-
copy
public CreateBootVolumeDetails.Builder copy(CreateBootVolumeDetails model)
-
-