/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(java.util.Collection<String> states) { setStates(states); return this; }
/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setStates(java.util.Collection)} or {@link #withStates(java.util.Collection)} if you want to override the * existing values. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(String... states) { if (this.states == null) { setStates(new java.util.ArrayList<String>(states.length)); } for (String ele : states) { this.states.add(ele); } return this; }
/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(AssessmentRunState... states) { java.util.ArrayList<String> statesCopy = new java.util.ArrayList<String>(states.length); for (AssessmentRunState value : states) { statesCopy.add(value.toString()); } if (getStates() == null) { setStates(statesCopy); } else { getStates().addAll(statesCopy); } return this; }
assessmentRunFilter.setStates(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(java.util.Collection<String> states) { setStates(states); return this; }
/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setStates(java.util.Collection)} or {@link #withStates(java.util.Collection)} if you want to override the * existing values. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(String... states) { if (this.states == null) { setStates(new java.util.ArrayList<String>(states.length)); } for (String ele : states) { this.states.add(ele); } return this; }
/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(AssessmentRunState... states) { java.util.ArrayList<String> statesCopy = new java.util.ArrayList<String>(states.length); for (AssessmentRunState value : states) { statesCopy.add(value.toString()); } if (getStates() == null) { setStates(statesCopy); } else { getStates().addAll(statesCopy); } return this; }
assessmentRunFilter.setStates(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));