@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 DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the
request.
|
String |
getNextToken()
The opaque string that indicates the position to begin the next list of results in the response.
|
int |
hashCode() |
void |
setAgents(Collection<AgentListEntry> agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the
request.
|
void |
setNextToken(String nextToken)
The opaque string that indicates the position to begin the next list of results in the response.
|
String |
toString()
Returns a string representation of this object.
|
ListAgentsResult |
withAgents(AgentListEntry... agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the
request.
|
ListAgentsResult |
withAgents(Collection<AgentListEntry> agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the
request.
|
ListAgentsResult |
withNextToken(String nextToken)
The opaque string that indicates the position to begin the next list of results in the response.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<AgentListEntry> getAgents()
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
public void setAgents(Collection<AgentListEntry> agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
agents
- A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified
in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).public ListAgentsResult withAgents(AgentListEntry... agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
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 DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified
in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).public ListAgentsResult withAgents(Collection<AgentListEntry> agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
agents
- A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified
in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).public void setNextToken(String nextToken)
The opaque string that indicates the position to begin the next list of results in the response.
nextToken
- The opaque string that indicates the position to begin the next list of results in the response.public String getNextToken()
The opaque string that indicates the position to begin the next list of results in the response.
public ListAgentsResult withNextToken(String nextToken)
The opaque string that indicates the position to begin the next list of results in the response.
nextToken
- The opaque string that indicates the position to begin the next list of results in the response.public String toString()
toString
in class Object
Object.toString()
public ListAgentsResult clone()