Class BootVolumeBackup.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.BootVolumeBackup.Builder
-
- Enclosing class:
- BootVolumeBackup
public static class BootVolumeBackup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BootVolumeBackup.BuilderbootVolumeId(String bootVolumeId)The OCID of the boot volume.BootVolumeBackupbuild()BootVolumeBackup.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the boot volume backup.BootVolumeBackup.Buildercopy(BootVolumeBackup model)BootVolumeBackup.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.BootVolumeBackup.BuilderdisplayName(String displayName)A user-friendly name.BootVolumeBackup.BuilderexpirationTime(Date expirationTime)The date and time the volume backup will expire and be automatically deleted.BootVolumeBackup.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.BootVolumeBackup.Builderid(String id)The OCID of the boot volume backup.BootVolumeBackup.BuilderimageId(String imageId)The image OCID used to create the boot volume the backup is taken from.BootVolumeBackup.BuilderkmsKeyId(String kmsKeyId)The OCID of the Vault service master encryption assigned to the boot volume backup.BootVolumeBackup.BuilderlifecycleState(BootVolumeBackup.LifecycleState lifecycleState)The current state of a boot volume backup.BootVolumeBackup.BuildersizeInGBs(Long sizeInGBs)The size of the boot volume, in GBs.BootVolumeBackup.BuildersourceBootVolumeBackupId(String sourceBootVolumeBackupId)The OCID of the source boot volume backup.BootVolumeBackup.BuildersourceType(BootVolumeBackup.SourceType sourceType)Specifies whether the backup was created manually, or via scheduled backup policy.BootVolumeBackup.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.BootVolumeBackup.BuildertimeCreated(Date timeCreated)The date and time the boot volume backup was created.BootVolumeBackup.BuildertimeRequestReceived(Date timeRequestReceived)The date and time the request to create the boot volume backup was received.BootVolumeBackup.Buildertype(BootVolumeBackup.Type type)The type of a volume backup.BootVolumeBackup.BuilderuniqueSizeInGBs(Long uniqueSizeInGBs)The size used by the backup, in GBs.
-
-
-
Method Detail
-
bootVolumeId
public BootVolumeBackup.Builder bootVolumeId(String bootVolumeId)
The OCID of the boot volume.- Parameters:
bootVolumeId- the value to set- Returns:
- this builder
-
compartmentId
public BootVolumeBackup.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the boot volume backup.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
definedTags
public BootVolumeBackup.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 BootVolumeBackup.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 BootVolumeBackup.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 BootVolumeBackup.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 BootVolumeBackup.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 BootVolumeBackup.Builder id(String id)
The OCID of the boot volume backup.- Parameters:
id- the value to set- Returns:
- this builder
-
imageId
public BootVolumeBackup.Builder imageId(String imageId)
The image OCID used to create the boot volume the backup is taken from.- Parameters:
imageId- the value to set- Returns:
- this builder
-
kmsKeyId
public BootVolumeBackup.Builder kmsKeyId(String kmsKeyId)
The OCID of the Vault service master encryption assigned to the boot 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 BootVolumeBackup.Builder lifecycleState(BootVolumeBackup.LifecycleState lifecycleState)
The current state of a boot volume backup.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
sizeInGBs
public BootVolumeBackup.Builder sizeInGBs(Long sizeInGBs)
The size of the boot volume, in GBs.- Parameters:
sizeInGBs- the value to set- Returns:
- this builder
-
sourceBootVolumeBackupId
public BootVolumeBackup.Builder sourceBootVolumeBackupId(String sourceBootVolumeBackupId)
The OCID of the source boot volume backup.- Parameters:
sourceBootVolumeBackupId- the value to set- Returns:
- this builder
-
sourceType
public BootVolumeBackup.Builder sourceType(BootVolumeBackup.SourceType sourceType)
Specifies whether the backup was created manually, or via scheduled backup policy.- Parameters:
sourceType- the value to set- Returns:
- this builder
-
timeCreated
public BootVolumeBackup.Builder timeCreated(Date timeCreated)
The date and time the boot 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 BootVolumeBackup.Builder timeRequestReceived(Date timeRequestReceived)
The date and time the request to create the boot volume backup was received.Format defined by RFC3339.
- Parameters:
timeRequestReceived- the value to set- Returns:
- this builder
-
type
public BootVolumeBackup.Builder type(BootVolumeBackup.Type type)
The type of a volume backup.- Parameters:
type- the value to set- Returns:
- this builder
-
uniqueSizeInGBs
public BootVolumeBackup.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 boot volume and whether the backup is full or incremental.
- Parameters:
uniqueSizeInGBs- the value to set- Returns:
- this builder
-
build
public BootVolumeBackup build()
-
copy
public BootVolumeBackup.Builder copy(BootVolumeBackup model)
-
-