public JobManifestSpec withFields(JobManifestFieldName... fields) {
        java.util.ArrayList<String> fieldsCopy = new java.util.ArrayList<String>(fields.length);
        for (JobManifestFieldName value : fields) {
            fieldsCopy.add(value.toString());
        }
        if (getFields() == null) {
            setFields(fieldsCopy);
        } else {
            getFields().addAll(fieldsCopy);
        }
        return this;
    }
<p>
If the specified manifest object is in the <code>S3BatchOperations_CSV_20180820</code> format, this element
describes which columns contain the required data.
</p>

@param fields
       If the specified manifest object is in the <code>S3BatchOperations_CSV_20180820</code> format, this
       element describes which columns contain the required data.
@return Returns a reference to this object so that method calls can be chained together.
@see JobManifestFieldName
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/JobManifestSpec.java