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

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

Go to download

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

There is a newer version: 3.49.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;

/**
 * The Autonomous Database
 * [Vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts)
 * service key management history entry. 
* 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 = AutonomousDatabaseKeyHistoryEntry.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class AutonomousDatabaseKeyHistoryEntry extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"id", "kmsKeyVersionId", "vaultId", "timeActivated"}) public AutonomousDatabaseKeyHistoryEntry( String id, String kmsKeyVersionId, String vaultId, java.util.Date timeActivated) { super(); this.id = id; this.kmsKeyVersionId = kmsKeyVersionId; this.vaultId = vaultId; this.timeActivated = timeActivated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** * The id of the Autonomous Database * [Vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts) * service key management history entry. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** * The id of the Autonomous Database * [Vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts) * service key management history entry. * * @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 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; } /** * 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 date and time the kms key activated. */ @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") private java.util.Date timeActivated; /** * The date and time the kms key activated. * * @param timeActivated the value to set * @return this builder */ public Builder timeActivated(java.util.Date timeActivated) { this.timeActivated = timeActivated; this.__explicitlySet__.add("timeActivated"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AutonomousDatabaseKeyHistoryEntry build() { AutonomousDatabaseKeyHistoryEntry model = new AutonomousDatabaseKeyHistoryEntry( this.id, this.kmsKeyVersionId, this.vaultId, this.timeActivated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AutonomousDatabaseKeyHistoryEntry model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { this.kmsKeyVersionId(model.getKmsKeyVersionId()); } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } if (model.wasPropertyExplicitlySet("timeActivated")) { this.timeActivated(model.getTimeActivated()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** * The id of the Autonomous Database * [Vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts) * service key management history entry. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** * The id of the Autonomous Database * [Vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts) * service key management history entry. * * @return the value */ public String getId() { return id; } /** * 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; } /** * 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 date and time the kms key activated. */ @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") private final java.util.Date timeActivated; /** * The date and time the kms key activated. * * @return the value */ public java.util.Date getTimeActivated() { return timeActivated; } @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("AutonomousDatabaseKeyHistoryEntry("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", timeActivated=").append(String.valueOf(this.timeActivated)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AutonomousDatabaseKeyHistoryEntry)) { return false; } AutonomousDatabaseKeyHistoryEntry other = (AutonomousDatabaseKeyHistoryEntry) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.timeActivated, other.timeActivated) && 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.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.timeActivated == null ? 43 : this.timeActivated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy