public ReadPipelineResult withWarnings(Warning... warnings) {
        if (this.warnings == null) {
            setWarnings(new com.amazonaws.internal.SdkInternalList<Warning>(warnings.length));
        }
        for (Warning ele : warnings) {
            this.warnings.add(ele);
        }
        return this;
    }
<p>
Elastic Transcoder returns a warning if the resources used by your pipeline are not in the same region as the
pipeline.
</p>
<p>
Using resources in the same region, such as your Amazon S3 buckets, Amazon SNS notification topics, and AWS KMS
key, reduces processing time and prevents cross-regional charges.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override
the existing values.
</p>

@param warnings
       Elastic Transcoder returns a warning if the resources used by your pipeline are not in the same region as
       the pipeline.</p>
       <p>
       Using resources in the same region, such as your Amazon S3 buckets, Amazon SNS notification topics, and
       AWS KMS key, reduces processing time and prevents cross-regional charges.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/ReadPipelineResult.java