/** * <p> * The list of values of the Parameter * </p> * * @param values * The list of values of the Parameter * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyParameter withValues(java.util.Collection<String> values) { setValues(values); return this; }
/** * <p> * The list of values of the Parameter * </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 list of values of the Parameter * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyParameter withValues(String... values) { if (this.values == null) { setValues(new java.util.ArrayList<String>(values.length)); } for (String ele : values) { this.values.add(ele); } return this; }
policyParameter.setValues(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));