/** * <p> * Any scheduled events associated with the instance. * </p> * * @param events * Any scheduled events associated with the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceStatus withEvents(java.util.Collection<InstanceStatusEvent> events) { setEvents(events); return this; }
/** * <p> * Any scheduled events associated with the instance. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEvents(java.util.Collection)} or {@link #withEvents(java.util.Collection)} if you want to override the * existing values. * </p> * * @param events * Any scheduled events associated with the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceStatus withEvents(InstanceStatusEvent... events) { if (this.events == null) { setEvents(new com.amazonaws.internal.SdkInternalList<InstanceStatusEvent>(events.length)); } for (InstanceStatusEvent ele : events) { this.events.add(ele); } return this; }
/** * Any scheduled events associated with the instance. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param events Any scheduled events associated with the instance. * * @return A reference to this updated object so that method calls can be chained * together. */ public InstanceStatus withEvents(InstanceStatusEvent... events) { if (getEvents() == null) setEvents(new java.util.ArrayList<InstanceStatusEvent>(events.length)); for (InstanceStatusEvent value : events) { getEvents().add(value); } return this; }
/** * <p> * Any scheduled events associated with the instance. * </p> * * @param events * Any scheduled events associated with the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceStatus withEvents(java.util.Collection<InstanceStatusEvent> events) { setEvents(events); return this; }
/** * <p> * Any scheduled events associated with the instance. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEvents(java.util.Collection)} or {@link #withEvents(java.util.Collection)} if you want to override the * existing values. * </p> * * @param events * Any scheduled events associated with the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceStatus withEvents(InstanceStatusEvent... events) { if (this.events == null) { setEvents(new com.amazonaws.internal.SdkInternalList<InstanceStatusEvent>(events.length)); } for (InstanceStatusEvent ele : events) { this.events.add(ele); } return this; }