/** * <p> * The category of an Amazon Redshift event. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(java.util.Collection<String> eventCategories) { setEventCategories(eventCategories); return this; }
/** * <p> * The category of an Amazon Redshift event. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventCategories(java.util.Collection)} or {@link #withEventCategories(java.util.Collection)} if you * want to override the existing values. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(String... eventCategories) { if (this.eventCategories == null) { setEventCategories(new com.amazonaws.internal.SdkInternalList<String>(eventCategories.length)); } for (String ele : eventCategories) { this.eventCategories.add(ele); } return this; }
/** * <p> * The category of an Amazon Redshift event. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(java.util.Collection<String> eventCategories) { setEventCategories(eventCategories); return this; }
/** * <p> * The category of an Amazon Redshift event. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventCategories(java.util.Collection)} or {@link #withEventCategories(java.util.Collection)} if you * want to override the existing values. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(String... eventCategories) { if (this.eventCategories == null) { setEventCategories(new com.amazonaws.internal.SdkInternalList<String>(eventCategories.length)); } for (String ele : eventCategories) { this.eventCategories.add(ele); } return this; }