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

com.oracle.bmc.database.model.ExadataDbSystemMigrationSummary 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.1
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;

/**
 * Information about the Exadata DB system migration. The migration is used to move the Exadata
 * Cloud Service instance from the DB system resource model to the new cloud Exadata infrastructure
 * resource model. 
* 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 = ExadataDbSystemMigrationSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class ExadataDbSystemMigrationSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "dbSystemId", "cloudVmClusterId", "cloudExadataInfrastructureId" }) public ExadataDbSystemMigrationSummary( String dbSystemId, String cloudVmClusterId, String cloudExadataInfrastructureId) { super(); this.dbSystemId = dbSystemId; this.cloudVmClusterId = cloudVmClusterId; this.cloudExadataInfrastructureId = cloudExadataInfrastructureId; } @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 * DB system. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") private String dbSystemId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * DB system. * * @param dbSystemId the value to set * @return this builder */ public Builder dbSystemId(String dbSystemId) { this.dbSystemId = dbSystemId; this.__explicitlySet__.add("dbSystemId"); return this; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud VM cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("cloudVmClusterId") private String cloudVmClusterId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud VM cluster. * * @param cloudVmClusterId the value to set * @return this builder */ public Builder cloudVmClusterId(String cloudVmClusterId) { this.cloudVmClusterId = cloudVmClusterId; this.__explicitlySet__.add("cloudVmClusterId"); return this; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud Exadata infrastructure. */ @com.fasterxml.jackson.annotation.JsonProperty("cloudExadataInfrastructureId") private String cloudExadataInfrastructureId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud Exadata infrastructure. * * @param cloudExadataInfrastructureId the value to set * @return this builder */ public Builder cloudExadataInfrastructureId(String cloudExadataInfrastructureId) { this.cloudExadataInfrastructureId = cloudExadataInfrastructureId; this.__explicitlySet__.add("cloudExadataInfrastructureId"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ExadataDbSystemMigrationSummary build() { ExadataDbSystemMigrationSummary model = new ExadataDbSystemMigrationSummary( this.dbSystemId, this.cloudVmClusterId, this.cloudExadataInfrastructureId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(ExadataDbSystemMigrationSummary model) { if (model.wasPropertyExplicitlySet("dbSystemId")) { this.dbSystemId(model.getDbSystemId()); } if (model.wasPropertyExplicitlySet("cloudVmClusterId")) { this.cloudVmClusterId(model.getCloudVmClusterId()); } if (model.wasPropertyExplicitlySet("cloudExadataInfrastructureId")) { this.cloudExadataInfrastructureId(model.getCloudExadataInfrastructureId()); } 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 DB * system. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") private final String dbSystemId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB * system. * * @return the value */ public String getDbSystemId() { return dbSystemId; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud VM cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("cloudVmClusterId") private final String cloudVmClusterId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud VM cluster. * * @return the value */ public String getCloudVmClusterId() { return cloudVmClusterId; } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud Exadata infrastructure. */ @com.fasterxml.jackson.annotation.JsonProperty("cloudExadataInfrastructureId") private final String cloudExadataInfrastructureId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cloud Exadata infrastructure. * * @return the value */ public String getCloudExadataInfrastructureId() { return cloudExadataInfrastructureId; } @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("ExadataDbSystemMigrationSummary("); sb.append("super=").append(super.toString()); sb.append("dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(", cloudVmClusterId=").append(String.valueOf(this.cloudVmClusterId)); sb.append(", cloudExadataInfrastructureId=") .append(String.valueOf(this.cloudExadataInfrastructureId)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ExadataDbSystemMigrationSummary)) { return false; } ExadataDbSystemMigrationSummary other = (ExadataDbSystemMigrationSummary) o; return java.util.Objects.equals(this.dbSystemId, other.dbSystemId) && java.util.Objects.equals(this.cloudVmClusterId, other.cloudVmClusterId) && java.util.Objects.equals( this.cloudExadataInfrastructureId, other.cloudExadataInfrastructureId) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); result = (result * PRIME) + (this.cloudVmClusterId == null ? 43 : this.cloudVmClusterId.hashCode()); result = (result * PRIME) + (this.cloudExadataInfrastructureId == null ? 43 : this.cloudExadataInfrastructureId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy