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

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

Go to download

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

The 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;

/**
 * Configuration details for the Autonomous Database
 * [vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts)
 * key. 
* 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 = ConfigureAutonomousDatabaseVaultKeyDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class ConfigureAutonomousDatabaseVaultKeyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"kmsKeyId", "vaultId", "isUsingOracleManagedKeys"}) public ConfigureAutonomousDatabaseVaultKeyDetails( String kmsKeyId, String vaultId, Boolean isUsingOracleManagedKeys) { super(); this.kmsKeyId = kmsKeyId; this.vaultId = vaultId; this.isUsingOracleManagedKeys = isUsingOracleManagedKeys; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** * 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; } /** True if disable Customer Managed Keys and use Oracle Managed Keys. */ @com.fasterxml.jackson.annotation.JsonProperty("isUsingOracleManagedKeys") private Boolean isUsingOracleManagedKeys; /** * True if disable Customer Managed Keys and use Oracle Managed Keys. * * @param isUsingOracleManagedKeys the value to set * @return this builder */ public Builder isUsingOracleManagedKeys(Boolean isUsingOracleManagedKeys) { this.isUsingOracleManagedKeys = isUsingOracleManagedKeys; this.__explicitlySet__.add("isUsingOracleManagedKeys"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ConfigureAutonomousDatabaseVaultKeyDetails build() { ConfigureAutonomousDatabaseVaultKeyDetails model = new ConfigureAutonomousDatabaseVaultKeyDetails( this.kmsKeyId, this.vaultId, this.isUsingOracleManagedKeys); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(ConfigureAutonomousDatabaseVaultKeyDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } if (model.wasPropertyExplicitlySet("isUsingOracleManagedKeys")) { this.isUsingOracleManagedKeys(model.getIsUsingOracleManagedKeys()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(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 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; } /** True if disable Customer Managed Keys and use Oracle Managed Keys. */ @com.fasterxml.jackson.annotation.JsonProperty("isUsingOracleManagedKeys") private final Boolean isUsingOracleManagedKeys; /** * True if disable Customer Managed Keys and use Oracle Managed Keys. * * @return the value */ public Boolean getIsUsingOracleManagedKeys() { return isUsingOracleManagedKeys; } @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("ConfigureAutonomousDatabaseVaultKeyDetails("); sb.append("super=").append(super.toString()); sb.append("kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", isUsingOracleManagedKeys=") .append(String.valueOf(this.isUsingOracleManagedKeys)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ConfigureAutonomousDatabaseVaultKeyDetails)) { return false; } ConfigureAutonomousDatabaseVaultKeyDetails other = (ConfigureAutonomousDatabaseVaultKeyDetails) o; return java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals( this.isUsingOracleManagedKeys, other.isUsingOracleManagedKeys) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.isUsingOracleManagedKeys == null ? 43 : this.isUsingOracleManagedKeys.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy