Class ProtectedDatabaseSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.recovery.model.ProtectedDatabaseSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210216") public final class ProtectedDatabaseSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA protected database is an Oracle Cloud Database whose backups are managed by Oracle Database Autonomous Recovery Service.Each protected database requires a recovery service subnet and a protection policy to use Recovery Service as the backup destination for centralized backup and recovery. To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). For information about access control and compartments, see [Overview of the Identity Service](https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). 
 Note: Objects should always be created or deserialized using theProtectedDatabaseSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theProtectedDatabaseSummary.Builder, which maintain a set of all explicitly set fields calledProtectedDatabaseSummary.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classProtectedDatabaseSummary.Builder
 - 
Constructor SummaryConstructors Constructor Description ProtectedDatabaseSummary(String id, String displayName, String compartmentId, String dbUniqueName, String vpcUserName, DatabaseSizes databaseSize, String protectionPolicyId, String policyLockedDateTime, List<RecoveryServiceSubnetDetails> recoveryServiceSubnets, String databaseId, Date timeCreated, Date timeUpdated, LifecycleState lifecycleState, Health health, String lifecycleDetails, String healthDetails, Boolean isReadOnlyResource, MetricsSummary metrics, String subscriptionId, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectedDatabaseSummary.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCompartmentId()The OCID of the compartment that contains the protected database.StringgetDatabaseId()The OCID of the protected database.DatabaseSizesgetDatabaseSize()The size of the protected database.StringgetDbUniqueName()The dbUniqueName for the protected database in Recovery Service.Map<String,Map<String,Object>>getDefinedTags()Defined tags for this resource.StringgetDisplayName()The protected database name.Map<String,String>getFreeformTags()Simple key-value pair that is applied without any predefined name, type or scope.HealthgetHealth()The health of the Protected Database.StringgetHealthDetails()A message describing the current health of the protected database.StringgetId()The OCID of the protected database.BooleangetIsReadOnlyResource()Indicates whether the protected database is created by Recovery Service or created manually.StringgetLifecycleDetails()Detailed description about the current lifecycle state of the protected database.LifecycleStategetLifecycleState()The current state of the Protected Database.MetricsSummarygetMetrics()StringgetPolicyLockedDateTime()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.StringgetProtectionPolicyId()The OCID of the protection policy associated with the protected database.List<RecoveryServiceSubnetDetails>getRecoveryServiceSubnets()List of recovery service subnet resources associated with the protected database.StringgetSubscriptionId()The OCID of the cloud service subscription to which the protected database is linked.Map<String,Map<String,Object>>getSystemTags()Usage of system tag keys.DategetTimeCreated()An RFC3339 formatted datetime string that indicates the created time for a protected database.DategetTimeUpdated()An RFC3339 formatted datetime string that indicates the last updated time for a protected database.StringgetVpcUserName()The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.inthashCode()ProtectedDatabaseSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
ProtectedDatabaseSummary@Deprecated @ConstructorProperties({"id","displayName","compartmentId","dbUniqueName","vpcUserName","databaseSize","protectionPolicyId","policyLockedDateTime","recoveryServiceSubnets","databaseId","timeCreated","timeUpdated","lifecycleState","health","lifecycleDetails","healthDetails","isReadOnlyResource","metrics","subscriptionId","freeformTags","definedTags","systemTags"}) public ProtectedDatabaseSummary(String id, String displayName, String compartmentId, String dbUniqueName, String vpcUserName, DatabaseSizes databaseSize, String protectionPolicyId, String policyLockedDateTime, List<RecoveryServiceSubnetDetails> recoveryServiceSubnets, String databaseId, Date timeCreated, Date timeUpdated, LifecycleState lifecycleState, Health health, String lifecycleDetails, String healthDetails, Boolean isReadOnlyResource, MetricsSummary metrics, String subscriptionId, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ProtectedDatabaseSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic ProtectedDatabaseSummary.Builder toBuilder() 
 - 
getIdpublic String getId() The OCID of the protected database.- Returns:
- the value
 
 - 
getDisplayNamepublic String getDisplayName() The protected database name.You can change the displayName. Avoid entering confidential information. - Returns:
- the value
 
 - 
getCompartmentIdpublic String getCompartmentId() The OCID of the compartment that contains the protected database.- Returns:
- the value
 
 - 
getDbUniqueNamepublic String getDbUniqueName() The dbUniqueName for the protected database in Recovery Service.You cannot change the unique name. - Returns:
- the value
 
 - 
getVpcUserNamepublic String getVpcUserName() The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.- Returns:
- the value
 
 - 
getDatabaseSizepublic DatabaseSizes getDatabaseSize() 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.
 - Returns:
- the value
 
 - 
getProtectionPolicyIdpublic String getProtectionPolicyId() The OCID of the protection policy associated with the protected database.- Returns:
- the value
 
 - 
getPolicyLockedDateTimepublic String getPolicyLockedDateTime() 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. - Returns:
- the value
 
 - 
getRecoveryServiceSubnetspublic List<RecoveryServiceSubnetDetails> getRecoveryServiceSubnets() List of recovery service subnet resources associated with the protected database.- Returns:
- the value
 
 - 
getDatabaseIdpublic String getDatabaseId() The OCID of the protected database.- Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() An RFC3339 formatted datetime string that indicates the created time for a protected database.For example: ‘2020-05-22T21:10:29.600Z’ - Returns:
- the value
 
 - 
getTimeUpdatedpublic Date getTimeUpdated() An RFC3339 formatted datetime string that indicates the last updated time for a protected database.For example: ‘2020-05-22T21:10:29.600Z’ - Returns:
- the value
 
 - 
getLifecycleStatepublic LifecycleState getLifecycleState() The current state of the Protected Database.- Returns:
- the value
 
 - 
getHealthpublic Health getHealth() The health of the Protected Database.- Returns:
- the value
 
 - 
getLifecycleDetailspublic String getLifecycleDetails() 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. - Returns:
- the value
 
 - 
getHealthDetailspublic String getHealthDetails() A message describing the current health of the protected database.- Returns:
- the value
 
 - 
getIsReadOnlyResourcepublic Boolean getIsReadOnlyResource() 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. - Returns:
- the value
 
 - 
getMetricspublic MetricsSummary getMetrics() 
 - 
getSubscriptionIdpublic String getSubscriptionId() The OCID of the cloud service subscription to which the protected database is linked.- Returns:
- the value
 
 - 
getFreeformTagspublic Map<String,String> getFreeformTags() Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”} - Returns:
- the value
 
 - 
getDefinedTagspublic Map<String,Map<String,Object>> getDefinedTags() 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 - Returns:
- the value
 
 - 
getSystemTagspublic Map<String,Map<String,Object>> getSystemTags() 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 - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-