public CreateEndpointConfigRequest withShadowProductionVariants(ProductionVariant... shadowProductionVariants) {
        if (this.shadowProductionVariants == null) {
            setShadowProductionVariants(new java.util.ArrayList<ProductionVariant>(shadowProductionVariants.length));
        }
        for (ProductionVariant ele : shadowProductionVariants) {
            this.shadowProductionVariants.add(ele);
        }
        return this;
    }
<p>
An array of <code>ProductionVariant</code> objects, one for each model that you want to host at this endpoint in
shadow mode with production traffic replicated from the model specified on <code>ProductionVariants</code>. If
you use this field, you can only specify one variant for <code>ProductionVariants</code> and one variant for
<code>ShadowProductionVariants</code>.
</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
       An array of <code>ProductionVariant</code> objects, one for each model that you want to host at this
       endpoint in shadow mode with production traffic replicated from the model specified on
       <code>ProductionVariants</code>. If you use this field, you can only specify one variant for
       <code>ProductionVariants</code> and one variant for <code>ShadowProductionVariants</code>.
@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/CreateEndpointConfigRequest.java