public static class CreateVolumeDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateVolumeDetails.Builder |
autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies to be enabled for this volume.
|
CreateVolumeDetails.Builder |
availabilityDomain(String availabilityDomain)
The availability domain of the volume.
|
CreateVolumeDetails.Builder |
backupPolicyId(String backupPolicyId)
If provided, specifies the ID of the volume backup policy to assign to the newly created
volume.
|
CreateVolumeDetails.Builder |
blockVolumeReplicas(List<BlockVolumeReplicaDetails> blockVolumeReplicas)
The list of block volume replicas to be enabled for this volume in the specified
destination availability domains.
|
CreateVolumeDetails |
build() |
CreateVolumeDetails.Builder |
clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.
|
CreateVolumeDetails.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the volume.
|
CreateVolumeDetails.Builder |
copy(CreateVolumeDetails model) |
CreateVolumeDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateVolumeDetails.Builder |
displayName(String displayName)
A user-friendly name.
|
CreateVolumeDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
CreateVolumeDetails.Builder |
isAutoTuneEnabled(Boolean isAutoTuneEnabled)
Specifies whether the auto-tune performance is enabled for this volume.
|
CreateVolumeDetails.Builder |
kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the volume.
|
CreateVolumeDetails.Builder |
sizeInGBs(Long sizeInGBs)
The size of the volume in GBs.
|
CreateVolumeDetails.Builder |
sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.
|
CreateVolumeDetails.Builder |
sourceDetails(VolumeSourceDetails sourceDetails) |
CreateVolumeDetails.Builder |
volumeBackupId(String volumeBackupId)
The OCID of the volume backup from which the data should be restored on the newly created
volume.
|
CreateVolumeDetails.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.
|
CreateVolumeDetails.Builder |
xrcKmsKeyId(String xrcKmsKeyId)
The OCID of the Vault service key which is the master encryption key for the block volume
cross region backups, which will be used in the destination region to encrypt the
backup’s encryption keys.
|
public CreateVolumeDetails.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
availabilityDomain
- the value to setpublic CreateVolumeDetails.Builder backupPolicyId(String backupPolicyId)
If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned.
backupPolicyId
- the value to setpublic CreateVolumeDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the volume.
compartmentId
- the value to setpublic CreateVolumeDetails.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"}}
definedTags
- the value to setpublic CreateVolumeDetails.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic CreateVolumeDetails.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"}
freeformTags
- the value to setpublic CreateVolumeDetails.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service key to assign as the master encryption key for the volume.
kmsKeyId
- the value to setpublic CreateVolumeDetails.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:
0
: Represents Lower Cost option.
10
: Represents Balanced option.
20
: Represents Higher Performance option.
30
-120
: Represents the Ultra High Performance option.
For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB.
vpusPerGB
- the value to setpublic CreateVolumeDetails.Builder clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.
clusterPlacementGroupId
- the value to setpublic CreateVolumeDetails.Builder sizeInGBs(Long sizeInGBs)
The size of the volume in GBs.
sizeInGBs
- the value to setpublic CreateVolumeDetails.Builder sizeInMBs(Long sizeInMBs)
The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use sizeInGBs instead.
sizeInMBs
- the value to setpublic CreateVolumeDetails.Builder sourceDetails(VolumeSourceDetails sourceDetails)
public CreateVolumeDetails.Builder volumeBackupId(String volumeBackupId)
The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
volumeBackupId
- the value to setpublic CreateVolumeDetails.Builder isAutoTuneEnabled(Boolean isAutoTuneEnabled)
Specifies whether the auto-tune performance is enabled for this volume. This field is
deprecated. Use the DetachedVolumeAutotunePolicy
instead to enable the volume for
detached autotune.
isAutoTuneEnabled
- the value to setpublic CreateVolumeDetails.Builder blockVolumeReplicas(List<BlockVolumeReplicaDetails> blockVolumeReplicas)
The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
blockVolumeReplicas
- the value to setpublic CreateVolumeDetails.Builder autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies to be enabled for this volume.
autotunePolicies
- the value to setpublic CreateVolumeDetails.Builder xrcKmsKeyId(String xrcKmsKeyId)
The OCID of the Vault service key which is the master encryption key for the block 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.
xrcKmsKeyId
- the value to setpublic CreateVolumeDetails build()
public CreateVolumeDetails.Builder copy(CreateVolumeDetails model)
Copyright © 2016–2025. All rights reserved.