public Endpoint withProductionVariants(ProductionVariantSummary... productionVariants) {
        if (this.productionVariants == null) {
            setProductionVariants(new java.util.ArrayList<ProductionVariantSummary>(productionVariants.length));
        }
        for (ProductionVariantSummary ele : productionVariants) {
            this.productionVariants.add(ele);
        }
        return this;
    }
<p>
A list of the production variants hosted on the endpoint. Each production variant is a model.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setProductionVariants(java.util.Collection)} or {@link #withProductionVariants(java.util.Collection)} if
you want to override the existing values.
</p>

@param productionVariants
       A list of the production variants hosted on the endpoint. Each production variant is a model.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/Endpoint.java