/* * 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.savingsplans.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeSavingsPlansRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Names (ARN) of the Savings Plans. *
*/ private java.util.List* The IDs of the Savings Plans. *
*/ private java.util.List* The token for the next page of results. *
*/ private String nextToken; /** ** The maximum number of results to return with a single call. To retrieve additional results, make another call * with the returned token value. *
*/ private Integer maxResults; /** ** The states. *
*/ private java.util.List* The filters. *
*/ private java.util.List* The Amazon Resource Names (ARN) of the Savings Plans. *
* * @return The Amazon Resource Names (ARN) of the Savings Plans. */ public java.util.List* The Amazon Resource Names (ARN) of the Savings Plans. *
* * @param savingsPlanArns * The Amazon Resource Names (ARN) of the Savings Plans. */ public void setSavingsPlanArns(java.util.Collection* The Amazon Resource Names (ARN) of the Savings Plans. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSavingsPlanArns(java.util.Collection)} or {@link #withSavingsPlanArns(java.util.Collection)} if you * want to override the existing values. *
* * @param savingsPlanArns * The Amazon Resource Names (ARN) of the Savings Plans. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withSavingsPlanArns(String... savingsPlanArns) { if (this.savingsPlanArns == null) { setSavingsPlanArns(new java.util.ArrayList* The Amazon Resource Names (ARN) of the Savings Plans. *
* * @param savingsPlanArns * The Amazon Resource Names (ARN) of the Savings Plans. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withSavingsPlanArns(java.util.Collection* The IDs of the Savings Plans. *
* * @return The IDs of the Savings Plans. */ public java.util.List* The IDs of the Savings Plans. *
* * @param savingsPlanIds * The IDs of the Savings Plans. */ public void setSavingsPlanIds(java.util.Collection* The IDs of the Savings Plans. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSavingsPlanIds(java.util.Collection)} or {@link #withSavingsPlanIds(java.util.Collection)} if you want * to override the existing values. *
* * @param savingsPlanIds * The IDs of the Savings Plans. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withSavingsPlanIds(String... savingsPlanIds) { if (this.savingsPlanIds == null) { setSavingsPlanIds(new java.util.ArrayList* The IDs of the Savings Plans. *
* * @param savingsPlanIds * The IDs of the Savings Plans. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withSavingsPlanIds(java.util.Collection* The token for the next page of results. *
* * @param nextToken * The token for the next page of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The token for the next page of results. *
* * @return The token for the next page of results. */ public String getNextToken() { return this.nextToken; } /** ** The token for the next page of results. *
* * @param nextToken * The token for the next page of results. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** The maximum number of results to return with a single call. To retrieve additional results, make another call * with the returned token value. *
* * @param maxResults * The maximum number of results to return with a single call. To retrieve additional results, make another * call with the returned token value. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** ** The maximum number of results to return with a single call. To retrieve additional results, make another call * with the returned token value. *
* * @return The maximum number of results to return with a single call. To retrieve additional results, make another * call with the returned token value. */ public Integer getMaxResults() { return this.maxResults; } /** ** The maximum number of results to return with a single call. To retrieve additional results, make another call * with the returned token value. *
* * @param maxResults * The maximum number of results to return with a single call. To retrieve additional results, make another * call with the returned token value. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** ** The states. *
* * @return The states. * @see SavingsPlanState */ public java.util.List* The states. *
* * @param states * The states. * @see SavingsPlanState */ public void setStates(java.util.Collection* The states. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStates(java.util.Collection)} or {@link #withStates(java.util.Collection)} if you want to override the * existing values. *
* * @param states * The states. * @return Returns a reference to this object so that method calls can be chained together. * @see SavingsPlanState */ public DescribeSavingsPlansRequest withStates(String... states) { if (this.states == null) { setStates(new java.util.ArrayList* The states. *
* * @param states * The states. * @return Returns a reference to this object so that method calls can be chained together. * @see SavingsPlanState */ public DescribeSavingsPlansRequest withStates(java.util.Collection* The states. *
* * @param states * The states. * @return Returns a reference to this object so that method calls can be chained together. * @see SavingsPlanState */ public DescribeSavingsPlansRequest withStates(SavingsPlanState... states) { java.util.ArrayList* The filters. *
* * @return The filters. */ public java.util.List* The filters. *
* * @param filters * The filters. */ public void setFilters(java.util.Collection* The filters. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *
* * @param filters * The filters. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withFilters(SavingsPlanFilter... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList* The filters. *
* * @param filters * The filters. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSavingsPlansRequest withFilters(java.util.Collection