public UpdateConnectionResult withConnectionState(ConnectionState connectionState) {
        this.connectionState = connectionState.toString();
        return this;
    }
<p>
The state of the connection that was updated.
</p>

@param connectionState
       The state of the connection that was updated.
@return Returns a reference to this object so that method calls can be chained together.
@see ConnectionState
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/UpdateConnectionResult.java