Class DescribeDeploymentsResult

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

public class DescribeDeploymentsResult extends Object implements Serializable, Cloneable

Contains the response to a DescribeDeployments request.

See Also:
  • Constructor Details

    • DescribeDeploymentsResult

      public DescribeDeploymentsResult()
  • Method Details

    • getDeployments

      public List<Deployment> getDeployments()

      An array of Deployment objects that describe the deployments.

      Returns:
      An array of Deployment objects that describe the deployments.
    • setDeployments

      public void setDeployments(Collection<Deployment> deployments)

      An array of Deployment objects that describe the deployments.

      Parameters:
      deployments - An array of Deployment objects that describe the deployments.
    • withDeployments

      public DescribeDeploymentsResult withDeployments(Deployment... deployments)

      An array of Deployment objects that describe the deployments.

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

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

      public DescribeDeploymentsResult withDeployments(Collection<Deployment> deployments)

      An array of Deployment objects that describe the deployments.

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