/** * <p> * The suspended processes associated with the group. * </p> * * @param suspendedProcesses * The suspended processes associated with the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingGroup withSuspendedProcesses(java.util.Collection<SuspendedProcess> suspendedProcesses) { setSuspendedProcesses(suspendedProcesses); return this; }
/** * <p> * The suspended processes associated with the group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSuspendedProcesses(java.util.Collection)} or {@link #withSuspendedProcesses(java.util.Collection)} if * you want to override the existing values. * </p> * * @param suspendedProcesses * The suspended processes associated with the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingGroup withSuspendedProcesses(SuspendedProcess... suspendedProcesses) { if (this.suspendedProcesses == null) { setSuspendedProcesses(new com.amazonaws.internal.SdkInternalList<SuspendedProcess>(suspendedProcesses.length)); } for (SuspendedProcess ele : suspendedProcesses) { this.suspendedProcesses.add(ele); } return this; }
/** * <p> * The suspended processes associated with the group. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param suspendedProcesses <p> * The suspended processes associated with the group. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AutoScalingGroup withSuspendedProcesses( java.util.Collection<SuspendedProcess> suspendedProcesses) { setSuspendedProcesses(suspendedProcesses); return this; }