@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetInstancesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetInstancesResult() |
Modifier and Type | Method and Description |
---|---|
GetInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<Instance> |
getInstances()
An array of key-value pairs containing information about your instances.
|
String |
getNextPageToken()
A token used for advancing to the next page of results from your get instances request.
|
int |
hashCode() |
void |
setInstances(Collection<Instance> instances)
An array of key-value pairs containing information about your instances.
|
void |
setNextPageToken(String nextPageToken)
A token used for advancing to the next page of results from your get instances request.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetInstancesResult |
withInstances(Collection<Instance> instances)
An array of key-value pairs containing information about your instances.
|
GetInstancesResult |
withInstances(Instance... instances)
An array of key-value pairs containing information about your instances.
|
GetInstancesResult |
withNextPageToken(String nextPageToken)
A token used for advancing to the next page of results from your get instances request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Instance> getInstances()
An array of key-value pairs containing information about your instances.
public void setInstances(Collection<Instance> instances)
An array of key-value pairs containing information about your instances.
instances
- An array of key-value pairs containing information about your instances.public GetInstancesResult withInstances(Instance... instances)
An array of key-value pairs containing information about your instances.
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
- An array of key-value pairs containing information about your instances.public GetInstancesResult withInstances(Collection<Instance> instances)
An array of key-value pairs containing information about your instances.
instances
- An array of key-value pairs containing information about your instances.public void setNextPageToken(String nextPageToken)
A token used for advancing to the next page of results from your get instances request.
nextPageToken
- A token used for advancing to the next page of results from your get instances request.public String getNextPageToken()
A token used for advancing to the next page of results from your get instances request.
public GetInstancesResult withNextPageToken(String nextPageToken)
A token used for advancing to the next page of results from your get instances request.
nextPageToken
- A token used for advancing to the next page of results from your get instances request.public String toString()
toString
in class Object
Object.toString()
public GetInstancesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.