public ListDeploymentsResult withDeployments(DeploymentSummary... deployments) {
        if (this.deployments == null) {
            setDeployments(new java.util.ArrayList<DeploymentSummary>(deployments.length));
        }
        for (DeploymentSummary ele : deployments) {
            this.deployments.add(ele);
        }
        return this;
    }
<p>
The list of deployments that is returned.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDeployments(java.util.Collection)} or {@link #withDeployments(java.util.Collection)} if you want to
override the existing values.
</p>

@param deployments
       The list of deployments that is returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mainframemodernization/src/main/java/com/amazonaws/services/mainframemodernization/model/ListDeploymentsResult.java