Package com.oracle.bmc.mysql.model
Class BackupSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.BackupSummary.Builder
-
- Enclosing class:
- BackupSummary
public static class BackupSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupSummary.Builder
backupSizeInGBs(Integer backupSizeInGBs)
The size of the backup in GiBs.BackupSummary.Builder
backupType(Backup.BackupType backupType)
The type of backup.BackupSummary
build()
BackupSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment the backup exists in.BackupSummary.Builder
copy(BackupSummary model)
BackupSummary.Builder
creationType(Backup.CreationType creationType)
If the backup was created automatically, or by a manual request.BackupSummary.Builder
dataStorageSizeInGBs(Integer dataStorageSizeInGBs)
Size of the data volume in GiBs.BackupSummary.Builder
dbSystemId(String dbSystemId)
The OCID of the DB System the Backup is associated with.BackupSummary.Builder
dbSystemSnapshotSummary(DbSystemSnapshotSummary dbSystemSnapshotSummary)
BackupSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.BackupSummary.Builder
description(String description)
A user-supplied description of the backup.BackupSummary.Builder
displayName(String displayName)
A user-supplied display name for the backup.BackupSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.BackupSummary.Builder
id(String id)
OCID of the backup.BackupSummary.Builder
immediateSourceBackupId(String immediateSourceBackupId)
The OCID of the immediate source DB system backup from which this DB system backup was copied.BackupSummary.Builder
lifecycleState(Backup.LifecycleState lifecycleState)
The state of the backup.BackupSummary.Builder
mysqlVersion(String mysqlVersion)
The version of the DB System used for backup.BackupSummary.Builder
originalSourceBackupId(String originalSourceBackupId)
The OCID of the original source DB system backup from which this DB system backup was copied.BackupSummary.Builder
retentionInDays(Integer retentionInDays)
Number of days to retain this backup.BackupSummary.Builder
shapeName(String shapeName)
The shape of the DB System instance used for backup.BackupSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.BackupSummary.Builder
timeCopyCreated(Date timeCopyCreated)
The date and time the DB system backup copy was created, as described by RFC 3339.BackupSummary.Builder
timeCreated(Date timeCreated)
The time the backup was created.
-
-
-
Method Detail
-
id
public BackupSummary.Builder id(String id)
OCID of the backup.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public BackupSummary.Builder displayName(String displayName)
A user-supplied display name for the backup.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public BackupSummary.Builder description(String description)
A user-supplied description of the backup.- Parameters:
description
- the value to set- Returns:
- this builder
-
timeCreated
public BackupSummary.Builder timeCreated(Date timeCreated)
The time the backup was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
lifecycleState
public BackupSummary.Builder lifecycleState(Backup.LifecycleState lifecycleState)
The state of the backup.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
backupType
public BackupSummary.Builder backupType(Backup.BackupType backupType)
The type of backup.- Parameters:
backupType
- the value to set- Returns:
- this builder
-
creationType
public BackupSummary.Builder creationType(Backup.CreationType creationType)
If the backup was created automatically, or by a manual request.- Parameters:
creationType
- the value to set- Returns:
- this builder
-
dbSystemId
public BackupSummary.Builder dbSystemId(String dbSystemId)
The OCID of the DB System the Backup is associated with.- Parameters:
dbSystemId
- the value to set- Returns:
- this builder
-
compartmentId
public BackupSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment the backup exists in.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
dataStorageSizeInGBs
public BackupSummary.Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs)
Size of the data volume in GiBs.- Parameters:
dataStorageSizeInGBs
- the value to set- Returns:
- this builder
-
backupSizeInGBs
public BackupSummary.Builder backupSizeInGBs(Integer backupSizeInGBs)
The size of the backup in GiBs.- Parameters:
backupSizeInGBs
- the value to set- Returns:
- this builder
-
retentionInDays
public BackupSummary.Builder retentionInDays(Integer retentionInDays)
Number of days to retain this backup.- Parameters:
retentionInDays
- the value to set- Returns:
- this builder
-
mysqlVersion
public BackupSummary.Builder mysqlVersion(String mysqlVersion)
The version of the DB System used for backup.- Parameters:
mysqlVersion
- the value to set- Returns:
- this builder
-
shapeName
public BackupSummary.Builder shapeName(String shapeName)
The shape of the DB System instance used for backup.- Parameters:
shapeName
- the value to set- Returns:
- this builder
-
freeformTags
public BackupSummary.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public BackupSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public BackupSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
immediateSourceBackupId
public BackupSummary.Builder immediateSourceBackupId(String immediateSourceBackupId)
The OCID of the immediate source DB system backup from which this DB system backup was copied.- Parameters:
immediateSourceBackupId
- the value to set- Returns:
- this builder
-
originalSourceBackupId
public BackupSummary.Builder originalSourceBackupId(String originalSourceBackupId)
The OCID of the original source DB system backup from which this DB system backup was copied.- Parameters:
originalSourceBackupId
- the value to set- Returns:
- this builder
-
timeCopyCreated
public BackupSummary.Builder timeCopyCreated(Date timeCopyCreated)
The date and time the DB system backup copy was created, as described by RFC 3339.- Parameters:
timeCopyCreated
- the value to set- Returns:
- this builder
-
dbSystemSnapshotSummary
public BackupSummary.Builder dbSystemSnapshotSummary(DbSystemSnapshotSummary dbSystemSnapshotSummary)
-
build
public BackupSummary build()
-
copy
public BackupSummary.Builder copy(BackupSummary model)
-
-