public Task withConnectivity(String connectivity) {
        setConnectivity(connectivity);
        return this;
    }
<p>
The connectivity status of a task.
</p>

@param connectivity
       The connectivity status of a task.
@return Returns a reference to this object so that method calls can be chained together.
@see Connectivity
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Task.java