public static class BackupSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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 |
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.
|
public BackupSummary.Builder id(String id)
OCID of the backup.
id
- the value to setpublic BackupSummary.Builder displayName(String displayName)
A user-supplied display name for the backup.
displayName
- the value to setpublic BackupSummary.Builder description(String description)
A user-supplied description of the backup.
description
- the value to setpublic BackupSummary.Builder timeCreated(Date timeCreated)
The time the backup was created.
timeCreated
- the value to setpublic BackupSummary.Builder lifecycleState(Backup.LifecycleState lifecycleState)
The state of the backup.
lifecycleState
- the value to setpublic BackupSummary.Builder backupType(Backup.BackupType backupType)
The type of backup.
backupType
- the value to setpublic BackupSummary.Builder creationType(Backup.CreationType creationType)
If the backup was created automatically, or by a manual request.
creationType
- the value to setpublic BackupSummary.Builder dbSystemId(String dbSystemId)
The OCID of the DB System the Backup is associated with.
dbSystemId
- the value to setpublic BackupSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment the backup exists in.
compartmentId
- the value to setpublic BackupSummary.Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs)
Size of the data volume in GiBs.
dataStorageSizeInGBs
- the value to setpublic BackupSummary.Builder backupSizeInGBs(Integer backupSizeInGBs)
The size of the backup in GiBs.
backupSizeInGBs
- the value to setpublic BackupSummary.Builder retentionInDays(Integer retentionInDays)
Number of days to retain this backup.
retentionInDays
- the value to setpublic BackupSummary.Builder mysqlVersion(String mysqlVersion)
The version of the DB System used for backup.
mysqlVersion
- the value to setpublic BackupSummary.Builder shapeName(String shapeName)
The shape of the DB System instance used for backup.
shapeName
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic BackupSummary.Builder immediateSourceBackupId(String immediateSourceBackupId)
The OCID of the immediate source DB system backup from which this DB system backup was copied.
immediateSourceBackupId
- the value to setpublic BackupSummary.Builder originalSourceBackupId(String originalSourceBackupId)
The OCID of the original source DB system backup from which this DB system backup was copied.
originalSourceBackupId
- the value to setpublic BackupSummary.Builder timeCopyCreated(Date timeCopyCreated)
The date and time the DB system backup copy was created, as described by RFC 3339.
timeCopyCreated
- the value to setpublic BackupSummary.Builder dbSystemSnapshotSummary(DbSystemSnapshotSummary dbSystemSnapshotSummary)
public BackupSummary build()
public BackupSummary.Builder copy(BackupSummary model)
Copyright © 2016–2024. All rights reserved.