public PendingDeploymentSummary withShadowProductionVariants(PendingProductionVariantSummary... shadowProductionVariants) {
        if (this.shadowProductionVariants == null) {
            setShadowProductionVariants(new java.util.ArrayList<PendingProductionVariantSummary>(shadowProductionVariants.length));
        }
        for (PendingProductionVariantSummary ele : shadowProductionVariants) {
            this.shadowProductionVariants.add(ele);
        }
        return this;
    }
<p>
An array of <a
href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_PendingProductionVariantSummary.html"
>PendingProductionVariantSummary</a> objects, one for each model hosted behind this endpoint in shadow mode with
production traffic replicated from the model specified on <code>ProductionVariants</code> for the in-progress
deployment.
</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 <a href=
       "https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_PendingProductionVariantSummary.html"
       >PendingProductionVariantSummary</a> objects, one for each model hosted behind this endpoint in shadow
       mode with production traffic replicated from the model specified on <code>ProductionVariants</code> for
       the in-progress deployment.
@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/PendingDeploymentSummary.java