Package com.oracle.bmc.psql.model
Class Backup.Builder
- java.lang.Object
-
- com.oracle.bmc.psql.model.Backup.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Backup.Builder
backupSize(Integer backupSize)
The size of the backup, in gigabytes.Backup
build()
Backup.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the backup.Backup.Builder
copy(Backup model)
Backup.Builder
copyStatus(List<BackupCopyStatusDetails> copyStatus)
List of status for Backup CopyBackup.Builder
dbSystemDetails(DbSystemDetails dbSystemDetails)
Backup.Builder
dbSystemId(String dbSystemId)
The OCID of the backup’s source database system.Backup.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Backup.Builder
description(String description)
A description for the backup.Backup.Builder
displayName(String displayName)
A user-friendly display name for the backup.Backup.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Backup.Builder
id(String id)
The OCID of the backup.Backup.Builder
lastAcceptedRequestToken(String lastAcceptedRequestToken)
lastAcceptedRequestToken from MP.Backup.Builder
lastCompletedRequestToken(String lastCompletedRequestToken)
lastCompletedRequestToken from MP.Backup.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.Backup.Builder
lifecycleState(Backup.LifecycleState lifecycleState)
The current state of the backup.Backup.Builder
retentionPeriod(Integer retentionPeriod)
Backup retention period in days.Backup.Builder
sourceBackupDetails(SourceBackupDetails sourceBackupDetails)
Backup.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.Backup.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Backup.Builder
timeCreated(Date timeCreated)
The date and time the backup request was received, expressed in RFC 3339 timestamp format.Backup.Builder
timeCreatedPrecise(Date timeCreatedPrecise)
The date and time the backup was created.Backup.Builder
timeUpdated(Date timeUpdated)
The date and time the backup was updated, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public Backup.Builder id(String id)
The OCID of the backup.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public Backup.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
-
description
public Backup.Builder description(String description)
A description for the backup.- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public Backup.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the backup.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
sourceType
public Backup.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
-
timeCreated
public Backup.Builder timeCreated(Date timeCreated)
The date and time the backup request was received, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeCreatedPrecise
public Backup.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
-
timeUpdated
public Backup.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 Backup.Builder lifecycleState(Backup.LifecycleState lifecycleState)
The current state of the backup.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Backup.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
-
retentionPeriod
public Backup.Builder retentionPeriod(Integer retentionPeriod)
Backup retention period in days.- Parameters:
retentionPeriod
- the value to set- Returns:
- this builder
-
backupSize
public Backup.Builder backupSize(Integer backupSize)
The size of the backup, in gigabytes.- Parameters:
backupSize
- the value to set- Returns:
- this builder
-
dbSystemId
public Backup.Builder dbSystemId(String dbSystemId)
The OCID of the backup’s source database system.- Parameters:
dbSystemId
- the value to set- Returns:
- this builder
-
dbSystemDetails
public Backup.Builder dbSystemDetails(DbSystemDetails dbSystemDetails)
-
sourceBackupDetails
public Backup.Builder sourceBackupDetails(SourceBackupDetails sourceBackupDetails)
-
lastAcceptedRequestToken
public Backup.Builder lastAcceptedRequestToken(String lastAcceptedRequestToken)
lastAcceptedRequestToken from MP.- Parameters:
lastAcceptedRequestToken
- the value to set- Returns:
- this builder
-
lastCompletedRequestToken
public Backup.Builder lastCompletedRequestToken(String lastCompletedRequestToken)
lastCompletedRequestToken from MP.- Parameters:
lastCompletedRequestToken
- the value to set- Returns:
- this builder
-
copyStatus
public Backup.Builder copyStatus(List<BackupCopyStatusDetails> copyStatus)
List of status for Backup Copy- Parameters:
copyStatus
- the value to set- Returns:
- this builder
-
freeformTags
public Backup.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 Backup.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 Backup.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 Backup build()
-
copy
public Backup.Builder copy(Backup model)
-
-