public Task withSourceFields(String... sourceFields) {
        if (this.sourceFields == null) {
            setSourceFields(new java.util.ArrayList<String>(sourceFields.length));
        }
        for (String ele : sourceFields) {
            this.sourceFields.add(ele);
        }
        return this;
    }
<p>
The source fields to which a particular task is applied.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSourceFields(java.util.Collection)} or {@link #withSourceFields(java.util.Collection)} if you want to
override the existing values.
</p>

@param sourceFields
       The source fields to which a particular task is applied.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-customerprofiles/src/main/java/com/amazonaws/services/customerprofiles/model/Task.java