/* * 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 from DescribeReservedInstances
*
* 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 Instances in the current Region. *
*/ 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 DescribeReservedInstancesResult withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
* * List of Reserved Instances in the current Region. *
* * @return List of Reserved Instances in the current Region. */ public java.util.List* List of Reserved Instances in the current Region. *
* * @param reservedInstances * List of Reserved Instances in the current Region. */ public void setReservedInstances(java.util.Collection* List of Reserved Instances in the current Region. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReservedInstances(java.util.Collection)} or {@link #withReservedInstances(java.util.Collection)} if * you want to override the existing values. *
* * @param reservedInstances * List of Reserved Instances in the current Region. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedInstancesResult withReservedInstances(ReservedInstance... reservedInstances) { if (this.reservedInstances == null) { setReservedInstances(new java.util.ArrayList* List of Reserved Instances in the current Region. *
* * @param reservedInstances * List of Reserved Instances in the current Region. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedInstancesResult withReservedInstances(java.util.Collection