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

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

Go to download

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

There is a newer version: 3.55.2
Show newest version
/**
 * Copyright (c) 2016, 2023, 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;

/**
 * Details of the new container database in which the converted pluggable database will be located.
 * 
* 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 = PdbConversionToNewDatabaseDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "target") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class PdbConversionToNewDatabaseDetails extends ConvertToPdbTargetBase { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** * The database name. The name must begin with an alphabetic character and can contain a * maximum of 8 alphanumeric characters. Special characters are not permitted. The database * name must be unique in the tenancy. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbName") private String cdbName; /** * The database name. The name must begin with an alphabetic character and can contain a * maximum of 8 alphanumeric characters. Special characters are not permitted. The database * name must be unique in the tenancy. * * @param cdbName the value to set * @return this builder */ public Builder cdbName(String cdbName) { this.cdbName = cdbName; this.__explicitlySet__.add("cdbName"); return this; } /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container * database after conversion. The password must be at least nine characters and contain at * least two uppercase, two lowercase, two numeric, and two special characters. The special * characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") private String cdbAdminPassword; /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container * database after conversion. The password must be at least nine characters and contain at * least two uppercase, two lowercase, two numeric, and two special characters. The special * characters must be _, \\#, or -. * * @param cdbAdminPassword the value to set * @return this builder */ public Builder cdbAdminPassword(String cdbAdminPassword) { this.cdbAdminPassword = cdbAdminPassword; this.__explicitlySet__.add("cdbAdminPassword"); return this; } /** * A strong password for plugbable database ADMIN user of the container database after * conversion. The password must be at least nine characters and contain at least two * uppercase, two lowercase, two numeric, and two special characters. The special characters * must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") private String pdbAdminPassword; /** * A strong password for plugbable database ADMIN user of the container database after * conversion. The password must be at least nine characters and contain at least two * uppercase, two lowercase, two numeric, and two special characters. The special characters * must be _, \\#, or -. * * @param pdbAdminPassword the value to set * @return this builder */ public Builder pdbAdminPassword(String pdbAdminPassword) { this.pdbAdminPassword = pdbAdminPassword; this.__explicitlySet__.add("pdbAdminPassword"); return this; } /** * The password to open the TDE wallet of the container database after conversion. The * password must be at least nine characters and contain at least two uppercase, two * lowercase, two numeric, and two special characters. The special characters must be _, * \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") private String cdbTdeWalletPassword; /** * The password to open the TDE wallet of the container database after conversion. The * password must be at least nine characters and contain at least two uppercase, two * lowercase, two numeric, and two special characters. The special characters must be _, * \\#, or -. * * @param cdbTdeWalletPassword the value to set * @return this builder */ public Builder cdbTdeWalletPassword(String cdbTdeWalletPassword) { this.cdbTdeWalletPassword = cdbTdeWalletPassword; this.__explicitlySet__.add("cdbTdeWalletPassword"); return this; } /** The existing TDE wallet password of the non-container database. */ @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") private String nonCdbTdeWalletPassword; /** * The existing TDE wallet password of the non-container database. * * @param nonCdbTdeWalletPassword the value to set * @return this builder */ public Builder nonCdbTdeWalletPassword(String nonCdbTdeWalletPassword) { this.nonCdbTdeWalletPassword = nonCdbTdeWalletPassword; this.__explicitlySet__.add("nonCdbTdeWalletPassword"); return this; } /** Additional container database parameters. Example: "_pdb_name_case_sensitive=true" */ @com.fasterxml.jackson.annotation.JsonProperty("additionalCdbParams") private String additionalCdbParams; /** * Additional container database parameters. Example: "_pdb_name_case_sensitive=true" * * @param additionalCdbParams the value to set * @return this builder */ public Builder additionalCdbParams(String additionalCdbParams) { this.additionalCdbParams = additionalCdbParams; this.__explicitlySet__.add("additionalCdbParams"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public PdbConversionToNewDatabaseDetails build() { PdbConversionToNewDatabaseDetails model = new PdbConversionToNewDatabaseDetails( this.cdbName, this.cdbAdminPassword, this.pdbAdminPassword, this.cdbTdeWalletPassword, this.nonCdbTdeWalletPassword, this.additionalCdbParams); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(PdbConversionToNewDatabaseDetails model) { if (model.wasPropertyExplicitlySet("cdbName")) { this.cdbName(model.getCdbName()); } if (model.wasPropertyExplicitlySet("cdbAdminPassword")) { this.cdbAdminPassword(model.getCdbAdminPassword()); } if (model.wasPropertyExplicitlySet("pdbAdminPassword")) { this.pdbAdminPassword(model.getPdbAdminPassword()); } if (model.wasPropertyExplicitlySet("cdbTdeWalletPassword")) { this.cdbTdeWalletPassword(model.getCdbTdeWalletPassword()); } if (model.wasPropertyExplicitlySet("nonCdbTdeWalletPassword")) { this.nonCdbTdeWalletPassword(model.getNonCdbTdeWalletPassword()); } if (model.wasPropertyExplicitlySet("additionalCdbParams")) { this.additionalCdbParams(model.getAdditionalCdbParams()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } @Deprecated public PdbConversionToNewDatabaseDetails( String cdbName, String cdbAdminPassword, String pdbAdminPassword, String cdbTdeWalletPassword, String nonCdbTdeWalletPassword, String additionalCdbParams) { super(); this.cdbName = cdbName; this.cdbAdminPassword = cdbAdminPassword; this.pdbAdminPassword = pdbAdminPassword; this.cdbTdeWalletPassword = cdbTdeWalletPassword; this.nonCdbTdeWalletPassword = nonCdbTdeWalletPassword; this.additionalCdbParams = additionalCdbParams; } /** * The database name. The name must begin with an alphabetic character and can contain a maximum * of 8 alphanumeric characters. Special characters are not permitted. The database name must be * unique in the tenancy. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbName") private final String cdbName; /** * The database name. The name must begin with an alphabetic character and can contain a maximum * of 8 alphanumeric characters. Special characters are not permitted. The database name must be * unique in the tenancy. * * @return the value */ public String getCdbName() { return cdbName; } /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container * database after conversion. The password must be at least nine characters and contain at least * two uppercase, two lowercase, two numeric, and two special characters. The special characters * must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") private final String cdbAdminPassword; /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container * database after conversion. The password must be at least nine characters and contain at least * two uppercase, two lowercase, two numeric, and two special characters. The special characters * must be _, \\#, or -. * * @return the value */ public String getCdbAdminPassword() { return cdbAdminPassword; } /** * A strong password for plugbable database ADMIN user of the container database after * conversion. The password must be at least nine characters and contain at least two uppercase, * two lowercase, two numeric, and two special characters. The special characters must be _, * \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") private final String pdbAdminPassword; /** * A strong password for plugbable database ADMIN user of the container database after * conversion. The password must be at least nine characters and contain at least two uppercase, * two lowercase, two numeric, and two special characters. The special characters must be _, * \\#, or -. * * @return the value */ public String getPdbAdminPassword() { return pdbAdminPassword; } /** * The password to open the TDE wallet of the container database after conversion. The password * must be at least nine characters and contain at least two uppercase, two lowercase, two * numeric, and two special characters. The special characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") private final String cdbTdeWalletPassword; /** * The password to open the TDE wallet of the container database after conversion. The password * must be at least nine characters and contain at least two uppercase, two lowercase, two * numeric, and two special characters. The special characters must be _, \\#, or -. * * @return the value */ public String getCdbTdeWalletPassword() { return cdbTdeWalletPassword; } /** The existing TDE wallet password of the non-container database. */ @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") private final String nonCdbTdeWalletPassword; /** * The existing TDE wallet password of the non-container database. * * @return the value */ public String getNonCdbTdeWalletPassword() { return nonCdbTdeWalletPassword; } /** Additional container database parameters. Example: "_pdb_name_case_sensitive=true" */ @com.fasterxml.jackson.annotation.JsonProperty("additionalCdbParams") private final String additionalCdbParams; /** * Additional container database parameters. Example: "_pdb_name_case_sensitive=true" * * @return the value */ public String getAdditionalCdbParams() { return additionalCdbParams; } @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("PdbConversionToNewDatabaseDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", cdbName=").append(String.valueOf(this.cdbName)); sb.append(", cdbAdminPassword=").append(""); sb.append(", pdbAdminPassword=").append(""); sb.append(", cdbTdeWalletPassword=").append(""); sb.append(", nonCdbTdeWalletPassword=").append(""); sb.append(", additionalCdbParams=").append(String.valueOf(this.additionalCdbParams)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof PdbConversionToNewDatabaseDetails)) { return false; } PdbConversionToNewDatabaseDetails other = (PdbConversionToNewDatabaseDetails) o; return java.util.Objects.equals(this.cdbName, other.cdbName) && java.util.Objects.equals(this.cdbAdminPassword, other.cdbAdminPassword) && java.util.Objects.equals(this.pdbAdminPassword, other.pdbAdminPassword) && java.util.Objects.equals(this.cdbTdeWalletPassword, other.cdbTdeWalletPassword) && java.util.Objects.equals( this.nonCdbTdeWalletPassword, other.nonCdbTdeWalletPassword) && java.util.Objects.equals(this.additionalCdbParams, other.additionalCdbParams) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.cdbName == null ? 43 : this.cdbName.hashCode()); result = (result * PRIME) + (this.cdbAdminPassword == null ? 43 : this.cdbAdminPassword.hashCode()); result = (result * PRIME) + (this.pdbAdminPassword == null ? 43 : this.pdbAdminPassword.hashCode()); result = (result * PRIME) + (this.cdbTdeWalletPassword == null ? 43 : this.cdbTdeWalletPassword.hashCode()); result = (result * PRIME) + (this.nonCdbTdeWalletPassword == null ? 43 : this.nonCdbTdeWalletPassword.hashCode()); result = (result * PRIME) + (this.additionalCdbParams == null ? 43 : this.additionalCdbParams.hashCode()); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy