@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 include in another request to get the next page of items.
|
int |
hashCode() |
void |
setInstanceTypes(Collection<InstanceTypeInfo> instanceTypes)
The instance type.
|
void |
setNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
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 include in another request to get the next page of items.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<InstanceTypeInfo> getInstanceTypes()
The instance type.
public void setInstanceTypes(Collection<InstanceTypeInfo> instanceTypes)
The instance type.
instanceTypes
- The instance type.public DescribeInstanceTypesResult withInstanceTypes(InstanceTypeInfo... instanceTypes)
The instance type.
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.public DescribeInstanceTypesResult withInstanceTypes(Collection<InstanceTypeInfo> instanceTypes)
The instance type.
instanceTypes
- The instance type.public void setNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String getNextToken()
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
null
when there are no more items to return.public DescribeInstanceTypesResult withNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String toString()
toString
in class Object
Object.toString()
public DescribeInstanceTypesResult clone()