Class DescribeLayersResult
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.DescribeLayersResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeLayersResult extends Object implements Serializable, Cloneable
Contains the response to a
DescribeLayers
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeLayersResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeLayersResult
clone()
boolean
equals(Object obj)
List<Layer>
getLayers()
An array ofLayer
objects that describe the layers.int
hashCode()
void
setLayers(Collection<Layer> layers)
An array ofLayer
objects that describe the layers.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeLayersResult
withLayers(Layer... layers)
An array ofLayer
objects that describe the layers.DescribeLayersResult
withLayers(Collection<Layer> layers)
An array ofLayer
objects that describe the layers.
-
-
-
Method Detail
-
getLayers
public List<Layer> getLayers()
An array of
Layer
objects that describe the layers.- Returns:
- An array of
Layer
objects that describe the layers.
-
setLayers
public void setLayers(Collection<Layer> layers)
An array of
Layer
objects that describe the layers.- Parameters:
layers
- An array ofLayer
objects that describe the layers.
-
withLayers
public DescribeLayersResult withLayers(Layer... layers)
An array of
Layer
objects that describe the layers.NOTE: This method appends the values to the existing list (if any). Use
setLayers(java.util.Collection)
orwithLayers(java.util.Collection)
if you want to override the existing values.- Parameters:
layers
- An array ofLayer
objects that describe the layers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLayers
public DescribeLayersResult withLayers(Collection<Layer> layers)
An array of
Layer
objects that describe the layers.- Parameters:
layers
- An array ofLayer
objects that describe the layers.- 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 DescribeLayersResult clone()
-
-