@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeReservedInstancesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Container for results from DescribeReservedInstances
Constructor and Description |
---|
DescribeReservedInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeReservedInstancesResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
Provides an identifier to allow retrieval of paginated results.
|
List<ReservedInstance> |
getReservedInstances()
List of reserved OpenSearch instances.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
Provides an identifier to allow retrieval of paginated results.
|
void |
setReservedInstances(Collection<ReservedInstance> reservedInstances)
List of reserved OpenSearch instances.
|
String |
toString()
Returns a string representation of this object.
|
DescribeReservedInstancesResult |
withNextToken(String nextToken)
Provides an identifier to allow retrieval of paginated results.
|
DescribeReservedInstancesResult |
withReservedInstances(Collection<ReservedInstance> reservedInstances)
List of reserved OpenSearch instances.
|
DescribeReservedInstancesResult |
withReservedInstances(ReservedInstance... reservedInstances)
List of reserved OpenSearch instances.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
Provides an identifier to allow retrieval of paginated results.
nextToken
- Provides an identifier to allow retrieval of paginated results.public String getNextToken()
Provides an identifier to allow retrieval of paginated results.
public DescribeReservedInstancesResult withNextToken(String nextToken)
Provides an identifier to allow retrieval of paginated results.
nextToken
- Provides an identifier to allow retrieval of paginated results.public List<ReservedInstance> getReservedInstances()
List of reserved OpenSearch instances.
public void setReservedInstances(Collection<ReservedInstance> reservedInstances)
List of reserved OpenSearch instances.
reservedInstances
- List of reserved OpenSearch instances.public DescribeReservedInstancesResult withReservedInstances(ReservedInstance... reservedInstances)
List of reserved OpenSearch instances.
NOTE: This method appends the values to the existing list (if any). Use
setReservedInstances(java.util.Collection)
or withReservedInstances(java.util.Collection)
if
you want to override the existing values.
reservedInstances
- List of reserved OpenSearch instances.public DescribeReservedInstancesResult withReservedInstances(Collection<ReservedInstance> reservedInstances)
List of reserved OpenSearch instances.
reservedInstances
- List of reserved OpenSearch instances.public String toString()
toString
in class Object
Object.toString()
public DescribeReservedInstancesResult clone()
Copyright © 2022. All rights reserved.