/** * <p> * A list of event destinations associated with the configuration set. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(java.util.Collection<EventDestination> eventDestinations) { setEventDestinations(eventDestinations); return this; }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventDestinations(java.util.Collection)} or {@link #withEventDestinations(java.util.Collection)} if * you want to override the existing values. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(EventDestination... eventDestinations) { if (this.eventDestinations == null) { setEventDestinations(new com.amazonaws.internal.SdkInternalList<EventDestination>(eventDestinations.length)); } for (EventDestination ele : eventDestinations) { this.eventDestinations.add(ele); } return this; }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param eventDestinations <p> * A list of event destinations associated with the configuration * set. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribeConfigurationSetResult withEventDestinations( java.util.Collection<EventDestination> eventDestinations) { setEventDestinations(eventDestinations); return this; }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(java.util.Collection<EventDestination> eventDestinations) { setEventDestinations(eventDestinations); return this; }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventDestinations(java.util.Collection)} or {@link #withEventDestinations(java.util.Collection)} if * you want to override the existing values. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(EventDestination... eventDestinations) { if (this.eventDestinations == null) { setEventDestinations(new com.amazonaws.internal.SdkInternalList<EventDestination>(eventDestinations.length)); } for (EventDestination ele : eventDestinations) { this.eventDestinations.add(ele); } return this; }