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