Class ListCommandsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simplesystemsmanagement.model.ListCommandsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class ListCommandsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ListCommandsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCommandsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCommandId()
(Optional) If provided, lists only the specified command.List<CommandFilter>
getFilters()
(Optional) One or more filters.String
getInstanceId()
(Optional) Lists commands issued against this instance ID.Integer
getMaxResults()
(Optional) The maximum number of items to return for this call.String
getNextToken()
(Optional) The token for the next set of items to return.int
hashCode()
void
setCommandId(String commandId)
(Optional) If provided, lists only the specified command.void
setFilters(Collection<CommandFilter> filters)
(Optional) One or more filters.void
setInstanceId(String instanceId)
(Optional) Lists commands issued against this instance ID.void
setMaxResults(Integer maxResults)
(Optional) The maximum number of items to return for this call.void
setNextToken(String nextToken)
(Optional) The token for the next set of items to return.String
toString()
Returns a string representation of this object; useful for testing and debugging.ListCommandsRequest
withCommandId(String commandId)
(Optional) If provided, lists only the specified command.ListCommandsRequest
withFilters(CommandFilter... filters)
(Optional) One or more filters.ListCommandsRequest
withFilters(Collection<CommandFilter> filters)
(Optional) One or more filters.ListCommandsRequest
withInstanceId(String instanceId)
(Optional) Lists commands issued against this instance ID.ListCommandsRequest
withMaxResults(Integer maxResults)
(Optional) The maximum number of items to return for this call.ListCommandsRequest
withNextToken(String nextToken)
(Optional) The token for the next set of items to return.-
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
-
setCommandId
public void setCommandId(String commandId)
(Optional) If provided, lists only the specified command.
- Parameters:
commandId
- (Optional) If provided, lists only the specified command.
-
getCommandId
public String getCommandId()
(Optional) If provided, lists only the specified command.
- Returns:
- (Optional) If provided, lists only the specified command.
-
withCommandId
public ListCommandsRequest withCommandId(String commandId)
(Optional) If provided, lists only the specified command.
- Parameters:
commandId
- (Optional) If provided, lists only the specified command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
(Optional) Lists commands issued against this instance ID.
- Parameters:
instanceId
- (Optional) Lists commands issued against this instance ID.
-
getInstanceId
public String getInstanceId()
(Optional) Lists commands issued against this instance ID.
- Returns:
- (Optional) Lists commands issued against this instance ID.
-
withInstanceId
public ListCommandsRequest withInstanceId(String instanceId)
(Optional) Lists commands issued against this instance ID.
- Parameters:
instanceId
- (Optional) Lists commands issued against this instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxResults
public void setMaxResults(Integer maxResults)
(Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
- Parameters:
maxResults
- (Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
getMaxResults
public Integer getMaxResults()
(Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
- Returns:
- (Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
withMaxResults
public ListCommandsRequest withMaxResults(Integer maxResults)
(Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
- Parameters:
maxResults
- (Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
- Parameters:
nextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)
-
getNextToken
public String getNextToken()
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
- Returns:
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)
-
withNextToken
public ListCommandsRequest withNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
- Parameters:
nextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFilters
public List<CommandFilter> getFilters()
(Optional) One or more filters. Use a filter to return a more specific list of results.
- Returns:
- (Optional) One or more filters. Use a filter to return a more specific list of results.
-
setFilters
public void setFilters(Collection<CommandFilter> filters)
(Optional) One or more filters. Use a filter to return a more specific list of results.
- Parameters:
filters
- (Optional) One or more filters. Use a filter to return a more specific list of results.
-
withFilters
public ListCommandsRequest withFilters(CommandFilter... filters)
(Optional) One or more filters. Use a filter to return a more specific list of results.
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)
orwithFilters(java.util.Collection)
if you want to override the existing values.- Parameters:
filters
- (Optional) One or more filters. Use a filter to return a more specific list of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withFilters
public ListCommandsRequest withFilters(Collection<CommandFilter> filters)
(Optional) One or more filters. Use a filter to return a more specific list of results.
- Parameters:
filters
- (Optional) One or more filters. Use a filter to return a more specific list 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 ListCommandsRequest 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()
-
-