@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListAgentsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
ListAgentsResponse
Constructor and Description |
---|
ListAgentsResult() |
Modifier and Type | Method and Description |
---|---|
ListAgentsResult |
clone() |
boolean |
equals(Object obj) |
List<AgentListEntry> |
getAgents()
A list of agents in your account.
|
String |
getNextToken()
An opaque string that indicates the position at which to begin returning the next list of agents.
|
int |
hashCode() |
void |
setAgents(Collection<AgentListEntry> agents)
A list of agents in your account.
|
void |
setNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of agents.
|
String |
toString()
Returns a string representation of this object.
|
ListAgentsResult |
withAgents(AgentListEntry... agents)
A list of agents in your account.
|
ListAgentsResult |
withAgents(Collection<AgentListEntry> agents)
A list of agents in your account.
|
ListAgentsResult |
withNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of agents.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<AgentListEntry> getAgents()
A list of agents in your account.
public void setAgents(Collection<AgentListEntry> agents)
A list of agents in your account.
agents
- A list of agents in your account.public ListAgentsResult withAgents(AgentListEntry... agents)
A list of agents in your account.
NOTE: This method appends the values to the existing list (if any). Use
setAgents(java.util.Collection)
or withAgents(java.util.Collection)
if you want to override the
existing values.
agents
- A list of agents in your account.public ListAgentsResult withAgents(Collection<AgentListEntry> agents)
A list of agents in your account.
agents
- A list of agents in your account.public void setNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of agents.
nextToken
- An opaque string that indicates the position at which to begin returning the next list of agents.public String getNextToken()
An opaque string that indicates the position at which to begin returning the next list of agents.
public ListAgentsResult withNextToken(String nextToken)
An opaque string that indicates the position at which to begin returning the next list of agents.
nextToken
- An opaque string that indicates the position at which to begin returning the next list of agents.public String toString()
toString
in class Object
Object.toString()
public ListAgentsResult clone()