public void setDeployments(java.util.Collection<Deployment> deployments) {
        if (deployments == null) {
            this.deployments = null;
            return;
        }

        this.deployments = new com.amazonaws.internal.SdkInternalList<Deployment>(deployments);
    }
<p>
The current state of deployments for the service.
</p>

@param deployments
       The current state of deployments for the service.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Service.java