public CreateTemplateRequest withRequiredFields(RequiredField... requiredFields) {
        if (this.requiredFields == null) {
            setRequiredFields(new java.util.ArrayList<RequiredField>(requiredFields.length));
        }
        for (RequiredField ele : requiredFields) {
            this.requiredFields.add(ele);
        }
        return this;
    }
<p>
A list of fields that must contain a value for a case to be successfully created with this template.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRequiredFields(java.util.Collection)} or {@link #withRequiredFields(java.util.Collection)} if you want
to override the existing values.
</p>

@param requiredFields
       A list of fields that must contain a value for a case to be successfully created with this template.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connectcases/src/main/java/com/amazonaws/services/connectcases/model/CreateTemplateRequest.java