Package com.amazonaws.services.ecs.model
Class DescribeClustersResult
- java.lang.Object
-
- com.amazonaws.services.ecs.model.DescribeClustersResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeClustersResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeClustersResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeClustersResult
clone()
boolean
equals(Object obj)
List<Cluster>
getClusters()
The list of clusters.List<Failure>
getFailures()
Any failures associated with the call.int
hashCode()
void
setClusters(Collection<Cluster> clusters)
The list of clusters.void
setFailures(Collection<Failure> failures)
Any failures associated with the call.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeClustersResult
withClusters(Cluster... clusters)
The list of clusters.DescribeClustersResult
withClusters(Collection<Cluster> clusters)
The list of clusters.DescribeClustersResult
withFailures(Failure... failures)
Any failures associated with the call.DescribeClustersResult
withFailures(Collection<Failure> failures)
Any failures associated with the call.
-
-
-
Method Detail
-
setClusters
public void setClusters(Collection<Cluster> clusters)
The list of clusters.
- Parameters:
clusters
- The list of clusters.
-
withClusters
public DescribeClustersResult withClusters(Cluster... clusters)
The list of clusters.
NOTE: This method appends the values to the existing list (if any). Use
setClusters(java.util.Collection)
orwithClusters(java.util.Collection)
if you want to override the existing values.- Parameters:
clusters
- The list of clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withClusters
public DescribeClustersResult withClusters(Collection<Cluster> clusters)
The list of clusters.
- Parameters:
clusters
- The list of clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFailures
public List<Failure> getFailures()
Any failures associated with the call.
- Returns:
- Any failures associated with the call.
-
setFailures
public void setFailures(Collection<Failure> failures)
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.
-
withFailures
public DescribeClustersResult withFailures(Failure... failures)
Any failures associated with the call.
NOTE: This method appends the values to the existing list (if any). Use
setFailures(java.util.Collection)
orwithFailures(java.util.Collection)
if you want to override the existing values.- Parameters:
failures
- Any failures associated with the call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withFailures
public DescribeClustersResult withFailures(Collection<Failure> failures)
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.- 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 DescribeClustersResult clone()
-
-