public ThingConnectivity withConnected(Boolean connected) {
        setConnected(connected);
        return this;
    }
<p>
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
</p>

@param connected
       True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ThingConnectivity.java