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

@param shadowProductionVariants
       A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with
       production traffic replicated from the production variant.
@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