@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()
The token to advance to the next page of resutls from your request.
|
int |
hashCode() |
void |
setInstances(Collection<Instance> instances)
An array of key-value pairs containing information about your instances.
|
void |
setNextPageToken(String nextPageToken)
The token to advance to the next page of resutls from your request.
|
String |
toString()
Returns a string representation of this object.
|
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)
The token to advance to the next page of resutls from your 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)
The token to advance to the next page of resutls from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstances
request and specify the next page
token using the pageToken
parameter.
nextPageToken
- The token to advance to the next page of resutls from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstances
request and specify the next
page token using the pageToken
parameter.
public String getNextPageToken()
The token to advance to the next page of resutls from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstances
request and specify the next page
token using the pageToken
parameter.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstances
request and specify the next
page token using the pageToken
parameter.
public GetInstancesResult withNextPageToken(String nextPageToken)
The token to advance to the next page of resutls from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstances
request and specify the next page
token using the pageToken
parameter.
nextPageToken
- The token to advance to the next page of resutls from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstances
request and specify the next
page token using the pageToken
parameter.
public String toString()
toString
in class Object
Object.toString()
public GetInstancesResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.