/** * <p> * A list of the sources that publish events to the Amazon Redshift event notification subscription. * </p> * * @param sourceIdsList * A list of the sources that publish events to the Amazon Redshift event notification subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public EventSubscription withSourceIdsList(java.util.Collection<String> sourceIdsList) { setSourceIdsList(sourceIdsList); return this; }
/** * <p> * A list of the sources that publish events to the Amazon Redshift event notification subscription. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSourceIdsList(java.util.Collection)} or {@link #withSourceIdsList(java.util.Collection)} if you want * to override the existing values. * </p> * * @param sourceIdsList * A list of the sources that publish events to the Amazon Redshift event notification subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public EventSubscription withSourceIdsList(String... sourceIdsList) { if (this.sourceIdsList == null) { setSourceIdsList(new com.amazonaws.internal.SdkInternalList<String>(sourceIdsList.length)); } for (String ele : sourceIdsList) { this.sourceIdsList.add(ele); } return this; }
/** * <p> * A list of the sources that publish events to the Amazon Redshift event notification subscription. * </p> * * @param sourceIdsList * A list of the sources that publish events to the Amazon Redshift event notification subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public EventSubscription withSourceIdsList(java.util.Collection<String> sourceIdsList) { setSourceIdsList(sourceIdsList); return this; }
/** * <p> * A list of the sources that publish events to the Amazon Redshift event notification subscription. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSourceIdsList(java.util.Collection)} or {@link #withSourceIdsList(java.util.Collection)} if you want * to override the existing values. * </p> * * @param sourceIdsList * A list of the sources that publish events to the Amazon Redshift event notification subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public EventSubscription withSourceIdsList(String... sourceIdsList) { if (this.sourceIdsList == null) { setSourceIdsList(new com.amazonaws.internal.SdkInternalList<String>(sourceIdsList.length)); } for (String ele : sourceIdsList) { this.sourceIdsList.add(ele); } return this; }