Class DescribeAgentsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.applicationdiscovery.model.DescribeAgentsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class DescribeAgentsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeAgentsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeAgentsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<String>
getAgentIds()
The agent IDs for which you want information.Integer
getMaxResults()
The total number of agents to return.String
getNextToken()
A token to start the list.int
hashCode()
void
setAgentIds(Collection<String> agentIds)
The agent IDs for which you want information.void
setMaxResults(Integer maxResults)
The total number of agents to return.void
setNextToken(String nextToken)
A token to start the list.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeAgentsRequest
withAgentIds(String... agentIds)
The agent IDs for which you want information.DescribeAgentsRequest
withAgentIds(Collection<String> agentIds)
The agent IDs for which you want information.DescribeAgentsRequest
withMaxResults(Integer maxResults)
The total number of agents to return.DescribeAgentsRequest
withNextToken(String nextToken)
A token to start the list.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
getAgentIds
public List<String> getAgentIds()
The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.
- Returns:
- The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.
-
setAgentIds
public void setAgentIds(Collection<String> agentIds)
The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.
- Parameters:
agentIds
- The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.
-
withAgentIds
public DescribeAgentsRequest withAgentIds(String... agentIds)
The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.
NOTE: This method appends the values to the existing list (if any). Use
setAgentIds(java.util.Collection)
orwithAgentIds(java.util.Collection)
if you want to override the existing values.- Parameters:
agentIds
- The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAgentIds
public DescribeAgentsRequest withAgentIds(Collection<String> agentIds)
The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.
- Parameters:
agentIds
- The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxResults
public void setMaxResults(Integer maxResults)
The total number of agents to return. The maximum value is 100.
- Parameters:
maxResults
- The total number of agents to return. The maximum value is 100.
-
getMaxResults
public Integer getMaxResults()
The total number of agents to return. The maximum value is 100.
- Returns:
- The total number of agents to return. The maximum value is 100.
-
withMaxResults
public DescribeAgentsRequest withMaxResults(Integer maxResults)
The total number of agents to return. The maximum value is 100.
- Parameters:
maxResults
- The total number of agents to return. The maximum value is 100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
A token to start the list. Use this token to get the next set of results.
- Parameters:
nextToken
- A token to start the list. Use this token to get the next set of results.
-
getNextToken
public String getNextToken()
A token to start the list. Use this token to get the next set of results.
- Returns:
- A token to start the list. Use this token to get the next set of results.
-
withNextToken
public DescribeAgentsRequest withNextToken(String nextToken)
A token to start the list. Use this token to get the next set of results.
- Parameters:
nextToken
- A token to start the list. Use this token to get the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeAgentsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-