All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.database.model.AutonomousDatabaseBackup Maven / Gradle / Ivy

Go to download

This project contains the SDK used for Oracle Cloud Infrastructure Database Service

There is a newer version: 3.61.0
Show newest version
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.database.model;

/**
 * An Autonomous Database backup. 
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link * #hashCode()} and {@link #equals(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 {@code null} from unset {@code * null}). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AutonomousDatabaseBackup.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class AutonomousDatabaseBackup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", "compartmentId", "autonomousDatabaseId", "displayName", "type", "isAutomatic", "timeStarted", "timeEnded", "lifecycleDetails", "databaseSizeInTBs", "lifecycleState", "isRestorable", "keyStoreId", "keyStoreWalletName", "kmsKeyId", "vaultId", "kmsKeyVersionId", "retentionPeriodInDays", "timeAvailableTill", "dbVersion", "sizeInTBs", "backupDestinationDetails" }) public AutonomousDatabaseBackup( String id, String compartmentId, String autonomousDatabaseId, String displayName, Type type, Boolean isAutomatic, java.util.Date timeStarted, java.util.Date timeEnded, String lifecycleDetails, java.math.BigDecimal databaseSizeInTBs, LifecycleState lifecycleState, Boolean isRestorable, String keyStoreId, String keyStoreWalletName, String kmsKeyId, String vaultId, String kmsKeyVersionId, Integer retentionPeriodInDays, java.util.Date timeAvailableTill, String dbVersion, Double sizeInTBs, BackupDestinationDetails backupDestinationDetails) { super(); this.id = id; this.compartmentId = compartmentId; this.autonomousDatabaseId = autonomousDatabaseId; this.displayName = displayName; this.type = type; this.isAutomatic = isAutomatic; this.timeStarted = timeStarted; this.timeEnded = timeEnded; this.lifecycleDetails = lifecycleDetails; this.databaseSizeInTBs = databaseSizeInTBs; this.lifecycleState = lifecycleState; this.isRestorable = isRestorable; this.keyStoreId = keyStoreId; this.keyStoreWalletName = keyStoreWalletName; this.kmsKeyId = kmsKeyId; this.vaultId = vaultId; this.kmsKeyVersionId = kmsKeyVersionId; this.retentionPeriodInDays = retentionPeriodInDays; this.timeAvailableTill = timeAvailableTill; this.dbVersion = dbVersion; this.sizeInTBs = sizeInTBs; this.backupDestinationDetails = backupDestinationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database backup. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database backup. * * @param id the value to set * @return this builder */ public Builder id(String id) { this.id = id; this.__explicitlySet__.add("id"); return this; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * compartment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * compartment. * * @param compartmentId the value to set * @return this builder */ public Builder compartmentId(String compartmentId) { this.compartmentId = compartmentId; this.__explicitlySet__.add("compartmentId"); return this; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database. */ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId") private String autonomousDatabaseId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database. * * @param autonomousDatabaseId the value to set * @return this builder */ public Builder autonomousDatabaseId(String autonomousDatabaseId) { this.autonomousDatabaseId = autonomousDatabaseId; this.__explicitlySet__.add("autonomousDatabaseId"); return this; } /** The user-friendly name for the backup. The name does not have to be unique. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** * The user-friendly name for the backup. The name does not have to be unique. * * @param displayName the value to set * @return this builder */ public Builder displayName(String displayName) { this.displayName = displayName; this.__explicitlySet__.add("displayName"); return this; } /** The type of backup. */ @com.fasterxml.jackson.annotation.JsonProperty("type") private Type type; /** * The type of backup. * * @param type the value to set * @return this builder */ public Builder type(Type type) { this.type = type; this.__explicitlySet__.add("type"); return this; } /** Indicates whether the backup is user-initiated or automatic. */ @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic") private Boolean isAutomatic; /** * Indicates whether the backup is user-initiated or automatic. * * @param isAutomatic the value to set * @return this builder */ public Builder isAutomatic(Boolean isAutomatic) { this.isAutomatic = isAutomatic; this.__explicitlySet__.add("isAutomatic"); return this; } /** The date and time the backup started. */ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") private java.util.Date timeStarted; /** * The date and time the backup started. * * @param timeStarted the value to set * @return this builder */ public Builder timeStarted(java.util.Date timeStarted) { this.timeStarted = timeStarted; this.__explicitlySet__.add("timeStarted"); return this; } /** The date and time the backup completed. */ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") private java.util.Date timeEnded; /** * The date and time the backup completed. * * @param timeEnded the value to set * @return this builder */ public Builder timeEnded(java.util.Date timeEnded) { this.timeEnded = timeEnded; this.__explicitlySet__.add("timeEnded"); return this; } /** Additional information about the current lifecycle state. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** * Additional information about the current lifecycle state. * * @param lifecycleDetails the value to set * @return this builder */ public Builder lifecycleDetails(String lifecycleDetails) { this.lifecycleDetails = lifecycleDetails; this.__explicitlySet__.add("lifecycleDetails"); return this; } /** The size of the database in terabytes at the time the backup was taken. */ @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInTBs") private java.math.BigDecimal databaseSizeInTBs; /** * The size of the database in terabytes at the time the backup was taken. * * @param databaseSizeInTBs the value to set * @return this builder */ public Builder databaseSizeInTBs(java.math.BigDecimal databaseSizeInTBs) { this.databaseSizeInTBs = databaseSizeInTBs; this.__explicitlySet__.add("databaseSizeInTBs"); return this; } /** The current state of the backup. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** * The current state of the backup. * * @param lifecycleState the value to set * @return this builder */ public Builder lifecycleState(LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; } /** * Indicates whether the backup can be used to restore the associated Autonomous Database. */ @com.fasterxml.jackson.annotation.JsonProperty("isRestorable") private Boolean isRestorable; /** * Indicates whether the backup can be used to restore the associated Autonomous Database. * * @param isRestorable the value to set * @return this builder */ public Builder isRestorable(Boolean isRestorable) { this.isRestorable = isRestorable; this.__explicitlySet__.add("isRestorable"); return this; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * key store of Oracle Vault. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStoreId") private String keyStoreId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * key store of Oracle Vault. * * @param keyStoreId the value to set * @return this builder */ public Builder keyStoreId(String keyStoreId) { this.keyStoreId = keyStoreId; this.__explicitlySet__.add("keyStoreId"); return this; } /** The wallet name for Oracle Key Vault. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStoreWalletName") private String keyStoreWalletName; /** * The wallet name for Oracle Key Vault. * * @param keyStoreWalletName the value to set * @return this builder */ public Builder keyStoreWalletName(String keyStoreWalletName) { this.keyStoreWalletName = keyStoreWalletName; this.__explicitlySet__.add("keyStoreWalletName"); return this; } /** * The OCID of the key container that is used as the master encryption key in database * transparent data encryption (TDE) operations. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private String kmsKeyId; /** * The OCID of the key container that is used as the master encryption key in database * transparent data encryption (TDE) operations. * * @param kmsKeyId the value to set * @return this builder */ public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; this.__explicitlySet__.add("kmsKeyId"); return this; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure * [vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code secretId} are required for Customer Managed Keys. */ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure * [vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code secretId} are required for Customer Managed Keys. * * @param vaultId the value to set * @return this builder */ public Builder vaultId(String vaultId) { this.vaultId = vaultId; this.__explicitlySet__.add("vaultId"); return this; } /** * The OCID of the key container version that is used in database transparent data * encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, * the current key version (latest) of the Key Id is used for the operation. Autonomous * Database Serverless does not use key versions, hence is not applicable for Autonomous * Database Serverless instances. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") private String kmsKeyVersionId; /** * The OCID of the key container version that is used in database transparent data * encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, * the current key version (latest) of the Key Id is used for the operation. Autonomous * Database Serverless does not use key versions, hence is not applicable for Autonomous * Database Serverless instances. * * @param kmsKeyVersionId the value to set * @return this builder */ public Builder kmsKeyVersionId(String kmsKeyVersionId) { this.kmsKeyVersionId = kmsKeyVersionId; this.__explicitlySet__.add("kmsKeyVersionId"); return this; } /** Retention period, in days, for long-term backups */ @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") private Integer retentionPeriodInDays; /** * Retention period, in days, for long-term backups * * @param retentionPeriodInDays the value to set * @return this builder */ public Builder retentionPeriodInDays(Integer retentionPeriodInDays) { this.retentionPeriodInDays = retentionPeriodInDays; this.__explicitlySet__.add("retentionPeriodInDays"); return this; } /** Timestamp until when the backup will be available */ @com.fasterxml.jackson.annotation.JsonProperty("timeAvailableTill") private java.util.Date timeAvailableTill; /** * Timestamp until when the backup will be available * * @param timeAvailableTill the value to set * @return this builder */ public Builder timeAvailableTill(java.util.Date timeAvailableTill) { this.timeAvailableTill = timeAvailableTill; this.__explicitlySet__.add("timeAvailableTill"); return this; } /** A valid Oracle Database version for Autonomous Database. */ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") private String dbVersion; /** * A valid Oracle Database version for Autonomous Database. * * @param dbVersion the value to set * @return this builder */ public Builder dbVersion(String dbVersion) { this.dbVersion = dbVersion; this.__explicitlySet__.add("dbVersion"); return this; } /** The backup size in terrabytes (TB). */ @com.fasterxml.jackson.annotation.JsonProperty("sizeInTBs") private Double sizeInTBs; /** * The backup size in terrabytes (TB). * * @param sizeInTBs the value to set * @return this builder */ public Builder sizeInTBs(Double sizeInTBs) { this.sizeInTBs = sizeInTBs; this.__explicitlySet__.add("sizeInTBs"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") private BackupDestinationDetails backupDestinationDetails; public Builder backupDestinationDetails(BackupDestinationDetails backupDestinationDetails) { this.backupDestinationDetails = backupDestinationDetails; this.__explicitlySet__.add("backupDestinationDetails"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AutonomousDatabaseBackup build() { AutonomousDatabaseBackup model = new AutonomousDatabaseBackup( this.id, this.compartmentId, this.autonomousDatabaseId, this.displayName, this.type, this.isAutomatic, this.timeStarted, this.timeEnded, this.lifecycleDetails, this.databaseSizeInTBs, this.lifecycleState, this.isRestorable, this.keyStoreId, this.keyStoreWalletName, this.kmsKeyId, this.vaultId, this.kmsKeyVersionId, this.retentionPeriodInDays, this.timeAvailableTill, this.dbVersion, this.sizeInTBs, this.backupDestinationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AutonomousDatabaseBackup model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } if (model.wasPropertyExplicitlySet("autonomousDatabaseId")) { this.autonomousDatabaseId(model.getAutonomousDatabaseId()); } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } if (model.wasPropertyExplicitlySet("type")) { this.type(model.getType()); } if (model.wasPropertyExplicitlySet("isAutomatic")) { this.isAutomatic(model.getIsAutomatic()); } if (model.wasPropertyExplicitlySet("timeStarted")) { this.timeStarted(model.getTimeStarted()); } if (model.wasPropertyExplicitlySet("timeEnded")) { this.timeEnded(model.getTimeEnded()); } if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } if (model.wasPropertyExplicitlySet("databaseSizeInTBs")) { this.databaseSizeInTBs(model.getDatabaseSizeInTBs()); } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } if (model.wasPropertyExplicitlySet("isRestorable")) { this.isRestorable(model.getIsRestorable()); } if (model.wasPropertyExplicitlySet("keyStoreId")) { this.keyStoreId(model.getKeyStoreId()); } if (model.wasPropertyExplicitlySet("keyStoreWalletName")) { this.keyStoreWalletName(model.getKeyStoreWalletName()); } if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { this.kmsKeyVersionId(model.getKmsKeyVersionId()); } if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { this.retentionPeriodInDays(model.getRetentionPeriodInDays()); } if (model.wasPropertyExplicitlySet("timeAvailableTill")) { this.timeAvailableTill(model.getTimeAvailableTill()); } if (model.wasPropertyExplicitlySet("dbVersion")) { this.dbVersion(model.getDbVersion()); } if (model.wasPropertyExplicitlySet("sizeInTBs")) { this.sizeInTBs(model.getSizeInTBs()); } if (model.wasPropertyExplicitlySet("backupDestinationDetails")) { this.backupDestinationDetails(model.getBackupDestinationDetails()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database backup. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database backup. * * @return the value */ public String getId() { return id; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * compartment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * compartment. * * @return the value */ public String getCompartmentId() { return compartmentId; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database. */ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId") private final String autonomousDatabaseId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Autonomous Database. * * @return the value */ public String getAutonomousDatabaseId() { return autonomousDatabaseId; } /** The user-friendly name for the backup. The name does not have to be unique. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** * The user-friendly name for the backup. The name does not have to be unique. * * @return the value */ public String getDisplayName() { return displayName; } /** The type of backup. */ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { Incremental("INCREMENTAL"), Full("FULL"), Longterm("LONGTERM"), /** * This value is used if a service returns a value for this enum that is not recognized by * this version of the SDK. */ UnknownEnumValue(null); private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); private final String value; private static java.util.Map map; static { map = new java.util.HashMap<>(); for (Type v : Type.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } Type(String value) { this.value = value; } @com.fasterxml.jackson.annotation.JsonValue public String getValue() { return value; } @com.fasterxml.jackson.annotation.JsonCreator public static Type create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); return UnknownEnumValue; } }; /** The type of backup. */ @com.fasterxml.jackson.annotation.JsonProperty("type") private final Type type; /** * The type of backup. * * @return the value */ public Type getType() { return type; } /** Indicates whether the backup is user-initiated or automatic. */ @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic") private final Boolean isAutomatic; /** * Indicates whether the backup is user-initiated or automatic. * * @return the value */ public Boolean getIsAutomatic() { return isAutomatic; } /** The date and time the backup started. */ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") private final java.util.Date timeStarted; /** * The date and time the backup started. * * @return the value */ public java.util.Date getTimeStarted() { return timeStarted; } /** The date and time the backup completed. */ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") private final java.util.Date timeEnded; /** * The date and time the backup completed. * * @return the value */ public java.util.Date getTimeEnded() { return timeEnded; } /** Additional information about the current lifecycle state. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** * Additional information about the current lifecycle state. * * @return the value */ public String getLifecycleDetails() { return lifecycleDetails; } /** The size of the database in terabytes at the time the backup was taken. */ @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInTBs") private final java.math.BigDecimal databaseSizeInTBs; /** * The size of the database in terabytes at the time the backup was taken. * * @return the value */ public java.math.BigDecimal getDatabaseSizeInTBs() { return databaseSizeInTBs; } /** The current state of the backup. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Active("ACTIVE"), Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), Updating("UPDATING"), /** * This value is used if a service returns a value for this enum that is not recognized by * this version of the SDK. */ UnknownEnumValue(null); private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(LifecycleState.class); private final String value; private static java.util.Map map; static { map = new java.util.HashMap<>(); for (LifecycleState v : LifecycleState.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } LifecycleState(String value) { this.value = value; } @com.fasterxml.jackson.annotation.JsonValue public String getValue() { return value; } @com.fasterxml.jackson.annotation.JsonCreator public static LifecycleState create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", key); return UnknownEnumValue; } }; /** The current state of the backup. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** * The current state of the backup. * * @return the value */ public LifecycleState getLifecycleState() { return lifecycleState; } /** Indicates whether the backup can be used to restore the associated Autonomous Database. */ @com.fasterxml.jackson.annotation.JsonProperty("isRestorable") private final Boolean isRestorable; /** * Indicates whether the backup can be used to restore the associated Autonomous Database. * * @return the value */ public Boolean getIsRestorable() { return isRestorable; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key * store of Oracle Vault. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStoreId") private final String keyStoreId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key * store of Oracle Vault. * * @return the value */ public String getKeyStoreId() { return keyStoreId; } /** The wallet name for Oracle Key Vault. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStoreWalletName") private final String keyStoreWalletName; /** * The wallet name for Oracle Key Vault. * * @return the value */ public String getKeyStoreWalletName() { return keyStoreWalletName; } /** * The OCID of the key container that is used as the master encryption key in database * transparent data encryption (TDE) operations. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private final String kmsKeyId; /** * The OCID of the key container that is used as the master encryption key in database * transparent data encryption (TDE) operations. * * @return the value */ public String getKmsKeyId() { return kmsKeyId; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure * [vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code secretId} are required for Customer Managed Keys. */ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private final String vaultId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure * [vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code secretId} are required for Customer Managed Keys. * * @return the value */ public String getVaultId() { return vaultId; } /** * The OCID of the key container version that is used in database transparent data encryption * (TDE) operations KMS Key can have multiple key versions. If none is specified, the current * key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless * does not use key versions, hence is not applicable for Autonomous Database Serverless * instances. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") private final String kmsKeyVersionId; /** * The OCID of the key container version that is used in database transparent data encryption * (TDE) operations KMS Key can have multiple key versions. If none is specified, the current * key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless * does not use key versions, hence is not applicable for Autonomous Database Serverless * instances. * * @return the value */ public String getKmsKeyVersionId() { return kmsKeyVersionId; } /** Retention period, in days, for long-term backups */ @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") private final Integer retentionPeriodInDays; /** * Retention period, in days, for long-term backups * * @return the value */ public Integer getRetentionPeriodInDays() { return retentionPeriodInDays; } /** Timestamp until when the backup will be available */ @com.fasterxml.jackson.annotation.JsonProperty("timeAvailableTill") private final java.util.Date timeAvailableTill; /** * Timestamp until when the backup will be available * * @return the value */ public java.util.Date getTimeAvailableTill() { return timeAvailableTill; } /** A valid Oracle Database version for Autonomous Database. */ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") private final String dbVersion; /** * A valid Oracle Database version for Autonomous Database. * * @return the value */ public String getDbVersion() { return dbVersion; } /** The backup size in terrabytes (TB). */ @com.fasterxml.jackson.annotation.JsonProperty("sizeInTBs") private final Double sizeInTBs; /** * The backup size in terrabytes (TB). * * @return the value */ public Double getSizeInTBs() { return sizeInTBs; } @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") private final BackupDestinationDetails backupDestinationDetails; public BackupDestinationDetails getBackupDestinationDetails() { return backupDestinationDetails; } @Override public String toString() { return this.toString(true); } /** * Return a string representation of the object. * * @param includeByteArrayContents true to include the full contents of byte arrays * @return string representation */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("AutonomousDatabaseBackup("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", isAutomatic=").append(String.valueOf(this.isAutomatic)); sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", databaseSizeInTBs=").append(String.valueOf(this.databaseSizeInTBs)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isRestorable=").append(String.valueOf(this.isRestorable)); sb.append(", keyStoreId=").append(String.valueOf(this.keyStoreId)); sb.append(", keyStoreWalletName=").append(String.valueOf(this.keyStoreWalletName)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); sb.append(", timeAvailableTill=").append(String.valueOf(this.timeAvailableTill)); sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); sb.append(", sizeInTBs=").append(String.valueOf(this.sizeInTBs)); sb.append(", backupDestinationDetails=") .append(String.valueOf(this.backupDestinationDetails)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AutonomousDatabaseBackup)) { return false; } AutonomousDatabaseBackup other = (AutonomousDatabaseBackup) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.isAutomatic, other.isAutomatic) && java.util.Objects.equals(this.timeStarted, other.timeStarted) && java.util.Objects.equals(this.timeEnded, other.timeEnded) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.databaseSizeInTBs, other.databaseSizeInTBs) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isRestorable, other.isRestorable) && java.util.Objects.equals(this.keyStoreId, other.keyStoreId) && java.util.Objects.equals(this.keyStoreWalletName, other.keyStoreWalletName) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) && java.util.Objects.equals(this.timeAvailableTill, other.timeAvailableTill) && java.util.Objects.equals(this.dbVersion, other.dbVersion) && java.util.Objects.equals(this.sizeInTBs, other.sizeInTBs) && java.util.Objects.equals( this.backupDestinationDetails, other.backupDestinationDetails) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.autonomousDatabaseId == null ? 43 : this.autonomousDatabaseId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.isAutomatic == null ? 43 : this.isAutomatic.hashCode()); result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.databaseSizeInTBs == null ? 43 : this.databaseSizeInTBs.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.isRestorable == null ? 43 : this.isRestorable.hashCode()); result = (result * PRIME) + (this.keyStoreId == null ? 43 : this.keyStoreId.hashCode()); result = (result * PRIME) + (this.keyStoreWalletName == null ? 43 : this.keyStoreWalletName.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); result = (result * PRIME) + (this.retentionPeriodInDays == null ? 43 : this.retentionPeriodInDays.hashCode()); result = (result * PRIME) + (this.timeAvailableTill == null ? 43 : this.timeAvailableTill.hashCode()); result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode()); result = (result * PRIME) + (this.sizeInTBs == null ? 43 : this.sizeInTBs.hashCode()); result = (result * PRIME) + (this.backupDestinationDetails == null ? 43 : this.backupDestinationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy