/** * <p> * A list of clusters. Each item in the list contains detailed information about one cluster. * </p> * * @param cacheClusters * A list of clusters. Each item in the list contains detailed information about one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheClustersResult withCacheClusters(java.util.Collection<CacheCluster> cacheClusters) { setCacheClusters(cacheClusters); return this; }
/** * <p> * A list of clusters. Each item in the list contains detailed information about one cluster. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCacheClusters(java.util.Collection)} or {@link #withCacheClusters(java.util.Collection)} if you want * to override the existing values. * </p> * * @param cacheClusters * A list of clusters. Each item in the list contains detailed information about one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheClustersResult withCacheClusters(CacheCluster... cacheClusters) { if (this.cacheClusters == null) { setCacheClusters(new com.amazonaws.internal.SdkInternalList<CacheCluster>(cacheClusters.length)); } for (CacheCluster ele : cacheClusters) { this.cacheClusters.add(ele); } return this; }
/** * <p> * A list of clusters. Each item in the list contains detailed information about one cluster. * </p> * * @param cacheClusters * A list of clusters. Each item in the list contains detailed information about one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheClustersResult withCacheClusters(java.util.Collection<CacheCluster> cacheClusters) { setCacheClusters(cacheClusters); return this; }
/** * <p> * A list of clusters. Each item in the list contains detailed information about one cluster. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCacheClusters(java.util.Collection)} or {@link #withCacheClusters(java.util.Collection)} if you want * to override the existing values. * </p> * * @param cacheClusters * A list of clusters. Each item in the list contains detailed information about one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheClustersResult withCacheClusters(CacheCluster... cacheClusters) { if (this.cacheClusters == null) { setCacheClusters(new com.amazonaws.internal.SdkInternalList<CacheCluster>(cacheClusters.length)); } for (CacheCluster ele : cacheClusters) { this.cacheClusters.add(ele); } return this; }