public class KeyValueList extends Object
Constructor and Description |
---|
KeyValueList()
Default constructor
|
KeyValueList(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
long |
getIndex()
Get Consul index
|
List<KeyValue> |
getList()
Get list of key/value pairs
|
KeyValueList |
setIndex(long index)
Set Consul index
|
KeyValueList |
setList(List<KeyValue> list)
Set list of key/value pairs
|
JsonObject |
toJson()
Convert to JSON
|
public KeyValueList()
public KeyValueList(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getIndex()
public KeyValueList setIndex(long index)
index
- the consul indexpublic List<KeyValue> getList()
public KeyValueList setList(List<KeyValue> list)
list
- list of key/value pairsCopyright © 2017. All rights reserved.