@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListAgentsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListAgentsResult() |
Modifier and Type | Method and Description |
---|---|
ListAgentsResult |
clone() |
boolean |
equals(Object obj) |
List<AgentSummary> |
getAgentSummaries()
A list of objects, each of which contains information about an agent.
|
String |
getNextToken()
If the total number of results is greater than the
maxResults value provided in the request, use
this token when making another request in the nextToken field to return the next batch of results. |
int |
hashCode() |
void |
setAgentSummaries(Collection<AgentSummary> agentSummaries)
A list of objects, each of which contains information about an agent.
|
void |
setNextToken(String nextToken)
If the total number of results is greater than the
maxResults value provided in the request, use
this token when making another request in the nextToken field to return the next batch of results. |
String |
toString()
Returns a string representation of this object.
|
ListAgentsResult |
withAgentSummaries(AgentSummary... agentSummaries)
A list of objects, each of which contains information about an agent.
|
ListAgentsResult |
withAgentSummaries(Collection<AgentSummary> agentSummaries)
A list of objects, each of which contains information about an agent.
|
ListAgentsResult |
withNextToken(String nextToken)
If the total number of results is greater than the
maxResults value provided in the request, use
this token when making another request in the nextToken field to return the next batch of results. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<AgentSummary> getAgentSummaries()
A list of objects, each of which contains information about an agent.
public void setAgentSummaries(Collection<AgentSummary> agentSummaries)
A list of objects, each of which contains information about an agent.
agentSummaries
- A list of objects, each of which contains information about an agent.public ListAgentsResult withAgentSummaries(AgentSummary... agentSummaries)
A list of objects, each of which contains information about an agent.
NOTE: This method appends the values to the existing list (if any). Use
setAgentSummaries(java.util.Collection)
or withAgentSummaries(java.util.Collection)
if you want
to override the existing values.
agentSummaries
- A list of objects, each of which contains information about an agent.public ListAgentsResult withAgentSummaries(Collection<AgentSummary> agentSummaries)
A list of objects, each of which contains information about an agent.
agentSummaries
- A list of objects, each of which contains information about an agent.public void setNextToken(String nextToken)
If the total number of results is greater than the maxResults
value provided in the request, use
this token when making another request in the nextToken
field to return the next batch of results.
nextToken
- If the total number of results is greater than the maxResults
value provided in the request,
use this token when making another request in the nextToken
field to return the next batch of
results.public String getNextToken()
If the total number of results is greater than the maxResults
value provided in the request, use
this token when making another request in the nextToken
field to return the next batch of results.
maxResults
value provided in the request,
use this token when making another request in the nextToken
field to return the next batch
of results.public ListAgentsResult withNextToken(String nextToken)
If the total number of results is greater than the maxResults
value provided in the request, use
this token when making another request in the nextToken
field to return the next batch of results.
nextToken
- If the total number of results is greater than the maxResults
value provided in the request,
use this token when making another request in the nextToken
field to return the next batch of
results.public String toString()
toString
in class Object
Object.toString()
public ListAgentsResult clone()