public static class ProtectionPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProtectionPolicy.Builder |
backupRetentionPeriodInDays(Integer backupRetentionPeriodInDays)
The maximum number of days to retain backups for a protected database.
|
ProtectionPolicy |
build() |
ProtectionPolicy.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the protection policy.
|
ProtectionPolicy.Builder |
copy(ProtectionPolicy model) |
ProtectionPolicy.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ProtectionPolicy.Builder |
displayName(String displayName)
A user provided name for the protection policy.
|
ProtectionPolicy.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
ProtectionPolicy.Builder |
id(String id)
The protection policy OCID.
|
ProtectionPolicy.Builder |
isPredefinedPolicy(Boolean isPredefinedPolicy)
Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy.
|
ProtectionPolicy.Builder |
lifecycleDetails(String lifecycleDetails)
Detailed description about the current lifecycle state of the protection policy.
|
ProtectionPolicy.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the protection policy.
|
ProtectionPolicy.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
ProtectionPolicy.Builder |
timeCreated(Date timeCreated)
An RFC3339 formatted datetime string that indicates the created time for the protection
policy.
|
ProtectionPolicy.Builder |
timeUpdated(Date timeUpdated)
An RFC3339 formatted datetime string that indicates the updated time for the protection
policy.
|
public ProtectionPolicy.Builder id(String id)
The protection policy OCID.
id
- the value to setpublic ProtectionPolicy.Builder displayName(String displayName)
A user provided name for the protection policy.
displayName
- the value to setpublic ProtectionPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the protection policy.
compartmentId
- the value to setpublic ProtectionPolicy.Builder backupRetentionPeriodInDays(Integer backupRetentionPeriodInDays)
The maximum number of days to retain backups for a protected database. Specify a period ranging from a minimum 14 days to a maximum 95 days. For example, specify the value 55 if you want to retain backups for 55 days.
backupRetentionPeriodInDays
- the value to setpublic ProtectionPolicy.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 ProtectionPolicy.Builder timeCreated(Date timeCreated)
An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: ‘2020-05-22T21:10:29.600Z’.
timeCreated
- the value to setpublic ProtectionPolicy.Builder timeUpdated(Date timeUpdated)
An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: ‘2020-05-22T21:10:29.600Z’.
timeUpdated
- the value to setpublic ProtectionPolicy.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the protection policy. Allowed values are: - CREATING - UPDATING - ACTIVE - DELETING - DELETED - FAILED
lifecycleState
- the value to setpublic ProtectionPolicy.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 ProtectionPolicy.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 ProtectionPolicy.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 ProtectionPolicy.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 ProtectionPolicy build()
public ProtectionPolicy.Builder copy(ProtectionPolicy model)
Copyright © 2016–2024. All rights reserved.