@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListInstancesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListInstancesResult() |
Modifier and Type | Method and Description |
---|---|
ListInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<InstanceSummary> |
getInstances()
Summary information about the instances that are associated with the specified service.
|
String |
getNextToken()
If more than
MaxResults instances match the specified criteria, you can submit another
ListInstances request to get the next group of results. |
int |
hashCode() |
void |
setInstances(Collection<InstanceSummary> instances)
Summary information about the instances that are associated with the specified service.
|
void |
setNextToken(String nextToken)
If more than
MaxResults instances match the specified criteria, you can submit another
ListInstances request to get the next group of results. |
String |
toString()
Returns a string representation of this object.
|
ListInstancesResult |
withInstances(Collection<InstanceSummary> instances)
Summary information about the instances that are associated with the specified service.
|
ListInstancesResult |
withInstances(InstanceSummary... instances)
Summary information about the instances that are associated with the specified service.
|
ListInstancesResult |
withNextToken(String nextToken)
If more than
MaxResults instances match the specified criteria, you can submit another
ListInstances request to get the next group of results. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<InstanceSummary> getInstances()
Summary information about the instances that are associated with the specified service.
public void setInstances(Collection<InstanceSummary> instances)
Summary information about the instances that are associated with the specified service.
instances
- Summary information about the instances that are associated with the specified service.public ListInstancesResult withInstances(InstanceSummary... instances)
Summary information about the instances that are associated with the specified service.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- Summary information about the instances that are associated with the specified service.public ListInstancesResult withInstances(Collection<InstanceSummary> instances)
Summary information about the instances that are associated with the specified service.
instances
- Summary information about the instances that are associated with the specified service.public void setNextToken(String nextToken)
If more than MaxResults
instances match the specified criteria, you can submit another
ListInstances
request to get the next group of results. Specify the value of NextToken
from the previous response in the next request.
nextToken
- If more than MaxResults
instances match the specified criteria, you can submit another
ListInstances
request to get the next group of results. Specify the value of
NextToken
from the previous response in the next request.public String getNextToken()
If more than MaxResults
instances match the specified criteria, you can submit another
ListInstances
request to get the next group of results. Specify the value of NextToken
from the previous response in the next request.
MaxResults
instances match the specified criteria, you can submit another
ListInstances
request to get the next group of results. Specify the value of
NextToken
from the previous response in the next request.public ListInstancesResult withNextToken(String nextToken)
If more than MaxResults
instances match the specified criteria, you can submit another
ListInstances
request to get the next group of results. Specify the value of NextToken
from the previous response in the next request.
nextToken
- If more than MaxResults
instances match the specified criteria, you can submit another
ListInstances
request to get the next group of results. Specify the value of
NextToken
from the previous response in the next request.public String toString()
toString
in class Object
Object.toString()
public ListInstancesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.