Package com.oracle.bmc.core.model
Class VolumeGroup.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.VolumeGroup.Builder
-
- Enclosing class:
- VolumeGroup
public static class VolumeGroup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeGroup.BuilderavailabilityDomain(String availabilityDomain)The availability domain of the volume group.VolumeGroupbuild()VolumeGroup.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the volume group.VolumeGroup.Buildercopy(VolumeGroup model)VolumeGroup.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.VolumeGroup.BuilderdisplayName(String displayName)A user-friendly name.VolumeGroup.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.VolumeGroup.Builderid(String id)The OCID for the volume group.VolumeGroup.BuilderisHydrated(Boolean isHydrated)Specifies whether the newly created cloned volume group’s data has finished copying from the source volume group or backup.VolumeGroup.BuilderlifecycleState(VolumeGroup.LifecycleState lifecycleState)The current state of a volume group.VolumeGroup.BuildersizeInGBs(Long sizeInGBs)The aggregate size of the volume group in GBs.VolumeGroup.BuildersizeInMBs(Long sizeInMBs)The aggregate size of the volume group in MBs.VolumeGroup.BuildersourceDetails(VolumeGroupSourceDetails sourceDetails)VolumeGroup.BuildertimeCreated(Date timeCreated)The date and time the volume group was created.VolumeGroup.BuildervolumeGroupReplicas(List<VolumeGroupReplicaInfo> volumeGroupReplicas)The list of volume group replicas of this volume group.VolumeGroup.BuildervolumeIds(List<String> volumeIds)OCIDs for the volumes in this volume group.
-
-
-
Method Detail
-
availabilityDomain
public VolumeGroup.Builder availabilityDomain(String availabilityDomain)
The availability domain of the volume group.- Parameters:
availabilityDomain- the value to set- Returns:
- this builder
-
compartmentId
public VolumeGroup.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the volume group.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
definedTags
public VolumeGroup.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 VolumeGroup.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 VolumeGroup.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 VolumeGroup.Builder id(String id)
The OCID for the volume group.- Parameters:
id- the value to set- Returns:
- this builder
-
lifecycleState
public VolumeGroup.Builder lifecycleState(VolumeGroup.LifecycleState lifecycleState)
The current state of a volume group.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
sizeInMBs
public VolumeGroup.Builder sizeInMBs(Long sizeInMBs)
The aggregate size of the volume group in MBs.- Parameters:
sizeInMBs- the value to set- Returns:
- this builder
-
sizeInGBs
public VolumeGroup.Builder sizeInGBs(Long sizeInGBs)
The aggregate size of the volume group in GBs.- Parameters:
sizeInGBs- the value to set- Returns:
- this builder
-
sourceDetails
public VolumeGroup.Builder sourceDetails(VolumeGroupSourceDetails sourceDetails)
-
timeCreated
public VolumeGroup.Builder timeCreated(Date timeCreated)
The date and time the volume group was created.Format defined by RFC3339.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
volumeIds
public VolumeGroup.Builder volumeIds(List<String> volumeIds)
OCIDs for the volumes in this volume group.- Parameters:
volumeIds- the value to set- Returns:
- this builder
-
isHydrated
public VolumeGroup.Builder isHydrated(Boolean isHydrated)
Specifies whether the newly created cloned volume group’s data has finished copying from the source volume group or backup.- Parameters:
isHydrated- the value to set- Returns:
- this builder
-
volumeGroupReplicas
public VolumeGroup.Builder volumeGroupReplicas(List<VolumeGroupReplicaInfo> volumeGroupReplicas)
The list of volume group replicas of this volume group.- Parameters:
volumeGroupReplicas- the value to set- Returns:
- this builder
-
build
public VolumeGroup build()
-
copy
public VolumeGroup.Builder copy(VolumeGroup model)
-
-