Class DescribeStacksResult

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

public class DescribeStacksResult extends Object implements Serializable, Cloneable

Contains the response to a DescribeStacks request.

See Also:
  • Constructor Details

    • DescribeStacksResult

      public DescribeStacksResult()
  • Method Details

    • getStacks

      public List<Stack> getStacks()

      An array of Stack objects that describe the stacks.

      Returns:
      An array of Stack objects that describe the stacks.
    • setStacks

      public void setStacks(Collection<Stack> stacks)

      An array of Stack objects that describe the stacks.

      Parameters:
      stacks - An array of Stack objects that describe the stacks.
    • withStacks

      public DescribeStacksResult withStacks(Stack... stacks)

      An array of Stack objects that describe the stacks.

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

      Parameters:
      stacks - An array of Stack objects that describe the stacks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withStacks

      public DescribeStacksResult withStacks(Collection<Stack> stacks)

      An array of Stack objects that describe the stacks.

      Parameters:
      stacks - An array of Stack objects that describe the stacks.
      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 DescribeStacksResult clone()
      Overrides:
      clone in class Object