@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeInstanceTypesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
DescribeInstanceTypesResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeInstanceTypesResult |
clone() |
boolean |
equals(Object obj) |
List<InstanceTypeInfo> |
getInstanceTypes()
The instance type.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setInstanceTypes(Collection<InstanceTypeInfo> instanceTypes)
The instance type.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object.
|
DescribeInstanceTypesResult |
withInstanceTypes(Collection<InstanceTypeInfo> instanceTypes)
The instance type.
|
DescribeInstanceTypesResult |
withInstanceTypes(InstanceTypeInfo... instanceTypes)
The instance type.
|
DescribeInstanceTypesResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic List<InstanceTypeInfo> getInstanceTypes()
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
public void setInstanceTypes(Collection<InstanceTypeInfo> instanceTypes)
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
instanceTypes - The instance type. For more information, see Instance types in the
Amazon EC2 User Guide.public DescribeInstanceTypesResult withInstanceTypes(InstanceTypeInfo... instanceTypes)
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTypes(java.util.Collection) or withInstanceTypes(java.util.Collection) if you want
to override the existing values.
instanceTypes - The instance type. For more information, see Instance types in the
Amazon EC2 User Guide.public DescribeInstanceTypesResult withInstanceTypes(Collection<InstanceTypeInfo> instanceTypes)
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
instanceTypes - The instance type. For more information, see Instance types in the
Amazon EC2 User Guide.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null when there are no more
results to return.
nextToken - The token to use to retrieve the next page of results. This value is null when there are no
more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null when there are no more
results to return.
null when there are no
more results to return.public DescribeInstanceTypesResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null when there are no more
results to return.
nextToken - The token to use to retrieve the next page of results. This value is null when there are no
more results to return.public String toString()
toString in class ObjectObject.toString()public DescribeInstanceTypesResult clone()
Copyright © 2022. All rights reserved.