Class LongTermBackup.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.model.LongTermBackup.Builder
-
- Enclosing class:
- LongTermBackup
public static class LongTermBackup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongTermBackupbuild()LongTermBackup.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the long-term backup.LongTermBackup.Buildercopy(LongTermBackup model)LongTermBackup.BuilderdatabaseIdentifier(String databaseIdentifier)The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.LongTermBackup.BuilderdatabaseSizeInGBs(Integer databaseSizeInGBs)The size of the database, in gigabytes.LongTermBackup.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.LongTermBackup.BuilderdisplayName(String displayName)The user-provided name for the long-term backup.LongTermBackup.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.LongTermBackup.Builderid(String id)The OCID of the long-term backup.LongTermBackup.BuilderlifecycleDetails(String lifecycleDetails)A detailed message about the current lifecycle state of the long-term backup.LongTermBackup.BuilderlifecycleState(LongTermBackup.LifecycleState lifecycleState)The current state of the long term backup.LongTermBackup.BuilderlifecycleSubstate(LongTermBackup.LifecycleSubstate lifecycleSubstate)More details on the state of the backup when it is in Creating lifecycleState.LongTermBackup.BuilderprotectedDatabaseId(String protectedDatabaseId)The OCID of the protected database associated with the long-term backup.LongTermBackup.BuilderretentionPeriod(List<RetentionPeriodValue> retentionPeriod)The maximum number of DAYS or YEARS to store the long-term backup.LongTermBackup.BuilderretentionPointInTime(Date retentionPointInTime)An RFC3339 formatted datetime string that indicates the target point in time until which the long-term backup is consistent.LongTermBackup.BuilderretentionScn(Integer retentionScn)The unique system change number (SCN) or the target point in the database until which the long-term backup is consistent.LongTermBackup.BuilderretentionUntilDateTime(Date retentionUntilDateTime)Indicates that Recovery Service must retain the backup for the specified long-term retention period.LongTermBackup.BuilderrmanTag(String rmanTag)Recovery Manager (RMAN) assigned unique identifier for the long-term backup.LongTermBackup.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.LongTermBackup.BuildertimeBackupCompleted(Date timeBackupCompleted)An RFC3339 formatted datetime string that indicates the time when the long-term backup completed.LongTermBackup.BuildertimeBackupInitiated(Date timeBackupInitiated)An RFC3339 formatted datetime string that indicates the time when the long-term backup was created.LongTermBackup.BuildertimeCreated(Date timeCreated)An RFC3339 formatted datetime string that indicates the time when the long-term backup was created.LongTermBackup.BuildertimeUpdated(Date timeUpdated)An RFC3339 formatted datetime string that indicates the time when the long term backup was last updated.
-
-
-
Method Detail
-
id
public LongTermBackup.Builder id(String id)
The OCID of the long-term backup.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public LongTermBackup.Builder displayName(String displayName)
The user-provided name for the long-term backup.You can change the displayName. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public LongTermBackup.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the long-term backup.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
protectedDatabaseId
public LongTermBackup.Builder protectedDatabaseId(String protectedDatabaseId)
The OCID of the protected database associated with the long-term backup.- Parameters:
protectedDatabaseId- the value to set- Returns:
- this builder
-
retentionScn
public LongTermBackup.Builder retentionScn(Integer retentionScn)
The unique system change number (SCN) or the target point in the database until which the long-term backup is consistent.- Parameters:
retentionScn- the value to set- Returns:
- this builder
-
retentionPointInTime
public LongTermBackup.Builder retentionPointInTime(Date retentionPointInTime)
An RFC3339 formatted datetime string that indicates the target point in time until which the long-term backup is consistent.For example, ‘2020-05-22T21:10:29.600Z’.
- Parameters:
retentionPointInTime- the value to set- Returns:
- this builder
-
timeBackupInitiated
public LongTermBackup.Builder timeBackupInitiated(Date timeBackupInitiated)
An RFC3339 formatted datetime string that indicates the time when the long-term backup was created.For example, ‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeBackupInitiated- the value to set- Returns:
- this builder
-
timeBackupCompleted
public LongTermBackup.Builder timeBackupCompleted(Date timeBackupCompleted)
An RFC3339 formatted datetime string that indicates the time when the long-term backup completed.For example, ‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeBackupCompleted- the value to set- Returns:
- this builder
-
retentionPeriod
public LongTermBackup.Builder retentionPeriod(List<RetentionPeriodValue> retentionPeriod)
The maximum number of DAYS or YEARS to store the long-term backup.You can retain a long-term backup for a period ranging from 90-3650 days or 1-10 years.
- Parameters:
retentionPeriod- the value to set- Returns:
- this builder
-
retentionUntilDateTime
public LongTermBackup.Builder retentionUntilDateTime(Date retentionUntilDateTime)
Indicates that Recovery Service must retain the backup for the specified long-term retention period.- Parameters:
retentionUntilDateTime- the value to set- Returns:
- this builder
-
databaseIdentifier
public LongTermBackup.Builder databaseIdentifier(String databaseIdentifier)
The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.- Parameters:
databaseIdentifier- the value to set- Returns:
- this builder
-
databaseSizeInGBs
public LongTermBackup.Builder databaseSizeInGBs(Integer databaseSizeInGBs)
The size of the database, in gigabytes.- Parameters:
databaseSizeInGBs- the value to set- Returns:
- this builder
-
timeCreated
public LongTermBackup.Builder timeCreated(Date timeCreated)
An RFC3339 formatted datetime string that indicates the time when the long-term backup was created.For example: ‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public LongTermBackup.Builder timeUpdated(Date timeUpdated)
An RFC3339 formatted datetime string that indicates the time when the long term backup was last updated.For example: ‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public LongTermBackup.Builder lifecycleState(LongTermBackup.LifecycleState lifecycleState)
The current state of the long term backup.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleSubstate
public LongTermBackup.Builder lifecycleSubstate(LongTermBackup.LifecycleSubstate lifecycleSubstate)
More details on the state of the backup when it is in Creating lifecycleState.- Parameters:
lifecycleSubstate- the value to set- Returns:
- this builder
-
lifecycleDetails
public LongTermBackup.Builder lifecycleDetails(String lifecycleDetails)
A detailed message about the current lifecycle state of the long-term backup.For example, it can be used to provide actionable information for a resource in a Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
rmanTag
public LongTermBackup.Builder rmanTag(String rmanTag)
Recovery Manager (RMAN) assigned unique identifier for the long-term backup.- Parameters:
rmanTag- the value to set- Returns:
- this builder
-
freeformTags
public LongTermBackup.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 LongTermBackup.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”}}. For more information, see Resource Tags
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public LongTermBackup.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”}}. For more information, see Resource Tags
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public LongTermBackup build()
-
copy
public LongTermBackup.Builder copy(LongTermBackup model)
-
-