com.oracle.bmc.database.model.AutonomousDataWarehouseSummary Maven / Gradle / Ivy
Show all versions of oci-java-sdk-database Show documentation
/**
* 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;
/**
* **Deprecated.** See {@link #autonomousDatabase(AutonomousDatabaseRequest) autonomousDatabase} for
* reference information about Autonomous Databases with the warehouse workload type.
*
* *Warning:** Oracle recommends that you avoid using any confidential information when you
* supply string values using the API.
* 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 = AutonomousDataWarehouseSummary.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public final class AutonomousDataWarehouseSummary
extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"id",
"compartmentId",
"lifecycleState",
"lifecycleDetails",
"dbName",
"cpuCoreCount",
"dataStorageSizeInTBs",
"timeCreated",
"displayName",
"serviceConsoleUrl",
"connectionStrings",
"licenseModel",
"freeformTags",
"definedTags",
"dbVersion"
})
public AutonomousDataWarehouseSummary(
String id,
String compartmentId,
LifecycleState lifecycleState,
String lifecycleDetails,
String dbName,
Integer cpuCoreCount,
Integer dataStorageSizeInTBs,
java.util.Date timeCreated,
String displayName,
String serviceConsoleUrl,
AutonomousDataWarehouseConnectionStrings connectionStrings,
LicenseModel licenseModel,
java.util.Map freeformTags,
java.util.Map> definedTags,
String dbVersion) {
super();
this.id = id;
this.compartmentId = compartmentId;
this.lifecycleState = lifecycleState;
this.lifecycleDetails = lifecycleDetails;
this.dbName = dbName;
this.cpuCoreCount = cpuCoreCount;
this.dataStorageSizeInTBs = dataStorageSizeInTBs;
this.timeCreated = timeCreated;
this.displayName = displayName;
this.serviceConsoleUrl = serviceConsoleUrl;
this.connectionStrings = connectionStrings;
this.licenseModel = licenseModel;
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.dbVersion = dbVersion;
}
@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 Data Warehouse.
*/
@com.fasterxml.jackson.annotation.JsonProperty("id")
private String id;
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* Autonomous Data Warehouse.
*
* @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 current state of the database. */
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
private LifecycleState lifecycleState;
/**
* The current state of the database.
*
* @param lifecycleState the value to set
* @return this builder
*/
public Builder lifecycleState(LifecycleState lifecycleState) {
this.lifecycleState = lifecycleState;
this.__explicitlySet__.add("lifecycleState");
return this;
}
/** Information about the current lifecycle state. */
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
private String lifecycleDetails;
/**
* 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 database name. */
@com.fasterxml.jackson.annotation.JsonProperty("dbName")
private String dbName;
/**
* The database name.
*
* @param dbName the value to set
* @return this builder
*/
public Builder dbName(String dbName) {
this.dbName = dbName;
this.__explicitlySet__.add("dbName");
return this;
}
/** The number of CPU cores to be made available to the database. */
@com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
private Integer cpuCoreCount;
/**
* The number of CPU cores to be made available to the database.
*
* @param cpuCoreCount the value to set
* @return this builder
*/
public Builder cpuCoreCount(Integer cpuCoreCount) {
this.cpuCoreCount = cpuCoreCount;
this.__explicitlySet__.add("cpuCoreCount");
return this;
}
/** The quantity of data in the database, in terabytes. */
@com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
private Integer dataStorageSizeInTBs;
/**
* The quantity of data in the database, in terabytes.
*
* @param dataStorageSizeInTBs the value to set
* @return this builder
*/
public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) {
this.dataStorageSizeInTBs = dataStorageSizeInTBs;
this.__explicitlySet__.add("dataStorageSizeInTBs");
return this;
}
/** The date and time the database was created. */
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private java.util.Date timeCreated;
/**
* The date and time the database was created.
*
* @param timeCreated the value to set
* @return this builder
*/
public Builder timeCreated(java.util.Date timeCreated) {
this.timeCreated = timeCreated;
this.__explicitlySet__.add("timeCreated");
return this;
}
/**
* The user-friendly name for the Autonomous Data Warehouse. The name does not have to be
* unique.
*/
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
/**
* The user-friendly name for the Autonomous Data Warehouse. 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 URL of the Service Console for the Data Warehouse. */
@com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
private String serviceConsoleUrl;
/**
* The URL of the Service Console for the Data Warehouse.
*
* @param serviceConsoleUrl the value to set
* @return this builder
*/
public Builder serviceConsoleUrl(String serviceConsoleUrl) {
this.serviceConsoleUrl = serviceConsoleUrl;
this.__explicitlySet__.add("serviceConsoleUrl");
return this;
}
/**
* The connection string used to connect to the Data Warehouse. The username for the Service
* Console is ADMIN. Use the password you entered when creating the Autonomous Data
* Warehouse for the password value.
*/
@com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
private AutonomousDataWarehouseConnectionStrings connectionStrings;
/**
* The connection string used to connect to the Data Warehouse. The username for the Service
* Console is ADMIN. Use the password you entered when creating the Autonomous Data
* Warehouse for the password value.
*
* @param connectionStrings the value to set
* @return this builder
*/
public Builder connectionStrings(
AutonomousDataWarehouseConnectionStrings connectionStrings) {
this.connectionStrings = connectionStrings;
this.__explicitlySet__.add("connectionStrings");
return this;
}
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The
* default is BRING_YOUR_OWN_LICENSE.
*/
@com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
private LicenseModel licenseModel;
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The
* default is BRING_YOUR_OWN_LICENSE.
*
* @param licenseModel the value to set
* @return this builder
*/
public Builder licenseModel(LicenseModel licenseModel) {
this.licenseModel = licenseModel;
this.__explicitlySet__.add("licenseModel");
return this;
}
/**
* Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
* name, type, or namespace. For more information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*
* Example: {@code {"Department": "Finance"}}
*/
@com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
private java.util.Map freeformTags;
/**
* Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
* name, type, or namespace. For more information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*
* Example: {@code {"Department": "Finance"}}
*
* @param freeformTags the value to set
* @return this builder
*/
public Builder freeformTags(java.util.Map freeformTags) {
this.freeformTags = freeformTags;
this.__explicitlySet__.add("freeformTags");
return this;
}
/**
* Defined tags for this resource. Each key is predefined and scoped to a namespace. For
* more information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*/
@com.fasterxml.jackson.annotation.JsonProperty("definedTags")
private java.util.Map> definedTags;
/**
* Defined tags for this resource. Each key is predefined and scoped to a namespace. For
* more information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*
* @param definedTags the value to set
* @return this builder
*/
public Builder definedTags(
java.util.Map> definedTags) {
this.definedTags = definedTags;
this.__explicitlySet__.add("definedTags");
return this;
}
/** A valid Oracle Database version for Autonomous Data Warehouse. */
@com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
private String dbVersion;
/**
* A valid Oracle Database version for Autonomous Data Warehouse.
*
* @param dbVersion the value to set
* @return this builder
*/
public Builder dbVersion(String dbVersion) {
this.dbVersion = dbVersion;
this.__explicitlySet__.add("dbVersion");
return this;
}
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public AutonomousDataWarehouseSummary build() {
AutonomousDataWarehouseSummary model =
new AutonomousDataWarehouseSummary(
this.id,
this.compartmentId,
this.lifecycleState,
this.lifecycleDetails,
this.dbName,
this.cpuCoreCount,
this.dataStorageSizeInTBs,
this.timeCreated,
this.displayName,
this.serviceConsoleUrl,
this.connectionStrings,
this.licenseModel,
this.freeformTags,
this.definedTags,
this.dbVersion);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
return model;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDataWarehouseSummary model) {
if (model.wasPropertyExplicitlySet("id")) {
this.id(model.getId());
}
if (model.wasPropertyExplicitlySet("compartmentId")) {
this.compartmentId(model.getCompartmentId());
}
if (model.wasPropertyExplicitlySet("lifecycleState")) {
this.lifecycleState(model.getLifecycleState());
}
if (model.wasPropertyExplicitlySet("lifecycleDetails")) {
this.lifecycleDetails(model.getLifecycleDetails());
}
if (model.wasPropertyExplicitlySet("dbName")) {
this.dbName(model.getDbName());
}
if (model.wasPropertyExplicitlySet("cpuCoreCount")) {
this.cpuCoreCount(model.getCpuCoreCount());
}
if (model.wasPropertyExplicitlySet("dataStorageSizeInTBs")) {
this.dataStorageSizeInTBs(model.getDataStorageSizeInTBs());
}
if (model.wasPropertyExplicitlySet("timeCreated")) {
this.timeCreated(model.getTimeCreated());
}
if (model.wasPropertyExplicitlySet("displayName")) {
this.displayName(model.getDisplayName());
}
if (model.wasPropertyExplicitlySet("serviceConsoleUrl")) {
this.serviceConsoleUrl(model.getServiceConsoleUrl());
}
if (model.wasPropertyExplicitlySet("connectionStrings")) {
this.connectionStrings(model.getConnectionStrings());
}
if (model.wasPropertyExplicitlySet("licenseModel")) {
this.licenseModel(model.getLicenseModel());
}
if (model.wasPropertyExplicitlySet("freeformTags")) {
this.freeformTags(model.getFreeformTags());
}
if (model.wasPropertyExplicitlySet("definedTags")) {
this.definedTags(model.getDefinedTags());
}
if (model.wasPropertyExplicitlySet("dbVersion")) {
this.dbVersion(model.getDbVersion());
}
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 Data Warehouse.
*/
@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 Data Warehouse.
*
* @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 current state of the database. */
public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum {
Provisioning("PROVISIONING"),
Available("AVAILABLE"),
Stopping("STOPPING"),
Stopped("STOPPED"),
Starting("STARTING"),
Terminating("TERMINATING"),
Terminated("TERMINATED"),
Unavailable("UNAVAILABLE"),
RestoreInProgress("RESTORE_IN_PROGRESS"),
BackupInProgress("BACKUP_IN_PROGRESS"),
ScaleInProgress("SCALE_IN_PROGRESS"),
AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
Updating("UPDATING"),
;
private final String value;
private static java.util.Map map;
static {
map = new java.util.HashMap<>();
for (LifecycleState v : LifecycleState.values()) {
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);
}
throw new IllegalArgumentException("Invalid LifecycleState: " + key);
}
};
/** The current state of the database. */
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
private final LifecycleState lifecycleState;
/**
* The current state of the database.
*
* @return the value
*/
public LifecycleState getLifecycleState() {
return lifecycleState;
}
/** Information about the current lifecycle state. */
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
private final String lifecycleDetails;
/**
* Information about the current lifecycle state.
*
* @return the value
*/
public String getLifecycleDetails() {
return lifecycleDetails;
}
/** The database name. */
@com.fasterxml.jackson.annotation.JsonProperty("dbName")
private final String dbName;
/**
* The database name.
*
* @return the value
*/
public String getDbName() {
return dbName;
}
/** The number of CPU cores to be made available to the database. */
@com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
private final Integer cpuCoreCount;
/**
* The number of CPU cores to be made available to the database.
*
* @return the value
*/
public Integer getCpuCoreCount() {
return cpuCoreCount;
}
/** The quantity of data in the database, in terabytes. */
@com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
private final Integer dataStorageSizeInTBs;
/**
* The quantity of data in the database, in terabytes.
*
* @return the value
*/
public Integer getDataStorageSizeInTBs() {
return dataStorageSizeInTBs;
}
/** The date and time the database was created. */
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private final java.util.Date timeCreated;
/**
* The date and time the database was created.
*
* @return the value
*/
public java.util.Date getTimeCreated() {
return timeCreated;
}
/**
* The user-friendly name for the Autonomous Data Warehouse. The name does not have to be
* unique.
*/
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private final String displayName;
/**
* The user-friendly name for the Autonomous Data Warehouse. The name does not have to be
* unique.
*
* @return the value
*/
public String getDisplayName() {
return displayName;
}
/** The URL of the Service Console for the Data Warehouse. */
@com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
private final String serviceConsoleUrl;
/**
* The URL of the Service Console for the Data Warehouse.
*
* @return the value
*/
public String getServiceConsoleUrl() {
return serviceConsoleUrl;
}
/**
* The connection string used to connect to the Data Warehouse. The username for the Service
* Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse
* for the password value.
*/
@com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
private final AutonomousDataWarehouseConnectionStrings connectionStrings;
/**
* The connection string used to connect to the Data Warehouse. The username for the Service
* Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse
* for the password value.
*
* @return the value
*/
public AutonomousDataWarehouseConnectionStrings getConnectionStrings() {
return connectionStrings;
}
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is
* BRING_YOUR_OWN_LICENSE.
*/
public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum {
LicenseIncluded("LICENSE_INCLUDED"),
BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"),
;
private final String value;
private static java.util.Map map;
static {
map = new java.util.HashMap<>();
for (LicenseModel v : LicenseModel.values()) {
map.put(v.getValue(), v);
}
}
LicenseModel(String value) {
this.value = value;
}
@com.fasterxml.jackson.annotation.JsonValue
public String getValue() {
return value;
}
@com.fasterxml.jackson.annotation.JsonCreator
public static LicenseModel create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
throw new IllegalArgumentException("Invalid LicenseModel: " + key);
}
};
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is
* BRING_YOUR_OWN_LICENSE.
*/
@com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
private final LicenseModel licenseModel;
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is
* BRING_YOUR_OWN_LICENSE.
*
* @return the value
*/
public LicenseModel getLicenseModel() {
return licenseModel;
}
/**
* Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
* name, type, or namespace. For more information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*
* Example: {@code {"Department": "Finance"}}
*/
@com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
private final java.util.Map freeformTags;
/**
* Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
* name, type, or namespace. For more information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*
* Example: {@code {"Department": "Finance"}}
*
* @return the value
*/
public java.util.Map getFreeformTags() {
return freeformTags;
}
/**
* Defined tags for this resource. Each key is predefined and scoped to a namespace. For more
* information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*/
@com.fasterxml.jackson.annotation.JsonProperty("definedTags")
private final java.util.Map> definedTags;
/**
* Defined tags for this resource. Each key is predefined and scoped to a namespace. For more
* information, see [Resource
* Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
*
* @return the value
*/
public java.util.Map> getDefinedTags() {
return definedTags;
}
/** A valid Oracle Database version for Autonomous Data Warehouse. */
@com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
private final String dbVersion;
/**
* A valid Oracle Database version for Autonomous Data Warehouse.
*
* @return the value
*/
public String getDbVersion() {
return dbVersion;
}
@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("AutonomousDataWarehouseSummary(");
sb.append("super=").append(super.toString());
sb.append("id=").append(String.valueOf(this.id));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState));
sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails));
sb.append(", dbName=").append(String.valueOf(this.dbName));
sb.append(", cpuCoreCount=").append(String.valueOf(this.cpuCoreCount));
sb.append(", dataStorageSizeInTBs=").append(String.valueOf(this.dataStorageSizeInTBs));
sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
sb.append(", displayName=").append(String.valueOf(this.displayName));
sb.append(", serviceConsoleUrl=").append(String.valueOf(this.serviceConsoleUrl));
sb.append(", connectionStrings=").append(String.valueOf(this.connectionStrings));
sb.append(", licenseModel=").append(String.valueOf(this.licenseModel));
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(", dbVersion=").append(String.valueOf(this.dbVersion));
sb.append(")");
return sb.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof AutonomousDataWarehouseSummary)) {
return false;
}
AutonomousDataWarehouseSummary other = (AutonomousDataWarehouseSummary) o;
return java.util.Objects.equals(this.id, other.id)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.lifecycleState, other.lifecycleState)
&& java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails)
&& java.util.Objects.equals(this.dbName, other.dbName)
&& java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount)
&& java.util.Objects.equals(this.dataStorageSizeInTBs, other.dataStorageSizeInTBs)
&& java.util.Objects.equals(this.timeCreated, other.timeCreated)
&& java.util.Objects.equals(this.displayName, other.displayName)
&& java.util.Objects.equals(this.serviceConsoleUrl, other.serviceConsoleUrl)
&& java.util.Objects.equals(this.connectionStrings, other.connectionStrings)
&& java.util.Objects.equals(this.licenseModel, other.licenseModel)
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& java.util.Objects.equals(this.dbVersion, other.dbVersion)
&& 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.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
result =
(result * PRIME)
+ (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode());
result = (result * PRIME) + (this.dbName == null ? 43 : this.dbName.hashCode());
result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode());
result =
(result * PRIME)
+ (this.dataStorageSizeInTBs == null
? 43
: this.dataStorageSizeInTBs.hashCode());
result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode());
result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
result =
(result * PRIME)
+ (this.serviceConsoleUrl == null ? 43 : this.serviceConsoleUrl.hashCode());
result =
(result * PRIME)
+ (this.connectionStrings == null ? 43 : this.connectionStrings.hashCode());
result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode());
result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode());
result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
}