Package com.oracle.bmc.recovery.model
Class ProtectionPolicySummary.Builder
- java.lang.Object
- 
- com.oracle.bmc.recovery.model.ProtectionPolicySummary.Builder
 
- 
- Enclosing class:
- ProtectionPolicySummary
 
 public static class ProtectionPolicySummary.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectionPolicySummary.BuilderbackupRetentionPeriodInDays(Integer backupRetentionPeriodInDays)The maximum number of days to retain backups for a protected database.ProtectionPolicySummarybuild()ProtectionPolicySummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the protection policy.ProtectionPolicySummary.Buildercopy(ProtectionPolicySummary model)ProtectionPolicySummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ProtectionPolicySummary.BuilderdisplayName(String displayName)A user provided name for the protection policy.ProtectionPolicySummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ProtectionPolicySummary.Builderid(String id)The protection policy OCID.ProtectionPolicySummary.BuilderisPredefinedPolicy(Boolean isPredefinedPolicy)Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy.ProtectionPolicySummary.BuilderlifecycleDetails(String lifecycleDetails)Detailed description about the current lifecycle state of the protection policy.ProtectionPolicySummary.BuilderlifecycleState(LifecycleState lifecycleState)The current state of the Protection Policy.ProtectionPolicySummary.BuildermustEnforceCloudLocality(Boolean mustEnforceCloudLocality)Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned.ProtectionPolicySummary.BuilderpolicyLockedDateTime(String policyLockedDateTime)An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.ProtectionPolicySummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.ProtectionPolicySummary.BuildertimeCreated(Date timeCreated)The time the Protection Policy was created.ProtectionPolicySummary.BuildertimeUpdated(Date timeUpdated)The time the Protection Policy was updated.
 
- 
- 
- 
Method Detail- 
idpublic ProtectionPolicySummary.Builder id(String id) The protection policy OCID.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic ProtectionPolicySummary.Builder displayName(String displayName) A user provided name for the protection policy.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic ProtectionPolicySummary.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the protection policy.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
backupRetentionPeriodInDayspublic ProtectionPolicySummary.Builder backupRetentionPeriodInDays(Integer backupRetentionPeriodInDays) The maximum number of days to retain backups for a protected database.- Parameters:
- backupRetentionPeriodInDays- the value to set
- Returns:
- this builder
 
 - 
isPredefinedPolicypublic ProtectionPolicySummary.Builder isPredefinedPolicy(Boolean isPredefinedPolicy) Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy.You can modify only the custom policies. - Parameters:
- isPredefinedPolicy- the value to set
- Returns:
- this builder
 
 - 
policyLockedDateTimepublic ProtectionPolicySummary.Builder policyLockedDateTime(String policyLockedDateTime) An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.- Parameters:
- policyLockedDateTime- the value to set
- Returns:
- this builder
 
 - 
mustEnforceCloudLocalitypublic ProtectionPolicySummary.Builder mustEnforceCloudLocality(Boolean mustEnforceCloudLocality) Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned.- Parameters:
- mustEnforceCloudLocality- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic ProtectionPolicySummary.Builder timeCreated(Date timeCreated) The time the Protection Policy was created.An RFC3339 formatted datetime string - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic ProtectionPolicySummary.Builder timeUpdated(Date timeUpdated) The time the Protection Policy was updated.An RFC3339 formatted datetime string - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic ProtectionPolicySummary.Builder lifecycleState(LifecycleState lifecycleState) The current state of the Protection Policy.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic ProtectionPolicySummary.Builder lifecycleDetails(String lifecycleDetails) Detailed description about the current lifecycle state of the protection policy.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
 
 - 
freeformTagspublic ProtectionPolicySummary.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
 
 - 
definedTagspublic ProtectionPolicySummary.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
 
 - 
systemTagspublic ProtectionPolicySummary.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
 
 - 
buildpublic ProtectionPolicySummary build() 
 - 
copypublic ProtectionPolicySummary.Builder copy(ProtectionPolicySummary model) 
 
- 
 
-