com.oracle.bmc.database.model.UpdateDbSystemDetails 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;
/**
* Describes the parameters for updating the DB system.
*
* *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 = UpdateDbSystemDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public final class UpdateDbSystemDetails
extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"cpuCoreCount",
"version",
"sshPublicKeys",
"dataStorageSizeInGBs",
"recoStorageSizeInGBs",
"freeformTags",
"definedTags",
"shape",
"nsgIds",
"backupNetworkNsgIds",
"licenseModel",
"maintenanceWindowDetails",
"dataCollectionOptions"
})
public UpdateDbSystemDetails(
Integer cpuCoreCount,
PatchDetails version,
java.util.List sshPublicKeys,
Integer dataStorageSizeInGBs,
Integer recoStorageSizeInGBs,
java.util.Map freeformTags,
java.util.Map> definedTags,
String shape,
java.util.List nsgIds,
java.util.List backupNetworkNsgIds,
LicenseModel licenseModel,
MaintenanceWindow maintenanceWindowDetails,
DataCollectionOptions dataCollectionOptions) {
super();
this.cpuCoreCount = cpuCoreCount;
this.version = version;
this.sshPublicKeys = sshPublicKeys;
this.dataStorageSizeInGBs = dataStorageSizeInGBs;
this.recoStorageSizeInGBs = recoStorageSizeInGBs;
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.shape = shape;
this.nsgIds = nsgIds;
this.backupNetworkNsgIds = backupNetworkNsgIds;
this.licenseModel = licenseModel;
this.maintenanceWindowDetails = maintenanceWindowDetails;
this.dataCollectionOptions = dataCollectionOptions;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
/**
* The new number of CPU cores to set for the DB system. Not applicable for INTEL based
* virtual machine DB systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
private Integer cpuCoreCount;
/**
* The new number of CPU cores to set for the DB system. Not applicable for INTEL based
* virtual machine DB systems.
*
* @param cpuCoreCount the value to set
* @return this builder
*/
public Builder cpuCoreCount(Integer cpuCoreCount) {
this.cpuCoreCount = cpuCoreCount;
this.__explicitlySet__.add("cpuCoreCount");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("version")
private PatchDetails version;
public Builder version(PatchDetails version) {
this.version = version;
this.__explicitlySet__.add("version");
return this;
}
/**
* The public key portion of the key pair to use for SSH access to the DB system. Multiple
* public keys can be provided. The length of the combined keys cannot exceed 40,000
* characters.
*/
@com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys")
private java.util.List sshPublicKeys;
/**
* The public key portion of the key pair to use for SSH access to the DB system. Multiple
* public keys can be provided. The length of the combined keys cannot exceed 40,000
* characters.
*
* @param sshPublicKeys the value to set
* @return this builder
*/
public Builder sshPublicKeys(java.util.List sshPublicKeys) {
this.sshPublicKeys = sshPublicKeys;
this.__explicitlySet__.add("sshPublicKeys");
return this;
}
/**
* The size, in gigabytes, to scale the attached storage up to for this virtual machine DB
* system. This value must be greater than current storage size. Note that the resulting
* total storage size attached will be greater than the amount requested to allow for
* REDO/RECO space and software volume. Applies only to virtual machine DB systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs")
private Integer dataStorageSizeInGBs;
/**
* The size, in gigabytes, to scale the attached storage up to for this virtual machine DB
* system. This value must be greater than current storage size. Note that the resulting
* total storage size attached will be greater than the amount requested to allow for
* REDO/RECO space and software volume. Applies only to virtual machine DB systems.
*
* @param dataStorageSizeInGBs the value to set
* @return this builder
*/
public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) {
this.dataStorageSizeInGBs = dataStorageSizeInGBs;
this.__explicitlySet__.add("dataStorageSizeInGBs");
return this;
}
/**
* The size, in gigabytes, to scale the attached RECO storage up to for this virtual machine
* DB system. This value must be greater than current storage size. Note that the resulting
* total storage size attached will be greater than the amount requested to allow for the
* software volume. Applies only to virtual machine DB systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs")
private Integer recoStorageSizeInGBs;
/**
* The size, in gigabytes, to scale the attached RECO storage up to for this virtual machine
* DB system. This value must be greater than current storage size. Note that the resulting
* total storage size attached will be greater than the amount requested to allow for the
* software volume. Applies only to virtual machine DB systems.
*
* @param recoStorageSizeInGBs the value to set
* @return this builder
*/
public Builder recoStorageSizeInGBs(Integer recoStorageSizeInGBs) {
this.recoStorageSizeInGBs = recoStorageSizeInGBs;
this.__explicitlySet__.add("recoStorageSizeInGBs");
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;
}
/**
* The shape of the DB system. The shape determines resources allocated to the DB system. -
* For virtual machine shapes, the number of CPU cores and memory
*
* To get a list of shapes, use the {@link #listDbSystemShapes(ListDbSystemShapesRequest)
* listDbSystemShapes} operation.
*/
@com.fasterxml.jackson.annotation.JsonProperty("shape")
private String shape;
/**
* The shape of the DB system. The shape determines resources allocated to the DB system. -
* For virtual machine shapes, the number of CPU cores and memory
*
*
To get a list of shapes, use the {@link #listDbSystemShapes(ListDbSystemShapesRequest)
* listDbSystemShapes} operation.
*
* @param shape the value to set
* @return this builder
*/
public Builder shape(String shape) {
this.shape = shape;
this.__explicitlySet__.add("shape");
return this;
}
/**
* The list of
* [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the
* network security groups (NSGs) to which this resource belongs. Setting this to an empty
* list removes all resources from all NSGs. For more information about NSGs, see [Security
* Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
* **NsgIds restrictions:** - A network security group (NSG) is optional for Autonomous
* Databases with private access. The nsgIds list can be empty.
*/
@com.fasterxml.jackson.annotation.JsonProperty("nsgIds")
private java.util.List nsgIds;
/**
* The list of
* [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the
* network security groups (NSGs) to which this resource belongs. Setting this to an empty
* list removes all resources from all NSGs. For more information about NSGs, see [Security
* Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
* **NsgIds restrictions:** - A network security group (NSG) is optional for Autonomous
* Databases with private access. The nsgIds list can be empty.
*
* @param nsgIds the value to set
* @return this builder
*/
public Builder nsgIds(java.util.List nsgIds) {
this.nsgIds = nsgIds;
this.__explicitlySet__.add("nsgIds");
return this;
}
/**
* A list of the
* [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* network security groups (NSGs) that the backup network of this DB system belongs to.
* Setting this to an empty array after the list is created removes the resource from all
* NSGs. For more information about NSGs, see [Security
* Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
* Applicable only to Exadata systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("backupNetworkNsgIds")
private java.util.List backupNetworkNsgIds;
/**
* A list of the
* [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* network security groups (NSGs) that the backup network of this DB system belongs to.
* Setting this to an empty array after the list is created removes the resource from all
* NSGs. For more information about NSGs, see [Security
* Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
* Applicable only to Exadata systems.
*
* @param backupNetworkNsgIds the value to set
* @return this builder
*/
public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) {
this.backupNetworkNsgIds = backupNetworkNsgIds;
this.__explicitlySet__.add("backupNetworkNsgIds");
return this;
}
/**
* The Oracle Database license model that applies to all databases on the DB system. The
* default is LICENSE_INCLUDED.
*/
@com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
private LicenseModel licenseModel;
/**
* The Oracle Database license model that applies to all databases on the DB system. The
* default is LICENSE_INCLUDED.
*
* @param licenseModel the value to set
* @return this builder
*/
public Builder licenseModel(LicenseModel licenseModel) {
this.licenseModel = licenseModel;
this.__explicitlySet__.add("licenseModel");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowDetails")
private MaintenanceWindow maintenanceWindowDetails;
public Builder maintenanceWindowDetails(MaintenanceWindow maintenanceWindowDetails) {
this.maintenanceWindowDetails = maintenanceWindowDetails;
this.__explicitlySet__.add("maintenanceWindowDetails");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions")
private DataCollectionOptions dataCollectionOptions;
public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions) {
this.dataCollectionOptions = dataCollectionOptions;
this.__explicitlySet__.add("dataCollectionOptions");
return this;
}
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public UpdateDbSystemDetails build() {
UpdateDbSystemDetails model =
new UpdateDbSystemDetails(
this.cpuCoreCount,
this.version,
this.sshPublicKeys,
this.dataStorageSizeInGBs,
this.recoStorageSizeInGBs,
this.freeformTags,
this.definedTags,
this.shape,
this.nsgIds,
this.backupNetworkNsgIds,
this.licenseModel,
this.maintenanceWindowDetails,
this.dataCollectionOptions);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
return model;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(UpdateDbSystemDetails model) {
if (model.wasPropertyExplicitlySet("cpuCoreCount")) {
this.cpuCoreCount(model.getCpuCoreCount());
}
if (model.wasPropertyExplicitlySet("version")) {
this.version(model.getVersion());
}
if (model.wasPropertyExplicitlySet("sshPublicKeys")) {
this.sshPublicKeys(model.getSshPublicKeys());
}
if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) {
this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs());
}
if (model.wasPropertyExplicitlySet("recoStorageSizeInGBs")) {
this.recoStorageSizeInGBs(model.getRecoStorageSizeInGBs());
}
if (model.wasPropertyExplicitlySet("freeformTags")) {
this.freeformTags(model.getFreeformTags());
}
if (model.wasPropertyExplicitlySet("definedTags")) {
this.definedTags(model.getDefinedTags());
}
if (model.wasPropertyExplicitlySet("shape")) {
this.shape(model.getShape());
}
if (model.wasPropertyExplicitlySet("nsgIds")) {
this.nsgIds(model.getNsgIds());
}
if (model.wasPropertyExplicitlySet("backupNetworkNsgIds")) {
this.backupNetworkNsgIds(model.getBackupNetworkNsgIds());
}
if (model.wasPropertyExplicitlySet("licenseModel")) {
this.licenseModel(model.getLicenseModel());
}
if (model.wasPropertyExplicitlySet("maintenanceWindowDetails")) {
this.maintenanceWindowDetails(model.getMaintenanceWindowDetails());
}
if (model.wasPropertyExplicitlySet("dataCollectionOptions")) {
this.dataCollectionOptions(model.getDataCollectionOptions());
}
return this;
}
}
/** Create a new builder. */
public static Builder builder() {
return new Builder();
}
public Builder toBuilder() {
return new Builder().copy(this);
}
/**
* The new number of CPU cores to set for the DB system. Not applicable for INTEL based virtual
* machine DB systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
private final Integer cpuCoreCount;
/**
* The new number of CPU cores to set for the DB system. Not applicable for INTEL based virtual
* machine DB systems.
*
* @return the value
*/
public Integer getCpuCoreCount() {
return cpuCoreCount;
}
@com.fasterxml.jackson.annotation.JsonProperty("version")
private final PatchDetails version;
public PatchDetails getVersion() {
return version;
}
/**
* The public key portion of the key pair to use for SSH access to the DB system. Multiple
* public keys can be provided. The length of the combined keys cannot exceed 40,000 characters.
*/
@com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys")
private final java.util.List sshPublicKeys;
/**
* The public key portion of the key pair to use for SSH access to the DB system. Multiple
* public keys can be provided. The length of the combined keys cannot exceed 40,000 characters.
*
* @return the value
*/
public java.util.List getSshPublicKeys() {
return sshPublicKeys;
}
/**
* The size, in gigabytes, to scale the attached storage up to for this virtual machine DB
* system. This value must be greater than current storage size. Note that the resulting total
* storage size attached will be greater than the amount requested to allow for REDO/RECO space
* and software volume. Applies only to virtual machine DB systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs")
private final Integer dataStorageSizeInGBs;
/**
* The size, in gigabytes, to scale the attached storage up to for this virtual machine DB
* system. This value must be greater than current storage size. Note that the resulting total
* storage size attached will be greater than the amount requested to allow for REDO/RECO space
* and software volume. Applies only to virtual machine DB systems.
*
* @return the value
*/
public Integer getDataStorageSizeInGBs() {
return dataStorageSizeInGBs;
}
/**
* The size, in gigabytes, to scale the attached RECO storage up to for this virtual machine DB
* system. This value must be greater than current storage size. Note that the resulting total
* storage size attached will be greater than the amount requested to allow for the software
* volume. Applies only to virtual machine DB systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs")
private final Integer recoStorageSizeInGBs;
/**
* The size, in gigabytes, to scale the attached RECO storage up to for this virtual machine DB
* system. This value must be greater than current storage size. Note that the resulting total
* storage size attached will be greater than the amount requested to allow for the software
* volume. Applies only to virtual machine DB systems.
*
* @return the value
*/
public Integer getRecoStorageSizeInGBs() {
return recoStorageSizeInGBs;
}
/**
* 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;
}
/**
* The shape of the DB system. The shape determines resources allocated to the DB system. - For
* virtual machine shapes, the number of CPU cores and memory
*
* To get a list of shapes, use the {@link #listDbSystemShapes(ListDbSystemShapesRequest)
* listDbSystemShapes} operation.
*/
@com.fasterxml.jackson.annotation.JsonProperty("shape")
private final String shape;
/**
* The shape of the DB system. The shape determines resources allocated to the DB system. - For
* virtual machine shapes, the number of CPU cores and memory
*
*
To get a list of shapes, use the {@link #listDbSystemShapes(ListDbSystemShapesRequest)
* listDbSystemShapes} operation.
*
* @return the value
*/
public String getShape() {
return shape;
}
/**
* The list of [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
* for the network security groups (NSGs) to which this resource belongs. Setting this to an
* empty list removes all resources from all NSGs. For more information about NSGs, see
* [Security Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
* **NsgIds restrictions:** - A network security group (NSG) is optional for Autonomous
* Databases with private access. The nsgIds list can be empty.
*/
@com.fasterxml.jackson.annotation.JsonProperty("nsgIds")
private final java.util.List nsgIds;
/**
* The list of [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
* for the network security groups (NSGs) to which this resource belongs. Setting this to an
* empty list removes all resources from all NSGs. For more information about NSGs, see
* [Security Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
* **NsgIds restrictions:** - A network security group (NSG) is optional for Autonomous
* Databases with private access. The nsgIds list can be empty.
*
* @return the value
*/
public java.util.List getNsgIds() {
return nsgIds;
}
/**
* A list of the [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
* of the network security groups (NSGs) that the backup network of this DB system belongs to.
* Setting this to an empty array after the list is created removes the resource from all NSGs.
* For more information about NSGs, see [Security
* Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). Applicable
* only to Exadata systems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("backupNetworkNsgIds")
private final java.util.List backupNetworkNsgIds;
/**
* A list of the [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
* of the network security groups (NSGs) that the backup network of this DB system belongs to.
* Setting this to an empty array after the list is created removes the resource from all NSGs.
* For more information about NSGs, see [Security
* Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). Applicable
* only to Exadata systems.
*
* @return the value
*/
public java.util.List getBackupNetworkNsgIds() {
return backupNetworkNsgIds;
}
/**
* The Oracle Database license model that applies to all databases on the DB system. The default
* is LICENSE_INCLUDED.
*/
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 Database license model that applies to all databases on the DB system. The default
* is LICENSE_INCLUDED.
*/
@com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
private final LicenseModel licenseModel;
/**
* The Oracle Database license model that applies to all databases on the DB system. The default
* is LICENSE_INCLUDED.
*
* @return the value
*/
public LicenseModel getLicenseModel() {
return licenseModel;
}
@com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowDetails")
private final MaintenanceWindow maintenanceWindowDetails;
public MaintenanceWindow getMaintenanceWindowDetails() {
return maintenanceWindowDetails;
}
@com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions")
private final DataCollectionOptions dataCollectionOptions;
public DataCollectionOptions getDataCollectionOptions() {
return dataCollectionOptions;
}
@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("UpdateDbSystemDetails(");
sb.append("super=").append(super.toString());
sb.append("cpuCoreCount=").append(String.valueOf(this.cpuCoreCount));
sb.append(", version=").append(String.valueOf(this.version));
sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys));
sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs));
sb.append(", recoStorageSizeInGBs=").append(String.valueOf(this.recoStorageSizeInGBs));
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(", shape=").append(String.valueOf(this.shape));
sb.append(", nsgIds=").append(String.valueOf(this.nsgIds));
sb.append(", backupNetworkNsgIds=").append(String.valueOf(this.backupNetworkNsgIds));
sb.append(", licenseModel=").append(String.valueOf(this.licenseModel));
sb.append(", maintenanceWindowDetails=")
.append(String.valueOf(this.maintenanceWindowDetails));
sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions));
sb.append(")");
return sb.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof UpdateDbSystemDetails)) {
return false;
}
UpdateDbSystemDetails other = (UpdateDbSystemDetails) o;
return java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount)
&& java.util.Objects.equals(this.version, other.version)
&& java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys)
&& java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs)
&& java.util.Objects.equals(this.recoStorageSizeInGBs, other.recoStorageSizeInGBs)
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& java.util.Objects.equals(this.shape, other.shape)
&& java.util.Objects.equals(this.nsgIds, other.nsgIds)
&& java.util.Objects.equals(this.backupNetworkNsgIds, other.backupNetworkNsgIds)
&& java.util.Objects.equals(this.licenseModel, other.licenseModel)
&& java.util.Objects.equals(
this.maintenanceWindowDetails, other.maintenanceWindowDetails)
&& java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions)
&& super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode());
result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
result =
(result * PRIME)
+ (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode());
result =
(result * PRIME)
+ (this.dataStorageSizeInGBs == null
? 43
: this.dataStorageSizeInGBs.hashCode());
result =
(result * PRIME)
+ (this.recoStorageSizeInGBs == null
? 43
: this.recoStorageSizeInGBs.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.shape == null ? 43 : this.shape.hashCode());
result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode());
result =
(result * PRIME)
+ (this.backupNetworkNsgIds == null
? 43
: this.backupNetworkNsgIds.hashCode());
result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode());
result =
(result * PRIME)
+ (this.maintenanceWindowDetails == null
? 43
: this.maintenanceWindowDetails.hashCode());
result =
(result * PRIME)
+ (this.dataCollectionOptions == null
? 43
: this.dataCollectionOptions.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
}