Class DescribeCommandsResult

java.lang.Object
com.amazonaws.services.opsworks.model.DescribeCommandsResult
All Implemented Interfaces:
Serializable, Cloneable

public class DescribeCommandsResult extends Object implements Serializable, Cloneable

Contains the response to a DescribeCommands request.

See Also:
  • Constructor Details

    • DescribeCommandsResult

      public DescribeCommandsResult()
  • Method Details

    • getCommands

      public List<Command> getCommands()

      An array of Command objects that describe each of the specified commands.

      Returns:
      An array of Command objects that describe each of the specified commands.
    • setCommands

      public void setCommands(Collection<Command> commands)

      An array of Command objects that describe each of the specified commands.

      Parameters:
      commands - An array of Command objects that describe each of the specified commands.
    • withCommands

      public DescribeCommandsResult withCommands(Command... commands)

      An array of Command objects that describe each of the specified commands.

      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 - An array of Command objects that describe each of the specified commands.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withCommands

      public DescribeCommandsResult withCommands(Collection<Command> commands)

      An array of Command objects that describe each of the specified commands.

      Parameters:
      commands - An array of Command objects that describe each of the specified commands.
      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 DescribeCommandsResult clone()
      Overrides:
      clone in class Object