/** * <p> * Contains a list of DB clusters for the user. * </p> * * @param dBClusters * Contains a list of DB clusters for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDBClustersResult withDBClusters(java.util.Collection<DBCluster> dBClusters) { setDBClusters(dBClusters); return this; }
/** * <p> * Contains a list of DB clusters for the user. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDBClusters(java.util.Collection)} or {@link #withDBClusters(java.util.Collection)} if you want to * override the existing values. * </p> * * @param dBClusters * Contains a list of DB clusters for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDBClustersResult withDBClusters(DBCluster... dBClusters) { if (this.dBClusters == null) { setDBClusters(new com.amazonaws.internal.SdkInternalList<DBCluster>(dBClusters.length)); } for (DBCluster ele : dBClusters) { this.dBClusters.add(ele); } return this; }
/** * <p> * Contains a list of DB clusters for the user. * </p> * * @param dBClusters * Contains a list of DB clusters for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDBClustersResult withDBClusters(java.util.Collection<DBCluster> dBClusters) { setDBClusters(dBClusters); return this; }
/** * <p> * Contains a list of DB clusters for the user. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDBClusters(java.util.Collection)} or {@link #withDBClusters(java.util.Collection)} if you want to * override the existing values. * </p> * * @param dBClusters * Contains a list of DB clusters for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDBClustersResult withDBClusters(DBCluster... dBClusters) { if (this.dBClusters == null) { setDBClusters(new com.amazonaws.internal.SdkInternalList<DBCluster>(dBClusters.length)); } for (DBCluster ele : dBClusters) { this.dBClusters.add(ele); } return this; }