/* * 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.elasticsearch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
 * Limits for given InstanceType and for each of it's role. 
 * Limits contains following  StorageTypes,   InstanceLimits  and
 *  AdditionalLimits 
 * 
* StorageType represents the list of storage related types and attributes that are available for given * InstanceType. *
*/ private java.util.List
     * List of additional limits that are specific to a given InstanceType and for each of it's
     *  InstanceRole  .
     * 
* StorageType represents the list of storage related types and attributes that are available for given * InstanceType. *
* * @return StorageType represents the list of storage related types and attributes that are available for given * InstanceType. */ public java.util.List* StorageType represents the list of storage related types and attributes that are available for given * InstanceType. *
* * @param storageTypes * StorageType represents the list of storage related types and attributes that are available for given * InstanceType. */ public void setStorageTypes(java.util.Collection* StorageType represents the list of storage related types and attributes that are available for given * InstanceType. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStorageTypes(java.util.Collection)} or {@link #withStorageTypes(java.util.Collection)} if you want to * override the existing values. *
* * @param storageTypes * StorageType represents the list of storage related types and attributes that are available for given * InstanceType. * @return Returns a reference to this object so that method calls can be chained together. */ public Limits withStorageTypes(StorageType... storageTypes) { if (this.storageTypes == null) { setStorageTypes(new java.util.ArrayList* StorageType represents the list of storage related types and attributes that are available for given * InstanceType. *
* * @param storageTypes * StorageType represents the list of storage related types and attributes that are available for given * InstanceType. * @return Returns a reference to this object so that method calls can be chained together. */ public Limits withStorageTypes(java.util.Collection
     * List of additional limits that are specific to a given InstanceType and for each of it's
     *  InstanceRole  .
     * 
 InstanceRole  .
     */
    public java.util.List
     * List of additional limits that are specific to a given InstanceType and for each of it's
     *  InstanceRole  .
     * 
 InstanceRole  .
     */
    public void setAdditionalLimits(java.util.Collection
     * List of additional limits that are specific to a given InstanceType and for each of it's
     *  InstanceRole  .
     * 
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdditionalLimits(java.util.Collection)} or {@link #withAdditionalLimits(java.util.Collection)} if you * want to override the existing values. *
* * @param additionalLimits * List of additional limits that are specific to a given InstanceType and for each of it's * InstanceRole  .
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Limits withAdditionalLimits(AdditionalLimit... additionalLimits) {
        if (this.additionalLimits == null) {
            setAdditionalLimits(new java.util.ArrayList
     * List of additional limits that are specific to a given InstanceType and for each of it's
     *  InstanceRole  .
     * 
 InstanceRole  .
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Limits withAdditionalLimits(java.util.Collection