com.oracle.bmc.globallydistributeddatabase.model.DedicatedShardDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oci-java-sdk-globallydistributeddatabase Show documentation
Show all versions of oci-java-sdk-globallydistributeddatabase Show documentation
This project contains the SDK used for Oracle Cloud Infrastructure Globally Distributed Database
/**
* 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.globallydistributeddatabase.model;
/**
* Details of ATP-D based shard.
* 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: 20230301")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = DedicatedShardDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public final class DedicatedShardDetails
extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"encryptionKeyDetails",
"name",
"computeCount",
"dataStorageSizeInGbs",
"shardGroup",
"timeCreated",
"timeUpdated",
"timeSslCertificateExpires",
"status",
"shardSpace",
"supportingResourceId",
"containerDatabaseId",
"containerDatabaseParentId",
"isAutoScalingEnabled",
"cloudAutonomousVmClusterId",
"peerCloudAutonomousVmClusterId",
"metadata"
})
public DedicatedShardDetails(
DedicatedShardOrCatalogEncryptionKeyDetails encryptionKeyDetails,
String name,
Float computeCount,
Double dataStorageSizeInGbs,
String shardGroup,
java.util.Date timeCreated,
java.util.Date timeUpdated,
java.util.Date timeSslCertificateExpires,
Status status,
String shardSpace,
String supportingResourceId,
String containerDatabaseId,
String containerDatabaseParentId,
Boolean isAutoScalingEnabled,
String cloudAutonomousVmClusterId,
String peerCloudAutonomousVmClusterId,
java.util.Map metadata) {
super();
this.encryptionKeyDetails = encryptionKeyDetails;
this.name = name;
this.computeCount = computeCount;
this.dataStorageSizeInGbs = dataStorageSizeInGbs;
this.shardGroup = shardGroup;
this.timeCreated = timeCreated;
this.timeUpdated = timeUpdated;
this.timeSslCertificateExpires = timeSslCertificateExpires;
this.status = status;
this.shardSpace = shardSpace;
this.supportingResourceId = supportingResourceId;
this.containerDatabaseId = containerDatabaseId;
this.containerDatabaseParentId = containerDatabaseParentId;
this.isAutoScalingEnabled = isAutoScalingEnabled;
this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId;
this.peerCloudAutonomousVmClusterId = peerCloudAutonomousVmClusterId;
this.metadata = metadata;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
@com.fasterxml.jackson.annotation.JsonProperty("encryptionKeyDetails")
private DedicatedShardOrCatalogEncryptionKeyDetails encryptionKeyDetails;
public Builder encryptionKeyDetails(
DedicatedShardOrCatalogEncryptionKeyDetails encryptionKeyDetails) {
this.encryptionKeyDetails = encryptionKeyDetails;
this.__explicitlySet__.add("encryptionKeyDetails");
return this;
}
/** Name of the shard. */
@com.fasterxml.jackson.annotation.JsonProperty("name")
private String name;
/**
* Name of the shard.
*
* @param name the value to set
* @return this builder
*/
public Builder name(String name) {
this.name = name;
this.__explicitlySet__.add("name");
return this;
}
/**
* The compute amount available to the underlying autonomous database associated with shard.
*/
@com.fasterxml.jackson.annotation.JsonProperty("computeCount")
private Float computeCount;
/**
* The compute amount available to the underlying autonomous database associated with shard.
*
* @param computeCount the value to set
* @return this builder
*/
public Builder computeCount(Float computeCount) {
this.computeCount = computeCount;
this.__explicitlySet__.add("computeCount");
return this;
}
/** The data disk group size to be allocated in GBs. */
@com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs")
private Double dataStorageSizeInGbs;
/**
* The data disk group size to be allocated in GBs.
*
* @param dataStorageSizeInGbs the value to set
* @return this builder
*/
public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) {
this.dataStorageSizeInGbs = dataStorageSizeInGbs;
this.__explicitlySet__.add("dataStorageSizeInGbs");
return this;
}
/** Name of the shard-group to which the shard belongs. */
@com.fasterxml.jackson.annotation.JsonProperty("shardGroup")
private String shardGroup;
/**
* Name of the shard-group to which the shard belongs.
*
* @param shardGroup the value to set
* @return this builder
*/
public Builder shardGroup(String shardGroup) {
this.shardGroup = shardGroup;
this.__explicitlySet__.add("shardGroup");
return this;
}
/** The time the the shard was created. An RFC3339 formatted datetime string */
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private java.util.Date timeCreated;
/**
* The time the the shard was created. An RFC3339 formatted datetime string
*
* @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 time the shard was last updated. An RFC3339 formatted datetime string */
@com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
private java.util.Date timeUpdated;
/**
* The time the shard was last updated. An RFC3339 formatted datetime string
*
* @param timeUpdated the value to set
* @return this builder
*/
public Builder timeUpdated(java.util.Date timeUpdated) {
this.timeUpdated = timeUpdated;
this.__explicitlySet__.add("timeUpdated");
return this;
}
/**
* The time the ssl certificate associated with shard expires. An RFC3339 formatted datetime
* string
*/
@com.fasterxml.jackson.annotation.JsonProperty("timeSslCertificateExpires")
private java.util.Date timeSslCertificateExpires;
/**
* The time the ssl certificate associated with shard expires. An RFC3339 formatted datetime
* string
*
* @param timeSslCertificateExpires the value to set
* @return this builder
*/
public Builder timeSslCertificateExpires(java.util.Date timeSslCertificateExpires) {
this.timeSslCertificateExpires = timeSslCertificateExpires;
this.__explicitlySet__.add("timeSslCertificateExpires");
return this;
}
/** Status of shard or catalog or gsm for the sharded database. */
@com.fasterxml.jackson.annotation.JsonProperty("status")
private Status status;
/**
* Status of shard or catalog or gsm for the sharded database.
*
* @param status the value to set
* @return this builder
*/
public Builder status(Status status) {
this.status = status;
this.__explicitlySet__.add("status");
return this;
}
/** Shard space name. */
@com.fasterxml.jackson.annotation.JsonProperty("shardSpace")
private String shardSpace;
/**
* Shard space name.
*
* @param shardSpace the value to set
* @return this builder
*/
public Builder shardSpace(String shardSpace) {
this.shardSpace = shardSpace;
this.__explicitlySet__.add("shardSpace");
return this;
}
/** Identifier of the underlying supporting resource. */
@com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId")
private String supportingResourceId;
/**
* Identifier of the underlying supporting resource.
*
* @param supportingResourceId the value to set
* @return this builder
*/
public Builder supportingResourceId(String supportingResourceId) {
this.supportingResourceId = supportingResourceId;
this.__explicitlySet__.add("supportingResourceId");
return this;
}
/** Identifier of the underlying container database. */
@com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId")
private String containerDatabaseId;
/**
* Identifier of the underlying container database.
*
* @param containerDatabaseId the value to set
* @return this builder
*/
public Builder containerDatabaseId(String containerDatabaseId) {
this.containerDatabaseId = containerDatabaseId;
this.__explicitlySet__.add("containerDatabaseId");
return this;
}
/** Identifier of the underlying container database parent. */
@com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseParentId")
private String containerDatabaseParentId;
/**
* Identifier of the underlying container database parent.
*
* @param containerDatabaseParentId the value to set
* @return this builder
*/
public Builder containerDatabaseParentId(String containerDatabaseParentId) {
this.containerDatabaseParentId = containerDatabaseParentId;
this.__explicitlySet__.add("containerDatabaseParentId");
return this;
}
/** Determines the auto-scaling mode. */
@com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled")
private Boolean isAutoScalingEnabled;
/**
* Determines the auto-scaling mode.
*
* @param isAutoScalingEnabled the value to set
* @return this builder
*/
public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) {
this.isAutoScalingEnabled = isAutoScalingEnabled;
this.__explicitlySet__.add("isAutoScalingEnabled");
return this;
}
/** Identifier of the primary cloudAutonomousVmCluster for the shard. */
@com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId")
private String cloudAutonomousVmClusterId;
/**
* Identifier of the primary cloudAutonomousVmCluster for the shard.
*
* @param cloudAutonomousVmClusterId the value to set
* @return this builder
*/
public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) {
this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId;
this.__explicitlySet__.add("cloudAutonomousVmClusterId");
return this;
}
/** Identifier of the peer cloudAutonomousVmCluster for the shard. */
@com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterId")
private String peerCloudAutonomousVmClusterId;
/**
* Identifier of the peer cloudAutonomousVmCluster for the shard.
*
* @param peerCloudAutonomousVmClusterId the value to set
* @return this builder
*/
public Builder peerCloudAutonomousVmClusterId(String peerCloudAutonomousVmClusterId) {
this.peerCloudAutonomousVmClusterId = peerCloudAutonomousVmClusterId;
this.__explicitlySet__.add("peerCloudAutonomousVmClusterId");
return this;
}
/** Additional metadata related to shard's underlying supporting resource. */
@com.fasterxml.jackson.annotation.JsonProperty("metadata")
private java.util.Map metadata;
/**
* Additional metadata related to shard's underlying supporting resource.
*
* @param metadata the value to set
* @return this builder
*/
public Builder metadata(java.util.Map metadata) {
this.metadata = metadata;
this.__explicitlySet__.add("metadata");
return this;
}
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public DedicatedShardDetails build() {
DedicatedShardDetails model =
new DedicatedShardDetails(
this.encryptionKeyDetails,
this.name,
this.computeCount,
this.dataStorageSizeInGbs,
this.shardGroup,
this.timeCreated,
this.timeUpdated,
this.timeSslCertificateExpires,
this.status,
this.shardSpace,
this.supportingResourceId,
this.containerDatabaseId,
this.containerDatabaseParentId,
this.isAutoScalingEnabled,
this.cloudAutonomousVmClusterId,
this.peerCloudAutonomousVmClusterId,
this.metadata);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
return model;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(DedicatedShardDetails model) {
if (model.wasPropertyExplicitlySet("encryptionKeyDetails")) {
this.encryptionKeyDetails(model.getEncryptionKeyDetails());
}
if (model.wasPropertyExplicitlySet("name")) {
this.name(model.getName());
}
if (model.wasPropertyExplicitlySet("computeCount")) {
this.computeCount(model.getComputeCount());
}
if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) {
this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs());
}
if (model.wasPropertyExplicitlySet("shardGroup")) {
this.shardGroup(model.getShardGroup());
}
if (model.wasPropertyExplicitlySet("timeCreated")) {
this.timeCreated(model.getTimeCreated());
}
if (model.wasPropertyExplicitlySet("timeUpdated")) {
this.timeUpdated(model.getTimeUpdated());
}
if (model.wasPropertyExplicitlySet("timeSslCertificateExpires")) {
this.timeSslCertificateExpires(model.getTimeSslCertificateExpires());
}
if (model.wasPropertyExplicitlySet("status")) {
this.status(model.getStatus());
}
if (model.wasPropertyExplicitlySet("shardSpace")) {
this.shardSpace(model.getShardSpace());
}
if (model.wasPropertyExplicitlySet("supportingResourceId")) {
this.supportingResourceId(model.getSupportingResourceId());
}
if (model.wasPropertyExplicitlySet("containerDatabaseId")) {
this.containerDatabaseId(model.getContainerDatabaseId());
}
if (model.wasPropertyExplicitlySet("containerDatabaseParentId")) {
this.containerDatabaseParentId(model.getContainerDatabaseParentId());
}
if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) {
this.isAutoScalingEnabled(model.getIsAutoScalingEnabled());
}
if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) {
this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId());
}
if (model.wasPropertyExplicitlySet("peerCloudAutonomousVmClusterId")) {
this.peerCloudAutonomousVmClusterId(model.getPeerCloudAutonomousVmClusterId());
}
if (model.wasPropertyExplicitlySet("metadata")) {
this.metadata(model.getMetadata());
}
return this;
}
}
/** Create a new builder. */
public static Builder builder() {
return new Builder();
}
public Builder toBuilder() {
return new Builder().copy(this);
}
@com.fasterxml.jackson.annotation.JsonProperty("encryptionKeyDetails")
private final DedicatedShardOrCatalogEncryptionKeyDetails encryptionKeyDetails;
public DedicatedShardOrCatalogEncryptionKeyDetails getEncryptionKeyDetails() {
return encryptionKeyDetails;
}
/** Name of the shard. */
@com.fasterxml.jackson.annotation.JsonProperty("name")
private final String name;
/**
* Name of the shard.
*
* @return the value
*/
public String getName() {
return name;
}
/** The compute amount available to the underlying autonomous database associated with shard. */
@com.fasterxml.jackson.annotation.JsonProperty("computeCount")
private final Float computeCount;
/**
* The compute amount available to the underlying autonomous database associated with shard.
*
* @return the value
*/
public Float getComputeCount() {
return computeCount;
}
/** The data disk group size to be allocated in GBs. */
@com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs")
private final Double dataStorageSizeInGbs;
/**
* The data disk group size to be allocated in GBs.
*
* @return the value
*/
public Double getDataStorageSizeInGbs() {
return dataStorageSizeInGbs;
}
/** Name of the shard-group to which the shard belongs. */
@com.fasterxml.jackson.annotation.JsonProperty("shardGroup")
private final String shardGroup;
/**
* Name of the shard-group to which the shard belongs.
*
* @return the value
*/
public String getShardGroup() {
return shardGroup;
}
/** The time the the shard was created. An RFC3339 formatted datetime string */
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private final java.util.Date timeCreated;
/**
* The time the the shard was created. An RFC3339 formatted datetime string
*
* @return the value
*/
public java.util.Date getTimeCreated() {
return timeCreated;
}
/** The time the shard was last updated. An RFC3339 formatted datetime string */
@com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
private final java.util.Date timeUpdated;
/**
* The time the shard was last updated. An RFC3339 formatted datetime string
*
* @return the value
*/
public java.util.Date getTimeUpdated() {
return timeUpdated;
}
/**
* The time the ssl certificate associated with shard expires. An RFC3339 formatted datetime
* string
*/
@com.fasterxml.jackson.annotation.JsonProperty("timeSslCertificateExpires")
private final java.util.Date timeSslCertificateExpires;
/**
* The time the ssl certificate associated with shard expires. An RFC3339 formatted datetime
* string
*
* @return the value
*/
public java.util.Date getTimeSslCertificateExpires() {
return timeSslCertificateExpires;
}
/** Status of shard or catalog or gsm for the sharded database. */
public enum Status implements com.oracle.bmc.http.internal.BmcEnum {
Failed("FAILED"),
Deleting("DELETING"),
Deleted("DELETED"),
Updating("UPDATING"),
Creating("CREATING"),
Created("CREATED"),
ReadyForConfiguration("READY_FOR_CONFIGURATION"),
Configured("CONFIGURED"),
NeedsAttention("NEEDS_ATTENTION"),
/**
* This value is used if a service returns a value for this enum that is not recognized by
* this version of the SDK.
*/
UnknownEnumValue(null);
private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class);
private final String value;
private static java.util.Map map;
static {
map = new java.util.HashMap<>();
for (Status v : Status.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
Status(String value) {
this.value = value;
}
@com.fasterxml.jackson.annotation.JsonValue
public String getValue() {
return value;
}
@com.fasterxml.jackson.annotation.JsonCreator
public static Status create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
"Received unknown value '{}' for enum 'Status', returning UnknownEnumValue",
key);
return UnknownEnumValue;
}
};
/** Status of shard or catalog or gsm for the sharded database. */
@com.fasterxml.jackson.annotation.JsonProperty("status")
private final Status status;
/**
* Status of shard or catalog or gsm for the sharded database.
*
* @return the value
*/
public Status getStatus() {
return status;
}
/** Shard space name. */
@com.fasterxml.jackson.annotation.JsonProperty("shardSpace")
private final String shardSpace;
/**
* Shard space name.
*
* @return the value
*/
public String getShardSpace() {
return shardSpace;
}
/** Identifier of the underlying supporting resource. */
@com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId")
private final String supportingResourceId;
/**
* Identifier of the underlying supporting resource.
*
* @return the value
*/
public String getSupportingResourceId() {
return supportingResourceId;
}
/** Identifier of the underlying container database. */
@com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId")
private final String containerDatabaseId;
/**
* Identifier of the underlying container database.
*
* @return the value
*/
public String getContainerDatabaseId() {
return containerDatabaseId;
}
/** Identifier of the underlying container database parent. */
@com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseParentId")
private final String containerDatabaseParentId;
/**
* Identifier of the underlying container database parent.
*
* @return the value
*/
public String getContainerDatabaseParentId() {
return containerDatabaseParentId;
}
/** Determines the auto-scaling mode. */
@com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled")
private final Boolean isAutoScalingEnabled;
/**
* Determines the auto-scaling mode.
*
* @return the value
*/
public Boolean getIsAutoScalingEnabled() {
return isAutoScalingEnabled;
}
/** Identifier of the primary cloudAutonomousVmCluster for the shard. */
@com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId")
private final String cloudAutonomousVmClusterId;
/**
* Identifier of the primary cloudAutonomousVmCluster for the shard.
*
* @return the value
*/
public String getCloudAutonomousVmClusterId() {
return cloudAutonomousVmClusterId;
}
/** Identifier of the peer cloudAutonomousVmCluster for the shard. */
@com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterId")
private final String peerCloudAutonomousVmClusterId;
/**
* Identifier of the peer cloudAutonomousVmCluster for the shard.
*
* @return the value
*/
public String getPeerCloudAutonomousVmClusterId() {
return peerCloudAutonomousVmClusterId;
}
/** Additional metadata related to shard's underlying supporting resource. */
@com.fasterxml.jackson.annotation.JsonProperty("metadata")
private final java.util.Map metadata;
/**
* Additional metadata related to shard's underlying supporting resource.
*
* @return the value
*/
public java.util.Map getMetadata() {
return metadata;
}
@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("DedicatedShardDetails(");
sb.append("super=").append(super.toString());
sb.append("encryptionKeyDetails=").append(String.valueOf(this.encryptionKeyDetails));
sb.append(", name=").append(String.valueOf(this.name));
sb.append(", computeCount=").append(String.valueOf(this.computeCount));
sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs));
sb.append(", shardGroup=").append(String.valueOf(this.shardGroup));
sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated));
sb.append(", timeSslCertificateExpires=")
.append(String.valueOf(this.timeSslCertificateExpires));
sb.append(", status=").append(String.valueOf(this.status));
sb.append(", shardSpace=").append(String.valueOf(this.shardSpace));
sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId));
sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId));
sb.append(", containerDatabaseParentId=")
.append(String.valueOf(this.containerDatabaseParentId));
sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled));
sb.append(", cloudAutonomousVmClusterId=")
.append(String.valueOf(this.cloudAutonomousVmClusterId));
sb.append(", peerCloudAutonomousVmClusterId=")
.append(String.valueOf(this.peerCloudAutonomousVmClusterId));
sb.append(", metadata=").append(String.valueOf(this.metadata));
sb.append(")");
return sb.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof DedicatedShardDetails)) {
return false;
}
DedicatedShardDetails other = (DedicatedShardDetails) o;
return java.util.Objects.equals(this.encryptionKeyDetails, other.encryptionKeyDetails)
&& java.util.Objects.equals(this.name, other.name)
&& java.util.Objects.equals(this.computeCount, other.computeCount)
&& java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs)
&& java.util.Objects.equals(this.shardGroup, other.shardGroup)
&& java.util.Objects.equals(this.timeCreated, other.timeCreated)
&& java.util.Objects.equals(this.timeUpdated, other.timeUpdated)
&& java.util.Objects.equals(
this.timeSslCertificateExpires, other.timeSslCertificateExpires)
&& java.util.Objects.equals(this.status, other.status)
&& java.util.Objects.equals(this.shardSpace, other.shardSpace)
&& java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId)
&& java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId)
&& java.util.Objects.equals(
this.containerDatabaseParentId, other.containerDatabaseParentId)
&& java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled)
&& java.util.Objects.equals(
this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId)
&& java.util.Objects.equals(
this.peerCloudAutonomousVmClusterId, other.peerCloudAutonomousVmClusterId)
&& java.util.Objects.equals(this.metadata, other.metadata)
&& super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
result =
(result * PRIME)
+ (this.encryptionKeyDetails == null
? 43
: this.encryptionKeyDetails.hashCode());
result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode());
result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode());
result =
(result * PRIME)
+ (this.dataStorageSizeInGbs == null
? 43
: this.dataStorageSizeInGbs.hashCode());
result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.hashCode());
result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode());
result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode());
result =
(result * PRIME)
+ (this.timeSslCertificateExpires == null
? 43
: this.timeSslCertificateExpires.hashCode());
result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode());
result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.hashCode());
result =
(result * PRIME)
+ (this.supportingResourceId == null
? 43
: this.supportingResourceId.hashCode());
result =
(result * PRIME)
+ (this.containerDatabaseId == null
? 43
: this.containerDatabaseId.hashCode());
result =
(result * PRIME)
+ (this.containerDatabaseParentId == null
? 43
: this.containerDatabaseParentId.hashCode());
result =
(result * PRIME)
+ (this.isAutoScalingEnabled == null
? 43
: this.isAutoScalingEnabled.hashCode());
result =
(result * PRIME)
+ (this.cloudAutonomousVmClusterId == null
? 43
: this.cloudAutonomousVmClusterId.hashCode());
result =
(result * PRIME)
+ (this.peerCloudAutonomousVmClusterId == null
? 43
: this.peerCloudAutonomousVmClusterId.hashCode());
result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
}