public UpdateMediaInsightsPipelineConfigurationRequest withElements(MediaInsightsPipelineConfigurationElement... elements) {
        if (this.elements == null) {
            setElements(new java.util.ArrayList<MediaInsightsPipelineConfigurationElement>(elements.length));
        }
        for (MediaInsightsPipelineConfigurationElement ele : elements) {
            this.elements.add(ele);
        }
        return this;
    }
<p>
The elements in the request, such as a processor for Amazon Transcribe or a sink for a Kinesis Data Stream..
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setElements(java.util.Collection)} or {@link #withElements(java.util.Collection)} if you want to override
the existing values.
</p>

@param elements
       The elements in the request, such as a processor for Amazon Transcribe or a sink for a Kinesis Data
       Stream..
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-chimesdkmediapipelines/src/main/java/com/amazonaws/services/chimesdkmediapipelines/model/UpdateMediaInsightsPipelineConfigurationRequest.java