/** * <p> * A list of <code>Cluster</code> objects, where each object describes one cluster. * </p> * * @param clusters * A list of <code>Cluster</code> objects, where each object describes one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersResult withClusters(java.util.Collection<Cluster> clusters) { setClusters(clusters); return this; }
/** * <p> * A list of <code>Cluster</code> objects, where each object describes one cluster. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setClusters(java.util.Collection)} or {@link #withClusters(java.util.Collection)} if you want to override * the existing values. * </p> * * @param clusters * A list of <code>Cluster</code> objects, where each object describes one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersResult withClusters(Cluster... clusters) { if (this.clusters == null) { setClusters(new com.amazonaws.internal.SdkInternalList<Cluster>(clusters.length)); } for (Cluster ele : clusters) { this.clusters.add(ele); } return this; }
/** * <p> * A list of <code>Cluster</code> objects, where each object describes one cluster. * </p> * * @param clusters * A list of <code>Cluster</code> objects, where each object describes one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersResult withClusters(java.util.Collection<Cluster> clusters) { setClusters(clusters); return this; }
/** * <p> * A list of <code>Cluster</code> objects, where each object describes one cluster. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setClusters(java.util.Collection)} or {@link #withClusters(java.util.Collection)} if you want to override * the existing values. * </p> * * @param clusters * A list of <code>Cluster</code> objects, where each object describes one cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersResult withClusters(Cluster... clusters) { if (this.clusters == null) { setClusters(new com.amazonaws.internal.SdkInternalList<Cluster>(clusters.length)); } for (Cluster ele : clusters) { this.clusters.add(ele); } return this; }