public static class BackupSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BackupSummary.Builder |
backupSize(Integer backupSize)
The size of the backup, in gigabytes.
|
BackupSummary |
build() |
BackupSummary.Builder |
compartmentId(String compartmentId)
The OCID of the
compartment that contains the backup.
|
BackupSummary.Builder |
copy(BackupSummary model) |
BackupSummary.Builder |
dbSystemId(String dbSystemId)
The backup’s source database system’s
OCID.
|
BackupSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
BackupSummary.Builder |
displayName(String displayName)
A user-friendly 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)
A unique identifier for the backup.
|
BackupSummary.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
BackupSummary.Builder |
lifecycleState(Backup.LifecycleState lifecycleState)
The current state of the backup.
|
BackupSummary.Builder |
retentionPeriod(Integer retentionPeriod)
Backup retention period in days.
|
BackupSummary.Builder |
sourceType(Backup.SourceType sourceType)
Specifies whether the backup was created manually, taken on schedule defined in the a
backup policy, or copied from the remote location.
|
BackupSummary.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
BackupSummary.Builder |
timeCreated(Date timeCreated)
The date and time the backup was created, expressed in RFC
3339 timestamp format.
|
BackupSummary.Builder |
timeUpdated(Date timeUpdated)
The date and time the backup was updated, expressed in RFC
3339 timestamp format.
|
public BackupSummary.Builder id(String id)
A unique identifier for the backup. Immutable on creation.
id
- the value to setpublic BackupSummary.Builder displayName(String displayName)
A user-friendly display name for the backup. Avoid entering confidential information.
displayName
- the value to setpublic BackupSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the backup.
compartmentId
- the value to setpublic BackupSummary.Builder timeCreated(Date timeCreated)
The date and time the backup was created, expressed in RFC 3339 timestamp format.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic BackupSummary.Builder timeUpdated(Date timeUpdated)
The date and time the backup was updated, expressed in RFC 3339 timestamp format.
Example: 2016-08-25T21:10:29.600Z
timeUpdated
- the value to setpublic BackupSummary.Builder lifecycleState(Backup.LifecycleState lifecycleState)
The current state of the backup.
lifecycleState
- the value to setpublic BackupSummary.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
lifecycleDetails
- the value to setpublic BackupSummary.Builder sourceType(Backup.SourceType sourceType)
Specifies whether the backup was created manually, taken on schedule defined in the a backup policy, or copied from the remote location.
sourceType
- the value to setpublic BackupSummary.Builder backupSize(Integer backupSize)
The size of the backup, in gigabytes.
backupSize
- the value to setpublic BackupSummary.Builder dbSystemId(String dbSystemId)
The backup’s source database system’s OCID.
dbSystemId
- the value to setpublic BackupSummary.Builder retentionPeriod(Integer retentionPeriod)
Backup retention period in days.
retentionPeriod
- 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 systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic BackupSummary build()
public BackupSummary.Builder copy(BackupSummary model)
Copyright © 2016–2024. All rights reserved.