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.BuilderautoTunedVpusPerGB(Long autoTunedVpusPerGB)The number of Volume Performance Units per GB that this volume is effectively tuned to.Volume.BuilderautotunePolicies(List<AutotunePolicy> autotunePolicies)The list of autotune policies enabled for this volume.Volume.BuilderavailabilityDomain(String availabilityDomain)The availability domain of the volume.Volume.BuilderblockVolumeReplicas(List<BlockVolumeReplicaInfo> blockVolumeReplicas)The list of block volume replicas of this volume.Volumebuild()Volume.BuilderclusterPlacementGroupId(String clusterPlacementGroupId)The clusterPlacementGroup Id of the volume for volume placement.Volume.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the volume.Volume.Buildercopy(Volume model)Volume.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Volume.BuilderdisplayName(String displayName)A user-friendly name.Volume.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.Volume.Builderid(String id)The OCID of the volume.Volume.BuilderisAutoTuneEnabled(Boolean isAutoTuneEnabled)Specifies whether the auto-tune performance is enabled for this volume.Volume.BuilderisHydrated(Boolean isHydrated)Specifies whether the cloned volume’s data has finished copying from the source volume or backup.Volume.BuilderisReservationsEnabled(Boolean isReservationsEnabled)When set to true, enables SCSI Persistent Reservation (SCSI PR) for the volume.Volume.BuilderkmsKeyId(String kmsKeyId)The OCID of the Vault service key which is the master encryption key for the volume.Volume.BuilderlifecycleState(Volume.LifecycleState lifecycleState)The current state of a volume.Volume.BuildersizeInGBs(Long sizeInGBs)The size of the volume in GBs.Volume.BuildersizeInMBs(Long sizeInMBs)The size of the volume in MBs.Volume.BuildersourceDetails(VolumeSourceDetails sourceDetails)Volume.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.Volume.BuildertimeCreated(Date timeCreated)The date and time the volume was created.Volume.BuildervolumeGroupId(String volumeGroupId)The OCID of the source volume group.Volume.BuildervpusPerGB(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)
When set to true, enables SCSI Persistent Reservation (SCSI PR) for the volume.For more information, see Persistent Reservations.
- Parameters:
isReservationsEnabled- the value to set- Returns:
- this builder
-
build
public Volume build()
-
copy
public Volume.Builder copy(Volume model)
-
-