Class ListCommandsResult

java.lang.Object
com.amazonaws.services.simplesystemsmanagement.model.ListCommandsResult
All Implemented Interfaces:
Serializable, Cloneable

public class ListCommandsResult extends Object implements Serializable, Cloneable
See Also:
  • Constructor Details

    • ListCommandsResult

      public ListCommandsResult()
  • Method Details

    • getCommands

      public List<Command> getCommands()

      (Optional) The list of commands requested by the user.

      Returns:
      (Optional) The list of commands requested by the user.
    • setCommands

      public void setCommands(Collection<Command> commands)

      (Optional) The list of commands requested by the user.

      Parameters:
      commands - (Optional) The list of commands requested by the user.
    • withCommands

      public ListCommandsResult withCommands(Command... commands)

      (Optional) The list of commands requested by the user.

      NOTE: This method appends the values to the existing list (if any). Use setCommands(java.util.Collection) or withCommands(java.util.Collection) if you want to override the existing values.

      Parameters:
      commands - (Optional) The list of commands requested by the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withCommands

      public ListCommandsResult withCommands(Collection<Command> commands)

      (Optional) The list of commands requested by the user.

      Parameters:
      commands - (Optional) The list of commands requested by the user.
      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 ListCommandsResult 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.
    • 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 ListCommandsResult clone()
      Overrides:
      clone in class Object