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