Class BootVolume.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.BootVolume.Builder
-
- Enclosing class:
- BootVolume
public static class BootVolume.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BootVolume.Builder
autoTunedVpusPerGB(Long autoTunedVpusPerGB)
The number of Volume Performance Units per GB that this boot volume is effectively tuned to.BootVolume.Builder
autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies enabled for this volume.BootVolume.Builder
availabilityDomain(String availabilityDomain)
The availability domain of the boot volume.BootVolume.Builder
bootVolumeReplicas(List<BootVolumeReplicaInfo> bootVolumeReplicas)
The list of boot volume replicas of this boot volumeBootVolume
build()
BootVolume.Builder
clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.BootVolume.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the boot volume.BootVolume.Builder
copy(BootVolume model)
BootVolume.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.BootVolume.Builder
displayName(String displayName)
A user-friendly name.BootVolume.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.BootVolume.Builder
id(String id)
The boot volume’s Oracle ID (OCID).BootVolume.Builder
imageId(String imageId)
The image OCID used to create the boot volume.BootVolume.Builder
isAutoTuneEnabled(Boolean isAutoTuneEnabled)
Specifies whether the auto-tune performance is enabled for this boot volume.BootVolume.Builder
isHydrated(Boolean isHydrated)
Specifies whether the boot volume’s data has finished copying from the source boot volume or boot volume backup.BootVolume.Builder
kmsKeyId(String kmsKeyId)
The OCID of the Vault service master encryption key assigned to the boot volume.BootVolume.Builder
lifecycleState(BootVolume.LifecycleState lifecycleState)
The current state of a boot volume.BootVolume.Builder
sizeInGBs(Long sizeInGBs)
The size of the boot volume in GBs.BootVolume.Builder
sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.BootVolume.Builder
sourceDetails(BootVolumeSourceDetails sourceDetails)
BootVolume.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.BootVolume.Builder
timeCreated(Date timeCreated)
The date and time the boot volume was created.BootVolume.Builder
volumeGroupId(String volumeGroupId)
The OCID of the source volume group.BootVolume.Builder
vpusPerGB(Long vpusPerGB)
The number of volume performance units (VPUs) that will be applied to this boot volume per GB, representing the Block Volume service’s elastic performance options.
-
-
-
Method Detail
-
availabilityDomain
public BootVolume.Builder availabilityDomain(String availabilityDomain)
The availability domain of the boot volume.Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
compartmentId
public BootVolume.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 BootVolume.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
-
systemTags
public BootVolume.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
-
displayName
public BootVolume.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 BootVolume.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 BootVolume.Builder id(String id)
The boot volume’s Oracle ID (OCID).- Parameters:
id
- the value to set- Returns:
- this builder
-
imageId
public BootVolume.Builder imageId(String imageId)
The image OCID used to create the boot volume.- Parameters:
imageId
- the value to set- Returns:
- this builder
-
isHydrated
public BootVolume.Builder isHydrated(Boolean isHydrated)
Specifies whether the boot volume’s data has finished copying from the source boot volume or boot volume backup.- Parameters:
isHydrated
- the value to set- Returns:
- this builder
-
clusterPlacementGroupId
public BootVolume.Builder clusterPlacementGroupId(String clusterPlacementGroupId)
The clusterPlacementGroup Id of the volume for volume placement.- Parameters:
clusterPlacementGroupId
- the value to set- Returns:
- this builder
-
vpusPerGB
public BootVolume.Builder vpusPerGB(Long vpusPerGB)
The number of volume performance units (VPUs) that will be applied to this boot volume per GB, representing the Block Volume service’s elastic performance options.See Block Volume Performance Levels for more information.
Allowed values:
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
-
lifecycleState
public BootVolume.Builder lifecycleState(BootVolume.LifecycleState lifecycleState)
The current state of a boot volume.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
sizeInGBs
public BootVolume.Builder sizeInGBs(Long sizeInGBs)
The size of the boot volume in GBs.- Parameters:
sizeInGBs
- the value to set- Returns:
- this builder
-
sizeInMBs
public BootVolume.Builder sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.The value must be a multiple of 1024. This field is deprecated. Please use sizeInGBs.
- Parameters:
sizeInMBs
- the value to set- Returns:
- this builder
-
sourceDetails
public BootVolume.Builder sourceDetails(BootVolumeSourceDetails sourceDetails)
-
timeCreated
public BootVolume.Builder timeCreated(Date timeCreated)
The date and time the boot volume was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
volumeGroupId
public BootVolume.Builder volumeGroupId(String volumeGroupId)
The OCID of the source volume group.- Parameters:
volumeGroupId
- the value to set- Returns:
- this builder
-
kmsKeyId
public BootVolume.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service master encryption key assigned to the boot volume.- Parameters:
kmsKeyId
- the value to set- Returns:
- this builder
-
isAutoTuneEnabled
public BootVolume.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
-
autoTunedVpusPerGB
public BootVolume.Builder autoTunedVpusPerGB(Long autoTunedVpusPerGB)
The number of Volume Performance Units per GB that this boot volume is effectively tuned to.- Parameters:
autoTunedVpusPerGB
- the value to set- Returns:
- this builder
-
bootVolumeReplicas
public BootVolume.Builder bootVolumeReplicas(List<BootVolumeReplicaInfo> bootVolumeReplicas)
The list of boot volume replicas of this boot volume- Parameters:
bootVolumeReplicas
- the value to set- Returns:
- this builder
-
autotunePolicies
public BootVolume.Builder autotunePolicies(List<AutotunePolicy> autotunePolicies)
The list of autotune policies enabled for this volume.- Parameters:
autotunePolicies
- the value to set- Returns:
- this builder
-
build
public BootVolume build()
-
copy
public BootVolume.Builder copy(BootVolume model)
-
-