public class DescribeCacheClustersResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a DescribeCacheClusters action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<CacheCluster> |
cacheClusters
A list of cache clusters.
|
private java.lang.String |
marker
Provides an identifier to allow retrieval of paginated results.
|
Constructor and Description |
---|
DescribeCacheClustersResult() |
Modifier and Type | Method and Description |
---|---|
DescribeCacheClustersResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<CacheCluster> |
getCacheClusters()
A list of cache clusters.
|
java.lang.String |
getMarker()
Provides an identifier to allow retrieval of paginated results.
|
int |
hashCode() |
void |
setCacheClusters(java.util.Collection<CacheCluster> cacheClusters)
A list of cache clusters.
|
void |
setMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeCacheClustersResult |
withCacheClusters(CacheCluster... cacheClusters)
A list of cache clusters.
|
DescribeCacheClustersResult |
withCacheClusters(java.util.Collection<CacheCluster> cacheClusters)
A list of cache clusters.
|
DescribeCacheClustersResult |
withMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
|
private java.lang.String marker
Provides an identifier to allow retrieval of paginated results.
private SdkInternalList<CacheCluster> cacheClusters
A list of cache clusters. Each item in the list contains detailed information about one cache cluster.
public void setMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
marker
- Provides an identifier to allow retrieval of paginated results.public java.lang.String getMarker()
Provides an identifier to allow retrieval of paginated results.
public DescribeCacheClustersResult withMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
marker
- Provides an identifier to allow retrieval of paginated results.public java.util.List<CacheCluster> getCacheClusters()
A list of cache clusters. Each item in the list contains detailed information about one cache cluster.
public void setCacheClusters(java.util.Collection<CacheCluster> cacheClusters)
A list of cache clusters. Each item in the list contains detailed information about one cache cluster.
cacheClusters
- A list of cache clusters. Each item in the list contains detailed
information about one cache cluster.public DescribeCacheClustersResult withCacheClusters(CacheCluster... cacheClusters)
A list of cache clusters. Each item in the list contains detailed information about one cache cluster.
NOTE: This method appends the values to the existing list (if
any). Use setCacheClusters(java.util.Collection)
or
withCacheClusters(java.util.Collection)
if you want to override
the existing values.
cacheClusters
- A list of cache clusters. Each item in the list contains detailed
information about one cache cluster.public DescribeCacheClustersResult withCacheClusters(java.util.Collection<CacheCluster> cacheClusters)
A list of cache clusters. Each item in the list contains detailed information about one cache cluster.
cacheClusters
- A list of cache clusters. Each item in the list contains detailed
information about one cache cluster.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 DescribeCacheClustersResult clone()
clone
in class java.lang.Object