public static class ProtectionPolicySummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProtectionPolicySummary.Builder |
backupRetentionPeriodInDays(Integer backupRetentionPeriodInDays)
The maximum number of days to retain backups for a protected database.
|
ProtectionPolicySummary |
build() |
ProtectionPolicySummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the protection policy.
|
ProtectionPolicySummary.Builder |
copy(ProtectionPolicySummary model) |
ProtectionPolicySummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ProtectionPolicySummary.Builder |
displayName(String displayName)
A user provided name for the protection policy.
|
ProtectionPolicySummary.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
ProtectionPolicySummary.Builder |
id(String id)
The protection policy OCID.
|
ProtectionPolicySummary.Builder |
isPredefinedPolicy(Boolean isPredefinedPolicy)
Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy.
|
ProtectionPolicySummary.Builder |
lifecycleDetails(String lifecycleDetails)
Detailed description about the current lifecycle state of the protection policy.
|
ProtectionPolicySummary.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the Protection Policy.
|
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.
|
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.
|
ProtectionPolicySummary.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
ProtectionPolicySummary.Builder |
timeCreated(Date timeCreated)
The time the Protection Policy was created.
|
ProtectionPolicySummary.Builder |
timeUpdated(Date timeUpdated)
The time the Protection Policy was updated.
|
public ProtectionPolicySummary.Builder id(String id)
The protection policy OCID.
id
- the value to setpublic ProtectionPolicySummary.Builder displayName(String displayName)
A user provided name for the protection policy.
displayName
- the value to setpublic ProtectionPolicySummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the protection policy.
compartmentId
- the value to setpublic ProtectionPolicySummary.Builder backupRetentionPeriodInDays(Integer backupRetentionPeriodInDays)
The maximum number of days to retain backups for a protected database.
backupRetentionPeriodInDays
- the value to setpublic 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.
isPredefinedPolicy
- the value to setpublic 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.
policyLockedDateTime
- the value to setpublic 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.
mustEnforceCloudLocality
- the value to setpublic ProtectionPolicySummary.Builder timeCreated(Date timeCreated)
The time the Protection Policy was created. An RFC3339 formatted datetime string
timeCreated
- the value to setpublic ProtectionPolicySummary.Builder timeUpdated(Date timeUpdated)
The time the Protection Policy was updated. An RFC3339 formatted datetime string
timeUpdated
- the value to setpublic ProtectionPolicySummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the Protection Policy.
lifecycleState
- the value to setpublic 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.
lifecycleDetails
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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
definedTags
- the value to setpublic 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
systemTags
- the value to setpublic ProtectionPolicySummary build()
public ProtectionPolicySummary.Builder copy(ProtectionPolicySummary model)
Copyright © 2016–2024. All rights reserved.