public static class ProtectedDatabaseSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProtectedDatabaseSummary |
build() |
ProtectedDatabaseSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the protected database.
|
ProtectedDatabaseSummary.Builder |
copy(ProtectedDatabaseSummary model) |
ProtectedDatabaseSummary.Builder |
databaseId(String databaseId)
The OCID of the protected database.
|
ProtectedDatabaseSummary.Builder |
databaseSize(DatabaseSizes databaseSize)
The size of the protected database.
|
ProtectedDatabaseSummary.Builder |
dbUniqueName(String dbUniqueName)
The dbUniqueName for the protected database in Recovery Service.
|
ProtectedDatabaseSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ProtectedDatabaseSummary.Builder |
displayName(String displayName)
The protected database name.
|
ProtectedDatabaseSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
ProtectedDatabaseSummary.Builder |
health(Health health)
The health of the Protected Database.
|
ProtectedDatabaseSummary.Builder |
healthDetails(String healthDetails)
A message describing the current health of the protected database.
|
ProtectedDatabaseSummary.Builder |
id(String id)
The OCID of the protected database.
|
ProtectedDatabaseSummary.Builder |
isReadOnlyResource(Boolean isReadOnlyResource)
Indicates whether the protected database is created by Recovery Service or created
manually.
|
ProtectedDatabaseSummary.Builder |
lifecycleDetails(String lifecycleDetails)
Detailed description about the current lifecycle state of the protected database.
|
ProtectedDatabaseSummary.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the Protected Database.
|
ProtectedDatabaseSummary.Builder |
metrics(MetricsSummary metrics) |
ProtectedDatabaseSummary.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.
|
ProtectedDatabaseSummary.Builder |
protectionPolicyId(String protectionPolicyId)
The OCID of the protection policy associated with the protected database.
|
ProtectedDatabaseSummary.Builder |
recoveryServiceSubnets(List<RecoveryServiceSubnetDetails> recoveryServiceSubnets)
List of recovery service subnet resources associated with the protected database.
|
ProtectedDatabaseSummary.Builder |
subscriptionId(String subscriptionId)
The OCID of the cloud service subscription to which the protected database is linked.
|
ProtectedDatabaseSummary.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
ProtectedDatabaseSummary.Builder |
timeCreated(Date timeCreated)
An RFC3339 formatted datetime string that indicates the created time for a protected
database.
|
ProtectedDatabaseSummary.Builder |
timeUpdated(Date timeUpdated)
An RFC3339 formatted datetime string that indicates the last updated time for a protected
database.
|
ProtectedDatabaseSummary.Builder |
vpcUserName(String vpcUserName)
The virtual private catalog (VPC) user credentials that authenticates the protected
database to access Recovery Service.
|
public ProtectedDatabaseSummary.Builder id(String id)
The OCID of the protected database.
id
- the value to setpublic ProtectedDatabaseSummary.Builder displayName(String displayName)
The protected database name. You can change the displayName. Avoid entering confidential information.
displayName
- the value to setpublic ProtectedDatabaseSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the protected database.
compartmentId
- the value to setpublic ProtectedDatabaseSummary.Builder dbUniqueName(String dbUniqueName)
The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
dbUniqueName
- the value to setpublic ProtectedDatabaseSummary.Builder vpcUserName(String vpcUserName)
The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
vpcUserName
- the value to setpublic ProtectedDatabaseSummary.Builder databaseSize(DatabaseSizes databaseSize)
The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
databaseSize
- the value to setpublic ProtectedDatabaseSummary.Builder protectionPolicyId(String protectionPolicyId)
The OCID of the protection policy associated with the protected database.
protectionPolicyId
- the value to setpublic ProtectedDatabaseSummary.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.
The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect.
policyLockedDateTime
- the value to setpublic ProtectedDatabaseSummary.Builder recoveryServiceSubnets(List<RecoveryServiceSubnetDetails> recoveryServiceSubnets)
List of recovery service subnet resources associated with the protected database.
recoveryServiceSubnets
- the value to setpublic ProtectedDatabaseSummary.Builder databaseId(String databaseId)
The OCID of the protected database.
databaseId
- the value to setpublic ProtectedDatabaseSummary.Builder timeCreated(Date timeCreated)
An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: ‘2020-05-22T21:10:29.600Z’
timeCreated
- the value to setpublic ProtectedDatabaseSummary.Builder timeUpdated(Date timeUpdated)
An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: ‘2020-05-22T21:10:29.600Z’
timeUpdated
- the value to setpublic ProtectedDatabaseSummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the Protected Database.
lifecycleState
- the value to setpublic ProtectedDatabaseSummary.Builder health(Health health)
The health of the Protected Database.
health
- the value to setpublic ProtectedDatabaseSummary.Builder lifecycleDetails(String lifecycleDetails)
Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
lifecycleDetails
- the value to setpublic ProtectedDatabaseSummary.Builder healthDetails(String healthDetails)
A message describing the current health of the protected database.
healthDetails
- the value to setpublic ProtectedDatabaseSummary.Builder isReadOnlyResource(Boolean isReadOnlyResource)
Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
isReadOnlyResource
- the value to setpublic ProtectedDatabaseSummary.Builder metrics(MetricsSummary metrics)
public ProtectedDatabaseSummary.Builder subscriptionId(String subscriptionId)
The OCID of the cloud service subscription to which the protected database is linked.
subscriptionId
- the value to setpublic ProtectedDatabaseSummary.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 ProtectedDatabaseSummary.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 ProtectedDatabaseSummary.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 ProtectedDatabaseSummary build()
public ProtectedDatabaseSummary.Builder copy(ProtectedDatabaseSummary model)
Copyright © 2016–2024. All rights reserved.