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

com.amazonaws.services.neptune.model.OrderableDBInstanceOption Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Neptune module holds the client classes that are used for communicating with Amazon Neptune Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.neptune.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Contains a list of available options for a DB instance. *

*

* This data type is used as a response element in the DescribeOrderableDBInstanceOptions action. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OrderableDBInstanceOption implements Serializable, Cloneable { /** *

* The engine type of a DB instance. *

*/ private String engine; /** *

* The engine version of a DB instance. *

*/ private String engineVersion; /** *

* The DB instance class for a DB instance. *

*/ private String dBInstanceClass; /** *

* The license model for a DB instance. *

*/ private String licenseModel; /** *

* A list of Availability Zones for a DB instance. *

*/ private java.util.List availabilityZones; /** *

* Indicates whether a DB instance is Multi-AZ capable. *

*/ private Boolean multiAZCapable; /** *

* Indicates whether a DB instance can have a Read Replica. *

*/ private Boolean readReplicaCapable; /** *

* Indicates whether a DB instance is in a VPC. *

*/ private Boolean vpc; /** *

* Indicates whether a DB instance supports encrypted storage. *

*/ private Boolean supportsStorageEncryption; /** *

* Indicates the storage type for a DB instance. *

*/ private String storageType; /** *

* Indicates whether a DB instance supports provisioned IOPS. *

*/ private Boolean supportsIops; /** *

* Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. *

*/ private Boolean supportsEnhancedMonitoring; /** *

* Indicates whether a DB instance supports IAM database authentication. *

*/ private Boolean supportsIAMDatabaseAuthentication; /** *

* (Not supported by Neptune) *

*/ private Boolean supportsPerformanceInsights; /** *

* Minimum storage size for a DB instance. *

*/ private Integer minStorageSize; /** *

* Maximum storage size for a DB instance. *

*/ private Integer maxStorageSize; /** *

* Minimum total provisioned IOPS for a DB instance. *

*/ private Integer minIopsPerDbInstance; /** *

* Maximum total provisioned IOPS for a DB instance. *

*/ private Integer maxIopsPerDbInstance; /** *

* Minimum provisioned IOPS per GiB for a DB instance. *

*/ private Double minIopsPerGib; /** *

* Maximum provisioned IOPS per GiB for a DB instance. *

*/ private Double maxIopsPerGib; /** *

* A value that indicates whether you can use Neptune global databases with a specific combination of other DB * engine attributes. *

*/ private Boolean supportsGlobalDatabases; /** *

* The engine type of a DB instance. *

* * @param engine * The engine type of a DB instance. */ public void setEngine(String engine) { this.engine = engine; } /** *

* The engine type of a DB instance. *

* * @return The engine type of a DB instance. */ public String getEngine() { return this.engine; } /** *

* The engine type of a DB instance. *

* * @param engine * The engine type of a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withEngine(String engine) { setEngine(engine); return this; } /** *

* The engine version of a DB instance. *

* * @param engineVersion * The engine version of a DB instance. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The engine version of a DB instance. *

* * @return The engine version of a DB instance. */ public String getEngineVersion() { return this.engineVersion; } /** *

* The engine version of a DB instance. *

* * @param engineVersion * The engine version of a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

* The DB instance class for a DB instance. *

* * @param dBInstanceClass * The DB instance class for a DB instance. */ public void setDBInstanceClass(String dBInstanceClass) { this.dBInstanceClass = dBInstanceClass; } /** *

* The DB instance class for a DB instance. *

* * @return The DB instance class for a DB instance. */ public String getDBInstanceClass() { return this.dBInstanceClass; } /** *

* The DB instance class for a DB instance. *

* * @param dBInstanceClass * The DB instance class for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withDBInstanceClass(String dBInstanceClass) { setDBInstanceClass(dBInstanceClass); return this; } /** *

* The license model for a DB instance. *

* * @param licenseModel * The license model for a DB instance. */ public void setLicenseModel(String licenseModel) { this.licenseModel = licenseModel; } /** *

* The license model for a DB instance. *

* * @return The license model for a DB instance. */ public String getLicenseModel() { return this.licenseModel; } /** *

* The license model for a DB instance. *

* * @param licenseModel * The license model for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withLicenseModel(String licenseModel) { setLicenseModel(licenseModel); return this; } /** *

* A list of Availability Zones for a DB instance. *

* * @return A list of Availability Zones for a DB instance. */ public java.util.List getAvailabilityZones() { return availabilityZones; } /** *

* A list of Availability Zones for a DB instance. *

* * @param availabilityZones * A list of Availability Zones for a DB instance. */ public void setAvailabilityZones(java.util.Collection availabilityZones) { if (availabilityZones == null) { this.availabilityZones = null; return; } this.availabilityZones = new java.util.ArrayList(availabilityZones); } /** *

* A list of Availability Zones for a DB instance. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAvailabilityZones(java.util.Collection)} or {@link #withAvailabilityZones(java.util.Collection)} if * you want to override the existing values. *

* * @param availabilityZones * A list of Availability Zones for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withAvailabilityZones(AvailabilityZone... availabilityZones) { if (this.availabilityZones == null) { setAvailabilityZones(new java.util.ArrayList(availabilityZones.length)); } for (AvailabilityZone ele : availabilityZones) { this.availabilityZones.add(ele); } return this; } /** *

* A list of Availability Zones for a DB instance. *

* * @param availabilityZones * A list of Availability Zones for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withAvailabilityZones(java.util.Collection availabilityZones) { setAvailabilityZones(availabilityZones); return this; } /** *

* Indicates whether a DB instance is Multi-AZ capable. *

* * @param multiAZCapable * Indicates whether a DB instance is Multi-AZ capable. */ public void setMultiAZCapable(Boolean multiAZCapable) { this.multiAZCapable = multiAZCapable; } /** *

* Indicates whether a DB instance is Multi-AZ capable. *

* * @return Indicates whether a DB instance is Multi-AZ capable. */ public Boolean getMultiAZCapable() { return this.multiAZCapable; } /** *

* Indicates whether a DB instance is Multi-AZ capable. *

* * @param multiAZCapable * Indicates whether a DB instance is Multi-AZ capable. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withMultiAZCapable(Boolean multiAZCapable) { setMultiAZCapable(multiAZCapable); return this; } /** *

* Indicates whether a DB instance is Multi-AZ capable. *

* * @return Indicates whether a DB instance is Multi-AZ capable. */ public Boolean isMultiAZCapable() { return this.multiAZCapable; } /** *

* Indicates whether a DB instance can have a Read Replica. *

* * @param readReplicaCapable * Indicates whether a DB instance can have a Read Replica. */ public void setReadReplicaCapable(Boolean readReplicaCapable) { this.readReplicaCapable = readReplicaCapable; } /** *

* Indicates whether a DB instance can have a Read Replica. *

* * @return Indicates whether a DB instance can have a Read Replica. */ public Boolean getReadReplicaCapable() { return this.readReplicaCapable; } /** *

* Indicates whether a DB instance can have a Read Replica. *

* * @param readReplicaCapable * Indicates whether a DB instance can have a Read Replica. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withReadReplicaCapable(Boolean readReplicaCapable) { setReadReplicaCapable(readReplicaCapable); return this; } /** *

* Indicates whether a DB instance can have a Read Replica. *

* * @return Indicates whether a DB instance can have a Read Replica. */ public Boolean isReadReplicaCapable() { return this.readReplicaCapable; } /** *

* Indicates whether a DB instance is in a VPC. *

* * @param vpc * Indicates whether a DB instance is in a VPC. */ public void setVpc(Boolean vpc) { this.vpc = vpc; } /** *

* Indicates whether a DB instance is in a VPC. *

* * @return Indicates whether a DB instance is in a VPC. */ public Boolean getVpc() { return this.vpc; } /** *

* Indicates whether a DB instance is in a VPC. *

* * @param vpc * Indicates whether a DB instance is in a VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withVpc(Boolean vpc) { setVpc(vpc); return this; } /** *

* Indicates whether a DB instance is in a VPC. *

* * @return Indicates whether a DB instance is in a VPC. */ public Boolean isVpc() { return this.vpc; } /** *

* Indicates whether a DB instance supports encrypted storage. *

* * @param supportsStorageEncryption * Indicates whether a DB instance supports encrypted storage. */ public void setSupportsStorageEncryption(Boolean supportsStorageEncryption) { this.supportsStorageEncryption = supportsStorageEncryption; } /** *

* Indicates whether a DB instance supports encrypted storage. *

* * @return Indicates whether a DB instance supports encrypted storage. */ public Boolean getSupportsStorageEncryption() { return this.supportsStorageEncryption; } /** *

* Indicates whether a DB instance supports encrypted storage. *

* * @param supportsStorageEncryption * Indicates whether a DB instance supports encrypted storage. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withSupportsStorageEncryption(Boolean supportsStorageEncryption) { setSupportsStorageEncryption(supportsStorageEncryption); return this; } /** *

* Indicates whether a DB instance supports encrypted storage. *

* * @return Indicates whether a DB instance supports encrypted storage. */ public Boolean isSupportsStorageEncryption() { return this.supportsStorageEncryption; } /** *

* Indicates the storage type for a DB instance. *

* * @param storageType * Indicates the storage type for a DB instance. */ public void setStorageType(String storageType) { this.storageType = storageType; } /** *

* Indicates the storage type for a DB instance. *

* * @return Indicates the storage type for a DB instance. */ public String getStorageType() { return this.storageType; } /** *

* Indicates the storage type for a DB instance. *

* * @param storageType * Indicates the storage type for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withStorageType(String storageType) { setStorageType(storageType); return this; } /** *

* Indicates whether a DB instance supports provisioned IOPS. *

* * @param supportsIops * Indicates whether a DB instance supports provisioned IOPS. */ public void setSupportsIops(Boolean supportsIops) { this.supportsIops = supportsIops; } /** *

* Indicates whether a DB instance supports provisioned IOPS. *

* * @return Indicates whether a DB instance supports provisioned IOPS. */ public Boolean getSupportsIops() { return this.supportsIops; } /** *

* Indicates whether a DB instance supports provisioned IOPS. *

* * @param supportsIops * Indicates whether a DB instance supports provisioned IOPS. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withSupportsIops(Boolean supportsIops) { setSupportsIops(supportsIops); return this; } /** *

* Indicates whether a DB instance supports provisioned IOPS. *

* * @return Indicates whether a DB instance supports provisioned IOPS. */ public Boolean isSupportsIops() { return this.supportsIops; } /** *

* Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. *

* * @param supportsEnhancedMonitoring * Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. */ public void setSupportsEnhancedMonitoring(Boolean supportsEnhancedMonitoring) { this.supportsEnhancedMonitoring = supportsEnhancedMonitoring; } /** *

* Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. *

* * @return Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. */ public Boolean getSupportsEnhancedMonitoring() { return this.supportsEnhancedMonitoring; } /** *

* Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. *

* * @param supportsEnhancedMonitoring * Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withSupportsEnhancedMonitoring(Boolean supportsEnhancedMonitoring) { setSupportsEnhancedMonitoring(supportsEnhancedMonitoring); return this; } /** *

* Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. *

* * @return Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. */ public Boolean isSupportsEnhancedMonitoring() { return this.supportsEnhancedMonitoring; } /** *

* Indicates whether a DB instance supports IAM database authentication. *

* * @param supportsIAMDatabaseAuthentication * Indicates whether a DB instance supports IAM database authentication. */ public void setSupportsIAMDatabaseAuthentication(Boolean supportsIAMDatabaseAuthentication) { this.supportsIAMDatabaseAuthentication = supportsIAMDatabaseAuthentication; } /** *

* Indicates whether a DB instance supports IAM database authentication. *

* * @return Indicates whether a DB instance supports IAM database authentication. */ public Boolean getSupportsIAMDatabaseAuthentication() { return this.supportsIAMDatabaseAuthentication; } /** *

* Indicates whether a DB instance supports IAM database authentication. *

* * @param supportsIAMDatabaseAuthentication * Indicates whether a DB instance supports IAM database authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withSupportsIAMDatabaseAuthentication(Boolean supportsIAMDatabaseAuthentication) { setSupportsIAMDatabaseAuthentication(supportsIAMDatabaseAuthentication); return this; } /** *

* Indicates whether a DB instance supports IAM database authentication. *

* * @return Indicates whether a DB instance supports IAM database authentication. */ public Boolean isSupportsIAMDatabaseAuthentication() { return this.supportsIAMDatabaseAuthentication; } /** *

* (Not supported by Neptune) *

* * @param supportsPerformanceInsights * (Not supported by Neptune) */ public void setSupportsPerformanceInsights(Boolean supportsPerformanceInsights) { this.supportsPerformanceInsights = supportsPerformanceInsights; } /** *

* (Not supported by Neptune) *

* * @return (Not supported by Neptune) */ public Boolean getSupportsPerformanceInsights() { return this.supportsPerformanceInsights; } /** *

* (Not supported by Neptune) *

* * @param supportsPerformanceInsights * (Not supported by Neptune) * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withSupportsPerformanceInsights(Boolean supportsPerformanceInsights) { setSupportsPerformanceInsights(supportsPerformanceInsights); return this; } /** *

* (Not supported by Neptune) *

* * @return (Not supported by Neptune) */ public Boolean isSupportsPerformanceInsights() { return this.supportsPerformanceInsights; } /** *

* Minimum storage size for a DB instance. *

* * @param minStorageSize * Minimum storage size for a DB instance. */ public void setMinStorageSize(Integer minStorageSize) { this.minStorageSize = minStorageSize; } /** *

* Minimum storage size for a DB instance. *

* * @return Minimum storage size for a DB instance. */ public Integer getMinStorageSize() { return this.minStorageSize; } /** *

* Minimum storage size for a DB instance. *

* * @param minStorageSize * Minimum storage size for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withMinStorageSize(Integer minStorageSize) { setMinStorageSize(minStorageSize); return this; } /** *

* Maximum storage size for a DB instance. *

* * @param maxStorageSize * Maximum storage size for a DB instance. */ public void setMaxStorageSize(Integer maxStorageSize) { this.maxStorageSize = maxStorageSize; } /** *

* Maximum storage size for a DB instance. *

* * @return Maximum storage size for a DB instance. */ public Integer getMaxStorageSize() { return this.maxStorageSize; } /** *

* Maximum storage size for a DB instance. *

* * @param maxStorageSize * Maximum storage size for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withMaxStorageSize(Integer maxStorageSize) { setMaxStorageSize(maxStorageSize); return this; } /** *

* Minimum total provisioned IOPS for a DB instance. *

* * @param minIopsPerDbInstance * Minimum total provisioned IOPS for a DB instance. */ public void setMinIopsPerDbInstance(Integer minIopsPerDbInstance) { this.minIopsPerDbInstance = minIopsPerDbInstance; } /** *

* Minimum total provisioned IOPS for a DB instance. *

* * @return Minimum total provisioned IOPS for a DB instance. */ public Integer getMinIopsPerDbInstance() { return this.minIopsPerDbInstance; } /** *

* Minimum total provisioned IOPS for a DB instance. *

* * @param minIopsPerDbInstance * Minimum total provisioned IOPS for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withMinIopsPerDbInstance(Integer minIopsPerDbInstance) { setMinIopsPerDbInstance(minIopsPerDbInstance); return this; } /** *

* Maximum total provisioned IOPS for a DB instance. *

* * @param maxIopsPerDbInstance * Maximum total provisioned IOPS for a DB instance. */ public void setMaxIopsPerDbInstance(Integer maxIopsPerDbInstance) { this.maxIopsPerDbInstance = maxIopsPerDbInstance; } /** *

* Maximum total provisioned IOPS for a DB instance. *

* * @return Maximum total provisioned IOPS for a DB instance. */ public Integer getMaxIopsPerDbInstance() { return this.maxIopsPerDbInstance; } /** *

* Maximum total provisioned IOPS for a DB instance. *

* * @param maxIopsPerDbInstance * Maximum total provisioned IOPS for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withMaxIopsPerDbInstance(Integer maxIopsPerDbInstance) { setMaxIopsPerDbInstance(maxIopsPerDbInstance); return this; } /** *

* Minimum provisioned IOPS per GiB for a DB instance. *

* * @param minIopsPerGib * Minimum provisioned IOPS per GiB for a DB instance. */ public void setMinIopsPerGib(Double minIopsPerGib) { this.minIopsPerGib = minIopsPerGib; } /** *

* Minimum provisioned IOPS per GiB for a DB instance. *

* * @return Minimum provisioned IOPS per GiB for a DB instance. */ public Double getMinIopsPerGib() { return this.minIopsPerGib; } /** *

* Minimum provisioned IOPS per GiB for a DB instance. *

* * @param minIopsPerGib * Minimum provisioned IOPS per GiB for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withMinIopsPerGib(Double minIopsPerGib) { setMinIopsPerGib(minIopsPerGib); return this; } /** *

* Maximum provisioned IOPS per GiB for a DB instance. *

* * @param maxIopsPerGib * Maximum provisioned IOPS per GiB for a DB instance. */ public void setMaxIopsPerGib(Double maxIopsPerGib) { this.maxIopsPerGib = maxIopsPerGib; } /** *

* Maximum provisioned IOPS per GiB for a DB instance. *

* * @return Maximum provisioned IOPS per GiB for a DB instance. */ public Double getMaxIopsPerGib() { return this.maxIopsPerGib; } /** *

* Maximum provisioned IOPS per GiB for a DB instance. *

* * @param maxIopsPerGib * Maximum provisioned IOPS per GiB for a DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withMaxIopsPerGib(Double maxIopsPerGib) { setMaxIopsPerGib(maxIopsPerGib); return this; } /** *

* A value that indicates whether you can use Neptune global databases with a specific combination of other DB * engine attributes. *

* * @param supportsGlobalDatabases * A value that indicates whether you can use Neptune global databases with a specific combination of other * DB engine attributes. */ public void setSupportsGlobalDatabases(Boolean supportsGlobalDatabases) { this.supportsGlobalDatabases = supportsGlobalDatabases; } /** *

* A value that indicates whether you can use Neptune global databases with a specific combination of other DB * engine attributes. *

* * @return A value that indicates whether you can use Neptune global databases with a specific combination of other * DB engine attributes. */ public Boolean getSupportsGlobalDatabases() { return this.supportsGlobalDatabases; } /** *

* A value that indicates whether you can use Neptune global databases with a specific combination of other DB * engine attributes. *

* * @param supportsGlobalDatabases * A value that indicates whether you can use Neptune global databases with a specific combination of other * DB engine attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public OrderableDBInstanceOption withSupportsGlobalDatabases(Boolean supportsGlobalDatabases) { setSupportsGlobalDatabases(supportsGlobalDatabases); return this; } /** *

* A value that indicates whether you can use Neptune global databases with a specific combination of other DB * engine attributes. *

* * @return A value that indicates whether you can use Neptune global databases with a specific combination of other * DB engine attributes. */ public Boolean isSupportsGlobalDatabases() { return this.supportsGlobalDatabases; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getDBInstanceClass() != null) sb.append("DBInstanceClass: ").append(getDBInstanceClass()).append(","); if (getLicenseModel() != null) sb.append("LicenseModel: ").append(getLicenseModel()).append(","); if (getAvailabilityZones() != null) sb.append("AvailabilityZones: ").append(getAvailabilityZones()).append(","); if (getMultiAZCapable() != null) sb.append("MultiAZCapable: ").append(getMultiAZCapable()).append(","); if (getReadReplicaCapable() != null) sb.append("ReadReplicaCapable: ").append(getReadReplicaCapable()).append(","); if (getVpc() != null) sb.append("Vpc: ").append(getVpc()).append(","); if (getSupportsStorageEncryption() != null) sb.append("SupportsStorageEncryption: ").append(getSupportsStorageEncryption()).append(","); if (getStorageType() != null) sb.append("StorageType: ").append(getStorageType()).append(","); if (getSupportsIops() != null) sb.append("SupportsIops: ").append(getSupportsIops()).append(","); if (getSupportsEnhancedMonitoring() != null) sb.append("SupportsEnhancedMonitoring: ").append(getSupportsEnhancedMonitoring()).append(","); if (getSupportsIAMDatabaseAuthentication() != null) sb.append("SupportsIAMDatabaseAuthentication: ").append(getSupportsIAMDatabaseAuthentication()).append(","); if (getSupportsPerformanceInsights() != null) sb.append("SupportsPerformanceInsights: ").append(getSupportsPerformanceInsights()).append(","); if (getMinStorageSize() != null) sb.append("MinStorageSize: ").append(getMinStorageSize()).append(","); if (getMaxStorageSize() != null) sb.append("MaxStorageSize: ").append(getMaxStorageSize()).append(","); if (getMinIopsPerDbInstance() != null) sb.append("MinIopsPerDbInstance: ").append(getMinIopsPerDbInstance()).append(","); if (getMaxIopsPerDbInstance() != null) sb.append("MaxIopsPerDbInstance: ").append(getMaxIopsPerDbInstance()).append(","); if (getMinIopsPerGib() != null) sb.append("MinIopsPerGib: ").append(getMinIopsPerGib()).append(","); if (getMaxIopsPerGib() != null) sb.append("MaxIopsPerGib: ").append(getMaxIopsPerGib()).append(","); if (getSupportsGlobalDatabases() != null) sb.append("SupportsGlobalDatabases: ").append(getSupportsGlobalDatabases()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OrderableDBInstanceOption == false) return false; OrderableDBInstanceOption other = (OrderableDBInstanceOption) obj; if (other.getEngine() == null ^ this.getEngine() == null) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getDBInstanceClass() == null ^ this.getDBInstanceClass() == null) return false; if (other.getDBInstanceClass() != null && other.getDBInstanceClass().equals(this.getDBInstanceClass()) == false) return false; if (other.getLicenseModel() == null ^ this.getLicenseModel() == null) return false; if (other.getLicenseModel() != null && other.getLicenseModel().equals(this.getLicenseModel()) == false) return false; if (other.getAvailabilityZones() == null ^ this.getAvailabilityZones() == null) return false; if (other.getAvailabilityZones() != null && other.getAvailabilityZones().equals(this.getAvailabilityZones()) == false) return false; if (other.getMultiAZCapable() == null ^ this.getMultiAZCapable() == null) return false; if (other.getMultiAZCapable() != null && other.getMultiAZCapable().equals(this.getMultiAZCapable()) == false) return false; if (other.getReadReplicaCapable() == null ^ this.getReadReplicaCapable() == null) return false; if (other.getReadReplicaCapable() != null && other.getReadReplicaCapable().equals(this.getReadReplicaCapable()) == false) return false; if (other.getVpc() == null ^ this.getVpc() == null) return false; if (other.getVpc() != null && other.getVpc().equals(this.getVpc()) == false) return false; if (other.getSupportsStorageEncryption() == null ^ this.getSupportsStorageEncryption() == null) return false; if (other.getSupportsStorageEncryption() != null && other.getSupportsStorageEncryption().equals(this.getSupportsStorageEncryption()) == false) return false; if (other.getStorageType() == null ^ this.getStorageType() == null) return false; if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == false) return false; if (other.getSupportsIops() == null ^ this.getSupportsIops() == null) return false; if (other.getSupportsIops() != null && other.getSupportsIops().equals(this.getSupportsIops()) == false) return false; if (other.getSupportsEnhancedMonitoring() == null ^ this.getSupportsEnhancedMonitoring() == null) return false; if (other.getSupportsEnhancedMonitoring() != null && other.getSupportsEnhancedMonitoring().equals(this.getSupportsEnhancedMonitoring()) == false) return false; if (other.getSupportsIAMDatabaseAuthentication() == null ^ this.getSupportsIAMDatabaseAuthentication() == null) return false; if (other.getSupportsIAMDatabaseAuthentication() != null && other.getSupportsIAMDatabaseAuthentication().equals(this.getSupportsIAMDatabaseAuthentication()) == false) return false; if (other.getSupportsPerformanceInsights() == null ^ this.getSupportsPerformanceInsights() == null) return false; if (other.getSupportsPerformanceInsights() != null && other.getSupportsPerformanceInsights().equals(this.getSupportsPerformanceInsights()) == false) return false; if (other.getMinStorageSize() == null ^ this.getMinStorageSize() == null) return false; if (other.getMinStorageSize() != null && other.getMinStorageSize().equals(this.getMinStorageSize()) == false) return false; if (other.getMaxStorageSize() == null ^ this.getMaxStorageSize() == null) return false; if (other.getMaxStorageSize() != null && other.getMaxStorageSize().equals(this.getMaxStorageSize()) == false) return false; if (other.getMinIopsPerDbInstance() == null ^ this.getMinIopsPerDbInstance() == null) return false; if (other.getMinIopsPerDbInstance() != null && other.getMinIopsPerDbInstance().equals(this.getMinIopsPerDbInstance()) == false) return false; if (other.getMaxIopsPerDbInstance() == null ^ this.getMaxIopsPerDbInstance() == null) return false; if (other.getMaxIopsPerDbInstance() != null && other.getMaxIopsPerDbInstance().equals(this.getMaxIopsPerDbInstance()) == false) return false; if (other.getMinIopsPerGib() == null ^ this.getMinIopsPerGib() == null) return false; if (other.getMinIopsPerGib() != null && other.getMinIopsPerGib().equals(this.getMinIopsPerGib()) == false) return false; if (other.getMaxIopsPerGib() == null ^ this.getMaxIopsPerGib() == null) return false; if (other.getMaxIopsPerGib() != null && other.getMaxIopsPerGib().equals(this.getMaxIopsPerGib()) == false) return false; if (other.getSupportsGlobalDatabases() == null ^ this.getSupportsGlobalDatabases() == null) return false; if (other.getSupportsGlobalDatabases() != null && other.getSupportsGlobalDatabases().equals(this.getSupportsGlobalDatabases()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getDBInstanceClass() == null) ? 0 : getDBInstanceClass().hashCode()); hashCode = prime * hashCode + ((getLicenseModel() == null) ? 0 : getLicenseModel().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZones() == null) ? 0 : getAvailabilityZones().hashCode()); hashCode = prime * hashCode + ((getMultiAZCapable() == null) ? 0 : getMultiAZCapable().hashCode()); hashCode = prime * hashCode + ((getReadReplicaCapable() == null) ? 0 : getReadReplicaCapable().hashCode()); hashCode = prime * hashCode + ((getVpc() == null) ? 0 : getVpc().hashCode()); hashCode = prime * hashCode + ((getSupportsStorageEncryption() == null) ? 0 : getSupportsStorageEncryption().hashCode()); hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); hashCode = prime * hashCode + ((getSupportsIops() == null) ? 0 : getSupportsIops().hashCode()); hashCode = prime * hashCode + ((getSupportsEnhancedMonitoring() == null) ? 0 : getSupportsEnhancedMonitoring().hashCode()); hashCode = prime * hashCode + ((getSupportsIAMDatabaseAuthentication() == null) ? 0 : getSupportsIAMDatabaseAuthentication().hashCode()); hashCode = prime * hashCode + ((getSupportsPerformanceInsights() == null) ? 0 : getSupportsPerformanceInsights().hashCode()); hashCode = prime * hashCode + ((getMinStorageSize() == null) ? 0 : getMinStorageSize().hashCode()); hashCode = prime * hashCode + ((getMaxStorageSize() == null) ? 0 : getMaxStorageSize().hashCode()); hashCode = prime * hashCode + ((getMinIopsPerDbInstance() == null) ? 0 : getMinIopsPerDbInstance().hashCode()); hashCode = prime * hashCode + ((getMaxIopsPerDbInstance() == null) ? 0 : getMaxIopsPerDbInstance().hashCode()); hashCode = prime * hashCode + ((getMinIopsPerGib() == null) ? 0 : getMinIopsPerGib().hashCode()); hashCode = prime * hashCode + ((getMaxIopsPerGib() == null) ? 0 : getMaxIopsPerGib().hashCode()); hashCode = prime * hashCode + ((getSupportsGlobalDatabases() == null) ? 0 : getSupportsGlobalDatabases().hashCode()); return hashCode; } @Override public OrderableDBInstanceOption clone() { try { return (OrderableDBInstanceOption) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy