/* * 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.opensearch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Limits for a given instance type and for each of its roles. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Limits implements Serializable, Cloneable, StructuredPojo { /** ** Storage-related attributes that are available for a given instance type. *
*/ private java.util.List* The limits for a given instance type. *
*/ private InstanceLimits instanceLimits; /** ** List of additional limits that are specific to a given instance type for each of its instance roles. *
*/ private java.util.List* Storage-related attributes that are available for a given instance type. *
* * @return Storage-related attributes that are available for a given instance type. */ public java.util.List* Storage-related attributes that are available for a given instance type. *
* * @param storageTypes * Storage-related attributes that are available for a given instance type. */ public void setStorageTypes(java.util.Collection* Storage-related attributes that are available for a given instance type. *
** 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 * Storage-related attributes that are available for a given instance type. * @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* Storage-related attributes that are available for a given instance type. *
* * @param storageTypes * Storage-related attributes that are available for a given instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public Limits withStorageTypes(java.util.Collection* The limits for a given instance type. *
* * @param instanceLimits * The limits for a given instance type. */ public void setInstanceLimits(InstanceLimits instanceLimits) { this.instanceLimits = instanceLimits; } /** ** The limits for a given instance type. *
* * @return The limits for a given instance type. */ public InstanceLimits getInstanceLimits() { return this.instanceLimits; } /** ** The limits for a given instance type. *
* * @param instanceLimits * The limits for a given instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public Limits withInstanceLimits(InstanceLimits instanceLimits) { setInstanceLimits(instanceLimits); return this; } /** ** List of additional limits that are specific to a given instance type for each of its instance roles. *
* * @return List of additional limits that are specific to a given instance type for each of its instance roles. */ public java.util.List* List of additional limits that are specific to a given instance type for each of its instance roles. *
* * @param additionalLimits * List of additional limits that are specific to a given instance type for each of its instance roles. */ public void setAdditionalLimits(java.util.Collection* List of additional limits that are specific to a given instance type for each of its instance roles. *
** 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 instance type for each of its instance roles. * @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 instance type for each of its instance roles. *
* * @param additionalLimits * List of additional limits that are specific to a given instance type for each of its instance roles. * @return Returns a reference to this object so that method calls can be chained together. */ public Limits withAdditionalLimits(java.util.Collection