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:
  • Constructor Details

    • ListCommandsRequest

      public ListCommandsRequest()
  • Method Details

    • 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) or withFilters(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: