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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeStacksResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeStacksResult
clone()
boolean
equals(Object obj)
List<Stack>
getStacks()
An array ofStack
objects that describe the stacks.int
hashCode()
void
setStacks(Collection<Stack> stacks)
An array ofStack
objects that describe the stacks.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeStacksResult
withStacks(Stack... stacks)
An array ofStack
objects that describe the stacks.DescribeStacksResult
withStacks(Collection<Stack> stacks)
An array ofStack
objects that describe the stacks.
-
-
-
Method Detail
-
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 ofStack
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)
orwithStacks(java.util.Collection)
if you want to override the existing values.- Parameters:
stacks
- An array ofStack
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 ofStack
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeStacksResult clone()
-
-