vertx / io.vertx.kotlin.ext.consul / keyValueOf

# keyValueOf

`fun keyValueOf(createIndex: Long? = null, flags: Long? = null, key: String? = null, lockIndex: Long? = null, modifyIndex: Long? = null, session: String? = null, value: String? = null): KeyValue`

A function providing a DSL for building io.vertx.ext.consul.KeyValue objects.

Represents key/value pair stored in Consul

### Parameters

`createIndex` - Set the internal index value that represents when the entry was created.

`flags` - Set the flags attached to this entry. Clients can choose to use this however makes sense for their application.

`key` - Set the key

`lockIndex` - Set the number of times this key has successfully been acquired in a lock.

`modifyIndex` - Set the last index that modified this key.

`session` - Set the session that owns the lock

`value` - Set the value