public class DescribeLayersResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a DescribeLayers
request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Layer> |
layers
An array of
Layer objects that describe the layers. |
Constructor and Description |
---|
DescribeLayersResult() |
Modifier and Type | Method and Description |
---|---|
DescribeLayersResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Layer> |
getLayers()
An array of
Layer objects that describe the layers. |
int |
hashCode() |
void |
setLayers(java.util.Collection<Layer> layers)
An array of
Layer objects that describe the layers. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeLayersResult |
withLayers(java.util.Collection<Layer> layers)
An array of
Layer objects that describe the layers. |
DescribeLayersResult |
withLayers(Layer... layers)
An array of
Layer objects that describe the layers. |
private SdkInternalList<Layer> layers
An array of Layer
objects that describe the layers.
public java.util.List<Layer> getLayers()
An array of Layer
objects that describe the layers.
Layer
objects that describe the layers.public void setLayers(java.util.Collection<Layer> layers)
An array of Layer
objects that describe the layers.
layers
- An array of Layer
objects that describe the layers.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)
or
withLayers(java.util.Collection)
if you want to override the
existing values.
layers
- An array of Layer
objects that describe the layers.public DescribeLayersResult withLayers(java.util.Collection<Layer> layers)
An array of Layer
objects that describe the layers.
layers
- An array of Layer
objects that describe the layers.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeLayersResult clone()
clone
in class java.lang.Object