public ListOriginEndpointsResult withOriginEndpoints(OriginEndpoint... originEndpoints) {
        if (this.originEndpoints == null) {
            setOriginEndpoints(new java.util.ArrayList<OriginEndpoint>(originEndpoints.length));
        }
        for (OriginEndpoint ele : originEndpoints) {
            this.originEndpoints.add(ele);
        }
        return this;
    }
A list of OriginEndpoint records.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOriginEndpoints(java.util.Collection)} or {@link #withOriginEndpoints(java.util.Collection)} if you
want to override the existing values.
</p>

@param originEndpoints
       A list of OriginEndpoint records.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediapackage/src/main/java/com/amazonaws/services/mediapackage/model/ListOriginEndpointsResult.java