/* * 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.neptune.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. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ValidStorageOptions implements Serializable, Cloneable { /** ** The valid storage types for your DB instance. For example, gp2, io1. *
*/ private String storageType; /** ** The valid range of storage in gibibytes. For example, 100 to 16384. *
*/ private java.util.List* The valid range of provisioned IOPS. For example, 1000-20000. *
*/ private 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. *
*/ private java.util.List* The valid storage types for your DB instance. For example, gp2, io1. *
* * @param storageType * The valid storage types for your DB instance. For example, gp2, io1. */ public void setStorageType(String storageType) { this.storageType = storageType; } /** ** The valid storage types for your DB instance. For example, gp2, io1. *
* * @return The valid storage types for your DB instance. For example, gp2, io1. */ public String getStorageType() { return this.storageType; } /** ** The valid storage types for your DB instance. For example, gp2, io1. *
* * @param storageType * The valid storage types for your DB instance. For example, gp2, 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. For example, 100 to 16384. *
* * @return The valid range of storage in gibibytes. For example, 100 to 16384. */ public java.util.List* The valid range of storage in gibibytes. For example, 100 to 16384. *
* * @param storageSize * The valid range of storage in gibibytes. For example, 100 to 16384. */ public void setStorageSize(java.util.Collection* The valid range of storage in gibibytes. For example, 100 to 16384. *
** 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. For example, 100 to 16384. * @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 java.util.ArrayList* The valid range of storage in gibibytes. For example, 100 to 16384. *
* * @param storageSize * The valid range of storage in gibibytes. For example, 100 to 16384. * @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-20000. *
* * @return The valid range of provisioned IOPS. For example, 1000-20000. */ public java.util.List* The valid range of provisioned IOPS. For example, 1000-20000. *
* * @param provisionedIops * The valid range of provisioned IOPS. For example, 1000-20000. */ public void setProvisionedIops(java.util.Collection* The valid range of provisioned IOPS. For example, 1000-20000. *
** 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-20000. * @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 java.util.ArrayList* The valid range of provisioned IOPS. For example, 1000-20000. *
* * @param provisionedIops * The valid range of provisioned IOPS. For example, 1000-20000. * @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 java.util.ArrayList* 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