/** * <p> * The user-defined attributes that are assigned to every generated finding. * </p> * * @param userAttributesForFindings * The user-defined attributes that are assigned to every generated finding. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRun withUserAttributesForFindings(java.util.Collection<Attribute> userAttributesForFindings) { setUserAttributesForFindings(userAttributesForFindings); return this; }
/** * <p> * The user-defined attributes that are assigned to every generated finding. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setUserAttributesForFindings(java.util.Collection)} or * {@link #withUserAttributesForFindings(java.util.Collection)} if you want to override the existing values. * </p> * * @param userAttributesForFindings * The user-defined attributes that are assigned to every generated finding. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRun withUserAttributesForFindings(Attribute... userAttributesForFindings) { if (this.userAttributesForFindings == null) { setUserAttributesForFindings(new java.util.ArrayList<Attribute>(userAttributesForFindings.length)); } for (Attribute ele : userAttributesForFindings) { this.userAttributesForFindings.add(ele); } return this; }
assessmentRun.setUserAttributesForFindings(new ListUnmarshaller<Attribute>(AttributeJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * The user-defined attributes that are assigned to every generated finding. * </p> * * @param userAttributesForFindings * The user-defined attributes that are assigned to every generated finding. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRun withUserAttributesForFindings(java.util.Collection<Attribute> userAttributesForFindings) { setUserAttributesForFindings(userAttributesForFindings); return this; }
/** * <p> * The user-defined attributes that are assigned to every generated finding. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setUserAttributesForFindings(java.util.Collection)} or * {@link #withUserAttributesForFindings(java.util.Collection)} if you want to override the existing values. * </p> * * @param userAttributesForFindings * The user-defined attributes that are assigned to every generated finding. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentRun withUserAttributesForFindings(Attribute... userAttributesForFindings) { if (this.userAttributesForFindings == null) { setUserAttributesForFindings(new java.util.ArrayList<Attribute>(userAttributesForFindings.length)); } for (Attribute ele : userAttributesForFindings) { this.userAttributesForFindings.add(ele); } return this; }
assessmentRun.setUserAttributesForFindings(new ListUnmarshaller<Attribute>(AttributeJsonUnmarshaller.getInstance()).unmarshall(context));