public PendingDeploymentSummary withProductionVariants(PendingProductionVariantSummary... productionVariants) {
        if (this.productionVariants == null) {
            setProductionVariants(new java.util.ArrayList<PendingProductionVariantSummary>(productionVariants.length));
        }
        for (PendingProductionVariantSummary ele : productionVariants) {
            this.productionVariants.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 for the in-progress
deployment.
</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
       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 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