Class Volume.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.Volume.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Volume.Builder
autoTunedVpusPerGB(Long autoTunedVpusPerGB)
The number of Volume Performance Units per GB that this volume is effectively tuned to.Volume.Builder
autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies enabled for this volume.Volume.Builder
availabilityDomain(String availabilityDomain)
The availability domain of the volume.Volume.Builder
blockVolumeReplicas(List<BlockVolumeReplicaInfo> blockVolumeReplicas)
The list of block volume replicas of this volume.Volume
build()
Volume.Builder
clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.Volume.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the volume.Volume.Builder
copy(Volume model)
Volume.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Volume.Builder
displayName(String displayName)
A user-friendly name.Volume.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Volume.Builder
id(String id)
The OCID of the volume.Volume.Builder
isAutoTuneEnabled(Boolean isAutoTuneEnabled)
Specifies whether the auto-tune performance is enabled for this volume.Volume.Builder
isHydrated(Boolean isHydrated)
Specifies whether the cloned volume’s data has finished copying from the source volume or backup.Volume.Builder
isReservationsEnabled(Boolean isReservationsEnabled)
Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.Volume.Builder
kmsKeyId(String kmsKeyId)
The OCID of the Vault service key which is the master encryption key for the volume.Volume.Builder
lifecycleState(Volume.LifecycleState lifecycleState)
The current state of a volume.Volume.Builder
sizeInGBs(Long sizeInGBs)
The size of the volume in GBs.Volume.Builder
sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.Volume.Builder
sourceDetails(VolumeSourceDetails sourceDetails)
Volume.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Volume.Builder
timeCreated(Date timeCreated)
The date and time the volume was created.Volume.Builder
volumeGroupId(String volumeGroupId)
The OCID of the source volume group.Volume.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.
-
-
-
Method Detail
-
availabilityDomain
public Volume.Builder availabilityDomain(String availabilityDomain)
The availability domain of the volume.Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
compartmentId
public Volume.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the volume.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public Volume.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 Volume.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 Volume.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
-
systemTags
public Volume.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
id
public Volume.Builder id(String id)
The OCID of the volume.- Parameters:
id
- the value to set- Returns:
- this builder
-
isHydrated
public Volume.Builder isHydrated(Boolean isHydrated)
Specifies whether the cloned volume’s data has finished copying from the source volume or backup.- Parameters:
isHydrated
- the value to set- Returns:
- this builder
-
kmsKeyId
public Volume.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service key which is the master encryption key for the volume.- Parameters:
kmsKeyId
- the value to set- Returns:
- this builder
-
lifecycleState
public Volume.Builder lifecycleState(Volume.LifecycleState lifecycleState)
The current state of a volume.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
vpusPerGB
public Volume.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.
- Parameters:
vpusPerGB
- the value to set- Returns:
- this builder
-
clusterPlacementGroupId
public Volume.Builder clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.- Parameters:
clusterPlacementGroupId
- the value to set- Returns:
- this builder
-
sizeInGBs
public Volume.Builder sizeInGBs(Long sizeInGBs)
The size of the volume in GBs.- Parameters:
sizeInGBs
- the value to set- Returns:
- this builder
-
sizeInMBs
public Volume.Builder sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.This field is deprecated. Use sizeInGBs instead.
- Parameters:
sizeInMBs
- the value to set- Returns:
- this builder
-
sourceDetails
public Volume.Builder sourceDetails(VolumeSourceDetails sourceDetails)
-
timeCreated
public Volume.Builder timeCreated(Date timeCreated)
The date and time the volume was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
volumeGroupId
public Volume.Builder volumeGroupId(String volumeGroupId)
The OCID of the source volume group.- Parameters:
volumeGroupId
- the value to set- Returns:
- this builder
-
isAutoTuneEnabled
public Volume.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.
- Parameters:
isAutoTuneEnabled
- the value to set- Returns:
- this builder
-
autoTunedVpusPerGB
public Volume.Builder autoTunedVpusPerGB(Long autoTunedVpusPerGB)
The number of Volume Performance Units per GB that this volume is effectively tuned to.- Parameters:
autoTunedVpusPerGB
- the value to set- Returns:
- this builder
-
blockVolumeReplicas
public Volume.Builder blockVolumeReplicas(List<BlockVolumeReplicaInfo> blockVolumeReplicas)
The list of block volume replicas of this volume.- Parameters:
blockVolumeReplicas
- the value to set- Returns:
- this builder
-
autotunePolicies
public Volume.Builder autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies enabled for this volume.- Parameters:
autotunePolicies
- the value to set- Returns:
- this builder
-
isReservationsEnabled
public Volume.Builder isReservationsEnabled(Boolean isReservationsEnabled)
Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.- Parameters:
isReservationsEnabled
- the value to set- Returns:
- this builder
-
build
public Volume build()
-
copy
public Volume.Builder copy(Volume model)
-
-