Package com.oracle.bmc.psql.model
Class BackupSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.psql.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
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
copyStatus(List<BackupCopyStatusDetails> copyStatus)
List of status for Backup CopyBackupSummary.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
timeCreatedPrecise(Date timeCreatedPrecise)
The date and time the backup was created.BackupSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the backup was updated, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public BackupSummary.Builder id(String id)
A unique identifier for the backup.Immutable on creation.
- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public BackupSummary.Builder displayName(String displayName)
A user-friendly display name for the backup.Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public BackupSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the backup.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public 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
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public 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
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public BackupSummary.Builder lifecycleState(Backup.LifecycleState lifecycleState)
The current state of the backup.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public 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.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
sourceType
public 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.- Parameters:
sourceType
- the value to set- Returns:
- this builder
-
timeCreatedPrecise
public BackupSummary.Builder timeCreatedPrecise(Date timeCreatedPrecise)
The date and time the backup was created.This is the time the actual point-in-time data snapshot was taken, expressed in RFC 3339 timestamp format.
Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreatedPrecise
- the value to set- Returns:
- this builder
-
backupSize
public BackupSummary.Builder backupSize(Integer backupSize)
The size of the backup, in gigabytes.- Parameters:
backupSize
- the value to set- Returns:
- this builder
-
dbSystemId
public BackupSummary.Builder dbSystemId(String dbSystemId)
The backup’s source database system’s OCID.- Parameters:
dbSystemId
- the value to set- Returns:
- this builder
-
retentionPeriod
public BackupSummary.Builder retentionPeriod(Integer retentionPeriod)
Backup retention period in days.- Parameters:
retentionPeriod
- the value to set- Returns:
- this builder
-
copyStatus
public BackupSummary.Builder copyStatus(List<BackupCopyStatusDetails> copyStatus)
List of status for Backup Copy- Parameters:
copyStatus
- 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)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public BackupSummary build()
-
copy
public BackupSummary.Builder copy(BackupSummary model)
-
-