Class VolumeGroupBackup.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.VolumeGroupBackup.Builder
-
- Enclosing class:
- VolumeGroupBackup
public static class VolumeGroupBackup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeGroupBackup
build()
VolumeGroupBackup.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the volume group backup.VolumeGroupBackup.Builder
copy(VolumeGroupBackup model)
VolumeGroupBackup.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.VolumeGroupBackup.Builder
displayName(String displayName)
A user-friendly name.VolumeGroupBackup.Builder
expirationTime(Date expirationTime)
The date and time the volume group backup will expire and be automatically deleted.VolumeGroupBackup.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.VolumeGroupBackup.Builder
id(String id)
The OCID of the volume group backup.VolumeGroupBackup.Builder
lifecycleState(VolumeGroupBackup.LifecycleState lifecycleState)
The current state of a volume group backup.VolumeGroupBackup.Builder
sizeInGBs(Long sizeInGBs)
The aggregate size of the volume group backup, in GBs.VolumeGroupBackup.Builder
sizeInMBs(Long sizeInMBs)
The aggregate size of the volume group backup, in MBs.VolumeGroupBackup.Builder
sourceType(VolumeGroupBackup.SourceType sourceType)
Specifies whether the volume group backup was created manually, or via scheduled backup policy.VolumeGroupBackup.Builder
sourceVolumeGroupBackupId(String sourceVolumeGroupBackupId)
The OCID of the source volume group backup.VolumeGroupBackup.Builder
timeCreated(Date timeCreated)
The date and time the volume group backup was created.VolumeGroupBackup.Builder
timeRequestReceived(Date timeRequestReceived)
The date and time the request to create the volume group backup was received.VolumeGroupBackup.Builder
type(VolumeGroupBackup.Type type)
The type of backup.VolumeGroupBackup.Builder
uniqueSizeInGbs(Long uniqueSizeInGbs)
The aggregate size used by the volume group backup, in GBs.VolumeGroupBackup.Builder
uniqueSizeInMbs(Long uniqueSizeInMbs)
The aggregate size used by the volume group backup, in MBs.VolumeGroupBackup.Builder
volumeBackupIds(List<String> volumeBackupIds)
OCIDs for the volume backups in this volume group backup.VolumeGroupBackup.Builder
volumeGroupId(String volumeGroupId)
The OCID of the source volume group.
-
-
-
Method Detail
-
compartmentId
public VolumeGroupBackup.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the volume group backup.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public VolumeGroupBackup.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 VolumeGroupBackup.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
-
expirationTime
public VolumeGroupBackup.Builder expirationTime(Date expirationTime)
The date and time the volume group backup will expire and be automatically deleted.Format defined by RFC3339. This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
- Parameters:
expirationTime
- the value to set- Returns:
- this builder
-
freeformTags
public VolumeGroupBackup.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 VolumeGroupBackup.Builder id(String id)
The OCID of the volume group backup.- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public VolumeGroupBackup.Builder lifecycleState(VolumeGroupBackup.LifecycleState lifecycleState)
The current state of a volume group backup.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
sizeInMBs
public VolumeGroupBackup.Builder sizeInMBs(Long sizeInMBs)
The aggregate size of the volume group backup, in MBs.- Parameters:
sizeInMBs
- the value to set- Returns:
- this builder
-
sizeInGBs
public VolumeGroupBackup.Builder sizeInGBs(Long sizeInGBs)
The aggregate size of the volume group backup, in GBs.- Parameters:
sizeInGBs
- the value to set- Returns:
- this builder
-
sourceType
public VolumeGroupBackup.Builder sourceType(VolumeGroupBackup.SourceType sourceType)
Specifies whether the volume group backup was created manually, or via scheduled backup policy.- Parameters:
sourceType
- the value to set- Returns:
- this builder
-
timeCreated
public VolumeGroupBackup.Builder timeCreated(Date timeCreated)
The date and time the volume group backup was created.This is the time the actual point-in-time image of the volume group data was taken. Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeRequestReceived
public VolumeGroupBackup.Builder timeRequestReceived(Date timeRequestReceived)
The date and time the request to create the volume group backup was received.Format defined by RFC3339.
- Parameters:
timeRequestReceived
- the value to set- Returns:
- this builder
-
type
public VolumeGroupBackup.Builder type(VolumeGroupBackup.Type type)
The type of backup.- Parameters:
type
- the value to set- Returns:
- this builder
-
uniqueSizeInMbs
public VolumeGroupBackup.Builder uniqueSizeInMbs(Long uniqueSizeInMbs)
The aggregate size used by the volume group backup, in MBs.It is typically smaller than sizeInMBs, depending on the spaceconsumed on the volume group and whether the volume backup is full or incremental.
- Parameters:
uniqueSizeInMbs
- the value to set- Returns:
- this builder
-
uniqueSizeInGbs
public VolumeGroupBackup.Builder uniqueSizeInGbs(Long uniqueSizeInGbs)
The aggregate size used by the volume group backup, in GBs.It is typically smaller than sizeInGBs, depending on the spaceconsumed on the volume group and whether the volume backup is full or incremental.
- Parameters:
uniqueSizeInGbs
- the value to set- Returns:
- this builder
-
volumeBackupIds
public VolumeGroupBackup.Builder volumeBackupIds(List<String> volumeBackupIds)
OCIDs for the volume backups in this volume group backup.- Parameters:
volumeBackupIds
- the value to set- Returns:
- this builder
-
volumeGroupId
public VolumeGroupBackup.Builder volumeGroupId(String volumeGroupId)
The OCID of the source volume group.- Parameters:
volumeGroupId
- the value to set- Returns:
- this builder
-
sourceVolumeGroupBackupId
public VolumeGroupBackup.Builder sourceVolumeGroupBackupId(String sourceVolumeGroupBackupId)
The OCID of the source volume group backup.- Parameters:
sourceVolumeGroupBackupId
- the value to set- Returns:
- this builder
-
build
public VolumeGroupBackup build()
-
copy
public VolumeGroupBackup.Builder copy(VolumeGroupBackup model)
-
-