/* * 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; /** *
* Container for results of a DescribeReservedInstanceOfferings
request.
*
* When nextToken
is returned, there are more results available. The value of nextToken
is
* a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
*
* List of Reserved Instance offerings. *
*/ private java.util.List
* When nextToken
is returned, there are more results available. The value of nextToken
is
* a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
*
nextToken
is returned, there are more results available. The value of
* nextToken
is a unique pagination token for each page. Make the call again using the returned
* token to retrieve the next page.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* When nextToken
is returned, there are more results available. The value of nextToken
is
* a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
*
nextToken
is returned, there are more results available. The value of
* nextToken
is a unique pagination token for each page. Make the call again using the returned
* token to retrieve the next page.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* When nextToken
is returned, there are more results available. The value of nextToken
is
* a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
*
nextToken
is returned, there are more results available. The value of
* nextToken
is a unique pagination token for each page. Make the call again using the returned
* token to retrieve the next page.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeReservedInstanceOfferingsResult withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
* * List of Reserved Instance offerings. *
* * @return List of Reserved Instance offerings. */ public java.util.List* List of Reserved Instance offerings. *
* * @param reservedInstanceOfferings * List of Reserved Instance offerings. */ public void setReservedInstanceOfferings(java.util.Collection* List of Reserved Instance offerings. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReservedInstanceOfferings(java.util.Collection)} or * {@link #withReservedInstanceOfferings(java.util.Collection)} if you want to override the existing values. *
* * @param reservedInstanceOfferings * List of Reserved Instance offerings. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedInstanceOfferingsResult withReservedInstanceOfferings(ReservedInstanceOffering... reservedInstanceOfferings) { if (this.reservedInstanceOfferings == null) { setReservedInstanceOfferings(new java.util.ArrayList* List of Reserved Instance offerings. *
* * @param reservedInstanceOfferings * List of Reserved Instance offerings. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedInstanceOfferingsResult withReservedInstanceOfferings(java.util.Collection