@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListGatewayInstancesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListGatewayInstancesResult() |
Modifier and Type | Method and Description |
---|---|
ListGatewayInstancesResult |
clone() |
boolean |
equals(Object obj) |
List<ListedGatewayInstance> |
getInstances()
A list of instance summaries.
|
String |
getNextToken()
The token that identifies which batch of results that you want to see.
|
int |
hashCode() |
void |
setInstances(Collection<ListedGatewayInstance> instances)
A list of instance summaries.
|
void |
setNextToken(String nextToken)
The token that identifies which batch of results that you want to see.
|
String |
toString()
Returns a string representation of this object.
|
ListGatewayInstancesResult |
withInstances(Collection<ListedGatewayInstance> instances)
A list of instance summaries.
|
ListGatewayInstancesResult |
withInstances(ListedGatewayInstance... instances)
A list of instance summaries.
|
ListGatewayInstancesResult |
withNextToken(String nextToken)
The token that identifies which batch of results that you want to see.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ListedGatewayInstance> getInstances()
public void setInstances(Collection<ListedGatewayInstance> instances)
instances
- A list of instance summaries.public ListGatewayInstancesResult withInstances(ListedGatewayInstance... 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
- A list of instance summaries.public ListGatewayInstancesResult withInstances(Collection<ListedGatewayInstance> instances)
instances
- A list of instance summaries.public void setNextToken(String nextToken)
nextToken
- The token that identifies which batch of results that you want to see. For example, you submit a
ListInstances request with MaxResults set at 5. The service returns the first batch of results (up to 5)
and a NextToken value. To see the next batch of results, you can submit the ListInstances request a second
time and specify the NextToken value.public String getNextToken()
public ListGatewayInstancesResult withNextToken(String nextToken)
nextToken
- The token that identifies which batch of results that you want to see. For example, you submit a
ListInstances request with MaxResults set at 5. The service returns the first batch of results (up to 5)
and a NextToken value. To see the next batch of results, you can submit the ListInstances request a second
time and specify the NextToken value.public String toString()
toString
in class Object
Object.toString()
public ListGatewayInstancesResult clone()