public ListDeploymentsResult withDeployments(java.util.Collection<DeploymentSummary> deployments) {
        setDeployments(deployments);
        return this;
    }
<p>
The list of deployments that is returned.
</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