Class VolumeBackup.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.VolumeBackup.Builder
-
- Enclosing class:
- VolumeBackup
public static class VolumeBackup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeBackupbuild()VolumeBackup.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the volume backup.VolumeBackup.Buildercopy(VolumeBackup model)VolumeBackup.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.VolumeBackup.BuilderdisplayName(String displayName)A user-friendly name.VolumeBackup.BuilderexpirationTime(Date expirationTime)The date and time the volume backup will expire and be automatically deleted.VolumeBackup.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.VolumeBackup.Builderid(String id)The OCID of the volume backup.VolumeBackup.BuilderkmsKeyId(String kmsKeyId)The OCID of the Vault service key which is the master encryption key for the volume backup.VolumeBackup.BuilderlifecycleState(VolumeBackup.LifecycleState lifecycleState)The current state of a volume backup.VolumeBackup.BuildersizeInGBs(Long sizeInGBs)The size of the volume, in GBs.VolumeBackup.BuildersizeInMBs(Long sizeInMBs)The size of the volume in MBs.VolumeBackup.BuildersourceType(VolumeBackup.SourceType sourceType)Specifies whether the backup was created manually, or via scheduled backup policy.VolumeBackup.BuildersourceVolumeBackupId(String sourceVolumeBackupId)The OCID of the source volume backup.VolumeBackup.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.VolumeBackup.BuildertimeCreated(Date timeCreated)The date and time the volume backup was created.VolumeBackup.BuildertimeRequestReceived(Date timeRequestReceived)The date and time the request to create the volume backup was received.VolumeBackup.Buildertype(VolumeBackup.Type type)The type of a volume backup.VolumeBackup.BuilderuniqueSizeInGBs(Long uniqueSizeInGBs)The size used by the backup, in GBs.VolumeBackup.BuilderuniqueSizeInMbs(Long uniqueSizeInMbs)The size used by the backup, in MBs.VolumeBackup.BuildervolumeId(String volumeId)The OCID of the volume.
-
-
-
Method Detail
-
compartmentId
public VolumeBackup.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the volume backup.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
definedTags
public VolumeBackup.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 VolumeBackup.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 VolumeBackup.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 VolumeBackup.Builder expirationTime(Date expirationTime)
The date and time the volume backup will expire and be automatically deleted.Format defined by RFC3339. This parameter will always be present for backups that were created automatically by a scheduled-backup policy. For manually created 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 VolumeBackup.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 VolumeBackup.Builder id(String id)
The OCID of the volume backup.- Parameters:
id- the value to set- Returns:
- this builder
-
kmsKeyId
public VolumeBackup.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service key which is the master encryption key for the volume backup.For more information about the Vault service and encryption keys, see Overview of Vault service and Using Keys.
- Parameters:
kmsKeyId- the value to set- Returns:
- this builder
-
lifecycleState
public VolumeBackup.Builder lifecycleState(VolumeBackup.LifecycleState lifecycleState)
The current state of a volume backup.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
sizeInGBs
public VolumeBackup.Builder sizeInGBs(Long sizeInGBs)
The size of the volume, in GBs.- Parameters:
sizeInGBs- the value to set- Returns:
- this builder
-
sizeInMBs
public VolumeBackup.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
-
sourceType
public VolumeBackup.Builder sourceType(VolumeBackup.SourceType sourceType)
Specifies whether the backup was created manually, or via scheduled backup policy.- Parameters:
sourceType- the value to set- Returns:
- this builder
-
sourceVolumeBackupId
public VolumeBackup.Builder sourceVolumeBackupId(String sourceVolumeBackupId)
The OCID of the source volume backup.- Parameters:
sourceVolumeBackupId- the value to set- Returns:
- this builder
-
timeCreated
public VolumeBackup.Builder timeCreated(Date timeCreated)
The date and time the volume backup was created.This is the time the actual point-in-time image of the volume data was taken. Format defined by RFC3339.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeRequestReceived
public VolumeBackup.Builder timeRequestReceived(Date timeRequestReceived)
The date and time the request to create the volume backup was received.Format defined by [RFC3339]https://tools.ietf.org/html/rfc3339.
- Parameters:
timeRequestReceived- the value to set- Returns:
- this builder
-
type
public VolumeBackup.Builder type(VolumeBackup.Type type)
The type of a volume backup.- Parameters:
type- the value to set- Returns:
- this builder
-
uniqueSizeInGBs
public VolumeBackup.Builder uniqueSizeInGBs(Long uniqueSizeInGBs)
The size used by the backup, in GBs.It is typically smaller than sizeInGBs, depending on the space consumed on the volume and whether the backup is full or incremental.
- Parameters:
uniqueSizeInGBs- the value to set- Returns:
- this builder
-
uniqueSizeInMbs
public VolumeBackup.Builder uniqueSizeInMbs(Long uniqueSizeInMbs)
The size used by the backup, in MBs.It is typically smaller than sizeInMBs, depending on the space consumed on the volume and whether the backup is full or incremental. This field is deprecated. Please use uniqueSizeInGBs.
- Parameters:
uniqueSizeInMbs- the value to set- Returns:
- this builder
-
volumeId
public VolumeBackup.Builder volumeId(String volumeId)
The OCID of the volume.- Parameters:
volumeId- the value to set- Returns:
- this builder
-
build
public VolumeBackup build()
-
copy
public VolumeBackup.Builder copy(VolumeBackup model)
-
-