public Workload withProfiles(WorkloadProfile... profiles) {
        if (this.profiles == null) {
            setProfiles(new java.util.ArrayList<WorkloadProfile>(profiles.length));
        }
        for (WorkloadProfile ele : profiles) {
            this.profiles.add(ele);
        }
        return this;
    }
<p>
Profile associated with a workload.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setProfiles(java.util.Collection)} or {@link #withProfiles(java.util.Collection)} if you want to override
the existing values.
</p>

@param profiles
       Profile associated with a workload.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-wellarchitected/src/main/java/com/amazonaws/services/wellarchitected/model/Workload.java