/* * Copyright 2018-2023 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.rds.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Information about valid modifications that you can make to your DB instance. Contains the result of a successful call
* to the DescribeValidDBInstanceModifications
action.
*
* The valid storage types for your DB instance. For example: gp2, gp3, io1. *
*/ private String storageType; /** ** The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. *
*/ private com.amazonaws.internal.SdkInternalList* The valid range of provisioned IOPS. For example, 1000-256,000. *
*/ private com.amazonaws.internal.SdkInternalList* The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means that * provisioned IOPS can be between 3 and 10 times storage. *
*/ private com.amazonaws.internal.SdkInternalList* Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance class. *
*/ private Boolean supportsStorageAutoscaling; /** ** The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). *
*/ private com.amazonaws.internal.SdkInternalList* The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. *
*/ private com.amazonaws.internal.SdkInternalList* The valid storage types for your DB instance. For example: gp2, gp3, io1. *
* * @param storageType * The valid storage types for your DB instance. For example: gp2, gp3, io1. */ public void setStorageType(String storageType) { this.storageType = storageType; } /** ** The valid storage types for your DB instance. For example: gp2, gp3, io1. *
* * @return The valid storage types for your DB instance. For example: gp2, gp3, io1. */ public String getStorageType() { return this.storageType; } /** ** The valid storage types for your DB instance. For example: gp2, gp3, io1. *
* * @param storageType * The valid storage types for your DB instance. For example: gp2, gp3, io1. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withStorageType(String storageType) { setStorageType(storageType); return this; } /** ** The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. *
* * @return The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. */ public java.util.List* The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. *
* * @param storageSize * The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. */ public void setStorageSize(java.util.Collection* The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStorageSize(java.util.Collection)} or {@link #withStorageSize(java.util.Collection)} if you want to * override the existing values. *
* * @param storageSize * The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withStorageSize(Range... storageSize) { if (this.storageSize == null) { setStorageSize(new com.amazonaws.internal.SdkInternalList* The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. *
* * @param storageSize * The valid range of storage in gibibytes (GiB). For example, 100 to 16,384. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withStorageSize(java.util.Collection* The valid range of provisioned IOPS. For example, 1000-256,000. *
* * @return The valid range of provisioned IOPS. For example, 1000-256,000. */ public java.util.List* The valid range of provisioned IOPS. For example, 1000-256,000. *
* * @param provisionedIops * The valid range of provisioned IOPS. For example, 1000-256,000. */ public void setProvisionedIops(java.util.Collection* The valid range of provisioned IOPS. For example, 1000-256,000. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProvisionedIops(java.util.Collection)} or {@link #withProvisionedIops(java.util.Collection)} if you * want to override the existing values. *
* * @param provisionedIops * The valid range of provisioned IOPS. For example, 1000-256,000. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withProvisionedIops(Range... provisionedIops) { if (this.provisionedIops == null) { setProvisionedIops(new com.amazonaws.internal.SdkInternalList* The valid range of provisioned IOPS. For example, 1000-256,000. *
* * @param provisionedIops * The valid range of provisioned IOPS. For example, 1000-256,000. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withProvisionedIops(java.util.Collection* The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means that * provisioned IOPS can be between 3 and 10 times storage. *
* * @return The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means * that provisioned IOPS can be between 3 and 10 times storage. */ public java.util.List* The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means that * provisioned IOPS can be between 3 and 10 times storage. *
* * @param iopsToStorageRatio * The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means * that provisioned IOPS can be between 3 and 10 times storage. */ public void setIopsToStorageRatio(java.util.Collection* The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means that * provisioned IOPS can be between 3 and 10 times storage. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIopsToStorageRatio(java.util.Collection)} or {@link #withIopsToStorageRatio(java.util.Collection)} if * you want to override the existing values. *
* * @param iopsToStorageRatio * The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means * that provisioned IOPS can be between 3 and 10 times storage. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withIopsToStorageRatio(DoubleRange... iopsToStorageRatio) { if (this.iopsToStorageRatio == null) { setIopsToStorageRatio(new com.amazonaws.internal.SdkInternalList* The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means that * provisioned IOPS can be between 3 and 10 times storage. *
* * @param iopsToStorageRatio * The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means * that provisioned IOPS can be between 3 and 10 times storage. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withIopsToStorageRatio(java.util.Collection* Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance class. *
* * @param supportsStorageAutoscaling * Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance * class. */ public void setSupportsStorageAutoscaling(Boolean supportsStorageAutoscaling) { this.supportsStorageAutoscaling = supportsStorageAutoscaling; } /** ** Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance class. *
* * @return Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance * class. */ public Boolean getSupportsStorageAutoscaling() { return this.supportsStorageAutoscaling; } /** ** Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance class. *
* * @param supportsStorageAutoscaling * Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance * class. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withSupportsStorageAutoscaling(Boolean supportsStorageAutoscaling) { setSupportsStorageAutoscaling(supportsStorageAutoscaling); return this; } /** ** Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance class. *
* * @return Whether or not Amazon RDS can automatically scale storage for DB instances that use the new instance * class. */ public Boolean isSupportsStorageAutoscaling() { return this.supportsStorageAutoscaling; } /** ** The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). *
* * @return The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). */ public java.util.List* The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). *
* * @param provisionedStorageThroughput * The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). */ public void setProvisionedStorageThroughput(java.util.Collection* The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProvisionedStorageThroughput(java.util.Collection)} or * {@link #withProvisionedStorageThroughput(java.util.Collection)} if you want to override the existing values. *
* * @param provisionedStorageThroughput * The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withProvisionedStorageThroughput(Range... provisionedStorageThroughput) { if (this.provisionedStorageThroughput == null) { setProvisionedStorageThroughput(new com.amazonaws.internal.SdkInternalList* The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). *
* * @param provisionedStorageThroughput * The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps). * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withProvisionedStorageThroughput(java.util.Collection* The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. *
* * @return The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. */ public java.util.List* The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. *
* * @param storageThroughputToIopsRatio * The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. */ public void setStorageThroughputToIopsRatio(java.util.Collection* The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStorageThroughputToIopsRatio(java.util.Collection)} or * {@link #withStorageThroughputToIopsRatio(java.util.Collection)} if you want to override the existing values. *
* * @param storageThroughputToIopsRatio * The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withStorageThroughputToIopsRatio(DoubleRange... storageThroughputToIopsRatio) { if (this.storageThroughputToIopsRatio == null) { setStorageThroughputToIopsRatio(new com.amazonaws.internal.SdkInternalList* The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. *
* * @param storageThroughputToIopsRatio * The valid range of storage throughput to provisioned IOPS ratios. For example, 0-0.25. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidStorageOptions withStorageThroughputToIopsRatio(java.util.Collection