public UpdateAssessmentRequest withRoles(Role... roles) {
        if (this.roles == null) {
            setRoles(new java.util.ArrayList<Role>(roles.length));
        }
        for (Role ele : roles) {
            this.roles.add(ele);
        }
        return this;
    }
<p>
The list of roles for the assessment.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRoles(java.util.Collection)} or {@link #withRoles(java.util.Collection)} if you want to override the
existing values.
</p>

@param roles
       The list of roles for the assessment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-auditmanager/src/main/java/com/amazonaws/services/auditmanager/model/UpdateAssessmentRequest.java