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:
  • Constructor Details

    • DescribeLayersResult

      public DescribeLayersResult()
  • Method Details

    • 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 of Layer 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) or withLayers(java.util.Collection) if you want to override the existing values.

      Parameters:
      layers - An array of Layer 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 of Layer 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 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 DescribeLayersResult clone()
      Overrides:
      clone in class Object