public static class VolumeBackup.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VolumeBackup |
build() |
VolumeBackup.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the volume backup.
|
VolumeBackup.Builder |
copy(VolumeBackup model) |
VolumeBackup.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
VolumeBackup.Builder |
displayName(String displayName)
A user-friendly name.
|
VolumeBackup.Builder |
expirationTime(Date expirationTime)
The date and time the volume backup will expire and be automatically deleted.
|
VolumeBackup.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
VolumeBackup.Builder |
id(String id)
The OCID of the volume backup.
|
VolumeBackup.Builder |
kmsKeyId(String kmsKeyId)
The OCID of the Vault service key which is the master encryption key for the volume
backup.
|
VolumeBackup.Builder |
lifecycleState(VolumeBackup.LifecycleState lifecycleState)
The current state of a volume backup.
|
VolumeBackup.Builder |
sizeInGBs(Long sizeInGBs)
The size of the volume, in GBs.
|
VolumeBackup.Builder |
sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.
|
VolumeBackup.Builder |
sourceType(VolumeBackup.SourceType sourceType)
Specifies whether the backup was created manually, or via scheduled backup policy.
|
VolumeBackup.Builder |
sourceVolumeBackupId(String sourceVolumeBackupId)
The OCID of the source volume backup.
|
VolumeBackup.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
VolumeBackup.Builder |
timeCreated(Date timeCreated)
The date and time the volume backup was created.
|
VolumeBackup.Builder |
timeRequestReceived(Date timeRequestReceived)
The date and time the request to create the volume backup was received.
|
VolumeBackup.Builder |
type(VolumeBackup.Type type)
The type of a volume backup.
|
VolumeBackup.Builder |
uniqueSizeInGBs(Long uniqueSizeInGBs)
The size used by the backup, in GBs.
|
VolumeBackup.Builder |
uniqueSizeInMbs(Long uniqueSizeInMbs)
The size used by the backup, in MBs.
|
VolumeBackup.Builder |
volumeId(String volumeId)
The OCID of the volume.
|
public VolumeBackup.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the volume backup.
compartmentId
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic VolumeBackup.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic 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.
expirationTime
- the value to setpublic 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"}
freeformTags
- the value to setpublic VolumeBackup.Builder id(String id)
The OCID of the volume backup.
id
- the value to setpublic 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.
kmsKeyId
- the value to setpublic VolumeBackup.Builder lifecycleState(VolumeBackup.LifecycleState lifecycleState)
The current state of a volume backup.
lifecycleState
- the value to setpublic VolumeBackup.Builder sizeInGBs(Long sizeInGBs)
The size of the volume, in GBs.
sizeInGBs
- the value to setpublic 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.
sizeInMBs
- the value to setpublic VolumeBackup.Builder sourceType(VolumeBackup.SourceType sourceType)
Specifies whether the backup was created manually, or via scheduled backup policy.
sourceType
- the value to setpublic VolumeBackup.Builder sourceVolumeBackupId(String sourceVolumeBackupId)
The OCID of the source volume backup.
sourceVolumeBackupId
- the value to setpublic 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.
timeCreated
- the value to setpublic 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.
timeRequestReceived
- the value to setpublic VolumeBackup.Builder type(VolumeBackup.Type type)
The type of a volume backup.
type
- the value to setpublic 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.
uniqueSizeInGBs
- the value to setpublic 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.
uniqueSizeInMbs
- the value to setpublic VolumeBackup.Builder volumeId(String volumeId)
The OCID of the volume.
volumeId
- the value to setpublic VolumeBackup build()
public VolumeBackup.Builder copy(VolumeBackup model)
Copyright © 2016–2024. All rights reserved.