public NodeConfiguration withStateDB(StateDBType stateDB) {
        this.stateDB = stateDB.toString();
        return this;
    }
<p>
The state database that the node uses. Values are <code>LevelDB</code> or <code>CouchDB</code>. When using an
Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
<code>CouchDB</code>.
</p>
<p>
Applies only to Hyperledger Fabric.
</p>

@param stateDB
       The state database that the node uses. Values are <code>LevelDB</code> or <code>CouchDB</code>. When using
       an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
       <code>CouchDB</code>.</p>
       <p>
       Applies only to Hyperledger Fabric.
@return Returns a reference to this object so that method calls can be chained together.
@see StateDBType
aws-java-sdk-managedblockchain/src/main/java/com/amazonaws/services/managedblockchain/model/NodeConfiguration.java