Class LongTermBackupSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.model.LongTermBackupSummary.Builder
-
- Enclosing class:
- LongTermBackupSummary
public static class LongTermBackupSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongTermBackupSummarybuild()LongTermBackupSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the long term backup.LongTermBackupSummary.Buildercopy(LongTermBackupSummary model)LongTermBackupSummary.BuilderdatabaseIdentifier(String databaseIdentifier)The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.LongTermBackupSummary.BuilderdatabaseSizeInGBs(Integer databaseSizeInGBs)Database sizeLongTermBackupSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.LongTermBackupSummary.BuilderdisplayName(String displayName)The long term backup name.LongTermBackupSummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.LongTermBackupSummary.Builderid(String id)The Long Term Backup OCID.LongTermBackupSummary.BuilderlifecycleDetails(String lifecycleDetails)Detailed description about the current lifecycle state of the long term backup.LongTermBackupSummary.BuilderlifecycleState(LongTermBackup.LifecycleState lifecycleState)The current state of the long term backup.LongTermBackupSummary.BuilderlifecycleSubstate(LongTermBackup.LifecycleSubstate lifecycleSubstate)More details on the state of the backup when it is in Creating lifecycleState.LongTermBackupSummary.BuilderprotectedDatabaseId(String protectedDatabaseId)The protected database ocid.LongTermBackupSummary.BuilderretentionPeriod(List<RetentionPeriodValue> retentionPeriod)Retain the long-term backup as per the backup retention period specifiedLongTermBackupSummary.BuilderretentionPointInTime(Date retentionPointInTime)An RFC3339 formatted datetime string that indicates the time for a long term backup to be initiated.LongTermBackupSummary.BuilderretentionScn(Integer retentionScn)System Change Number (SCN) to which backup is consistent.LongTermBackupSummary.BuilderretentionUntilDateTime(Date retentionUntilDateTime)An RFC3339 formatted datetime string that indicates the time after which the long term backup will be deleted.LongTermBackupSummary.BuilderrmanTag(String rmanTag)Recovery Manager (RMAN) assigned unique identifier for the long-term backup.LongTermBackupSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.LongTermBackupSummary.BuildertimeBackupCompleted(Date timeBackupCompleted)An RFC3339 formatted datetime string that indicates the time when the backup was actually completed.LongTermBackupSummary.BuildertimeBackupInitiated(Date timeBackupInitiated)An RFC3339 formatted datetime string that indicates the time when the backup was actually taken.LongTermBackupSummary.BuildertimeCreated(Date timeCreated)An RFC3339 formatted datetime string that indicates the created time for the long term backup.LongTermBackupSummary.BuildertimeUpdated(Date timeUpdated)An RFC3339 formatted datetime string that indicates the updated time for the long term backup.
-
-
-
Method Detail
-
id
public LongTermBackupSummary.Builder id(String id)
The Long Term Backup OCID.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public LongTermBackupSummary.Builder displayName(String displayName)
The long term backup name.You can change the displayName. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public LongTermBackupSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the long term backup.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
protectedDatabaseId
public LongTermBackupSummary.Builder protectedDatabaseId(String protectedDatabaseId)
The protected database ocid.- Parameters:
protectedDatabaseId- the value to set- Returns:
- this builder
-
retentionScn
public LongTermBackupSummary.Builder retentionScn(Integer retentionScn)
System Change Number (SCN) to which backup is consistent.- Parameters:
retentionScn- the value to set- Returns:
- this builder
-
retentionPointInTime
public LongTermBackupSummary.Builder retentionPointInTime(Date retentionPointInTime)
An RFC3339 formatted datetime string that indicates the time for a long term backup to be initiated.- Parameters:
retentionPointInTime- the value to set- Returns:
- this builder
-
timeBackupInitiated
public LongTermBackupSummary.Builder timeBackupInitiated(Date timeBackupInitiated)
An RFC3339 formatted datetime string that indicates the time when the backup was actually taken.For example ‘2020-05-22T21:10:29.600Z’
- Parameters:
timeBackupInitiated- the value to set- Returns:
- this builder
-
timeBackupCompleted
public LongTermBackupSummary.Builder timeBackupCompleted(Date timeBackupCompleted)
An RFC3339 formatted datetime string that indicates the time when the backup was actually completed.For example ‘2020-05-22T21:10:29.600Z’
- Parameters:
timeBackupCompleted- the value to set- Returns:
- this builder
-
retentionPeriod
public LongTermBackupSummary.Builder retentionPeriod(List<RetentionPeriodValue> retentionPeriod)
Retain the long-term backup as per the backup retention period specified- Parameters:
retentionPeriod- the value to set- Returns:
- this builder
-
retentionUntilDateTime
public LongTermBackupSummary.Builder retentionUntilDateTime(Date retentionUntilDateTime)
An RFC3339 formatted datetime string that indicates the time after which the long term backup will be deleted.For example ‘2020-05-22T21:10:29.600Z’. This timestamp has to be 95 days-10 years from the current timestamp
- Parameters:
retentionUntilDateTime- the value to set- Returns:
- this builder
-
databaseIdentifier
public LongTermBackupSummary.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 LongTermBackupSummary.Builder databaseSizeInGBs(Integer databaseSizeInGBs)
Database size- Parameters:
databaseSizeInGBs- the value to set- Returns:
- this builder
-
timeCreated
public LongTermBackupSummary.Builder timeCreated(Date timeCreated)
An RFC3339 formatted datetime string that indicates the created time for the long term backup.For example: ‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public LongTermBackupSummary.Builder timeUpdated(Date timeUpdated)
An RFC3339 formatted datetime string that indicates the updated time for the long term backup.For example: ‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public LongTermBackupSummary.Builder lifecycleState(LongTermBackup.LifecycleState lifecycleState)
The current state of the long term backup.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleSubstate
public LongTermBackupSummary.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 LongTermBackupSummary.Builder lifecycleDetails(String lifecycleDetails)
Detailed description 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 LongTermBackupSummary.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 LongTermBackupSummary.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 LongTermBackupSummary.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 LongTermBackupSummary.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 LongTermBackupSummary build()
-
copy
public LongTermBackupSummary.Builder copy(LongTermBackupSummary model)
-
-