public class ListCommandsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
commandId
(Optional) If provided, lists only the specified command.
|
private SdkInternalList<CommandFilter> |
filters
(Optional) One or more filters.
|
private java.lang.String |
instanceId
(Optional) Lists commands issued against this instance ID.
|
private java.lang.Integer |
maxResults
(Optional) The maximum number of items to return for this call.
|
private java.lang.String |
nextToken
(Optional) The token for the next set of items to return.
|
NOOP
Constructor and Description |
---|
ListCommandsRequest() |
Modifier and Type | Method and Description |
---|---|
ListCommandsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCommandId()
(Optional) If provided, lists only the specified command.
|
java.util.List<CommandFilter> |
getFilters()
(Optional) One or more filters.
|
java.lang.String |
getInstanceId()
(Optional) Lists commands issued against this instance ID.
|
java.lang.Integer |
getMaxResults()
(Optional) The maximum number of items to return for this call.
|
java.lang.String |
getNextToken()
(Optional) The token for the next set of items to return.
|
int |
hashCode() |
void |
setCommandId(java.lang.String commandId)
(Optional) If provided, lists only the specified command.
|
void |
setFilters(java.util.Collection<CommandFilter> filters)
(Optional) One or more filters.
|
void |
setInstanceId(java.lang.String instanceId)
(Optional) Lists commands issued against this instance ID.
|
void |
setMaxResults(java.lang.Integer maxResults)
(Optional) The maximum number of items to return for this call.
|
void |
setNextToken(java.lang.String nextToken)
(Optional) The token for the next set of items to return.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListCommandsRequest |
withCommandId(java.lang.String commandId)
(Optional) If provided, lists only the specified command.
|
ListCommandsRequest |
withFilters(java.util.Collection<CommandFilter> filters)
(Optional) One or more filters.
|
ListCommandsRequest |
withFilters(CommandFilter... filters)
(Optional) One or more filters.
|
ListCommandsRequest |
withInstanceId(java.lang.String instanceId)
(Optional) Lists commands issued against this instance ID.
|
ListCommandsRequest |
withMaxResults(java.lang.Integer maxResults)
(Optional) The maximum number of items to return for this call.
|
ListCommandsRequest |
withNextToken(java.lang.String nextToken)
(Optional) The token for the next set of items to return.
|
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
private java.lang.String commandId
(Optional) If provided, lists only the specified command.
private java.lang.String instanceId
(Optional) Lists commands issued against this instance ID.
private java.lang.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.
private java.lang.String nextToken
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
private SdkInternalList<CommandFilter> filters
(Optional) One or more filters. Use a filter to return a more specific list of results.
public void setCommandId(java.lang.String commandId)
(Optional) If provided, lists only the specified command.
commandId
- (Optional) If provided, lists only the specified command.public java.lang.String getCommandId()
(Optional) If provided, lists only the specified command.
public ListCommandsRequest withCommandId(java.lang.String commandId)
(Optional) If provided, lists only the specified command.
commandId
- (Optional) If provided, lists only the specified command.public void setInstanceId(java.lang.String instanceId)
(Optional) Lists commands issued against this instance ID.
instanceId
- (Optional) Lists commands issued against this instance ID.public java.lang.String getInstanceId()
(Optional) Lists commands issued against this instance ID.
public ListCommandsRequest withInstanceId(java.lang.String instanceId)
(Optional) Lists commands issued against this instance ID.
instanceId
- (Optional) Lists commands issued against this instance ID.public void setMaxResults(java.lang.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.
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.public java.lang.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.
public ListCommandsRequest withMaxResults(java.lang.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.
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.public void setNextToken(java.lang.String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- (Optional) The token for the next set of items to return. (You
received this token from a previous call.)public java.lang.String getNextToken()
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
public ListCommandsRequest withNextToken(java.lang.String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- (Optional) The token for the next set of items to return. (You
received this token from a previous call.)public java.util.List<CommandFilter> getFilters()
(Optional) One or more filters. Use a filter to return a more specific list of results.
public void setFilters(java.util.Collection<CommandFilter> filters)
(Optional) One or more filters. Use a filter to return a more specific list of results.
filters
- (Optional) One or more filters. Use a filter to return a more
specific list of results.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)
or
withFilters(java.util.Collection)
if you want to override the
existing values.
filters
- (Optional) One or more filters. Use a filter to return a more
specific list of results.public ListCommandsRequest withFilters(java.util.Collection<CommandFilter> filters)
(Optional) One or more filters. Use a filter to return a more specific list of results.
filters
- (Optional) One or more filters. Use a filter to return a more
specific list of results.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListCommandsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()