public WorkspaceConnectionStatus withConnectionState(ConnectionState connectionState) {
        this.connectionState = connectionState.toString();
        return this;
    }
<p>
The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped.
</p>

@param connectionState
       The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped.
@return Returns a reference to this object so that method calls can be chained together.
@see ConnectionState
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/WorkspaceConnectionStatus.java