public class CheckList extends Object
Constructor and Description |
---|
CheckList()
Default constructor
|
CheckList(CheckList other)
Copy constructor
|
CheckList(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getIndex()
Get Consul index
|
List<Check> |
getList()
Get list of checks
|
int |
hashCode() |
CheckList |
setIndex(long index)
Set Consul index, a unique identifier representing the current state of the requested list of checks
|
CheckList |
setList(List<Check> list)
Set list of checks
|
JsonObject |
toJson()
Convert to JSON
|
public CheckList()
public CheckList(CheckList other)
other
- the one to copypublic CheckList(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getIndex()
public CheckList setIndex(long index)
index
- the consul indexpublic CheckList setList(List<Check> list)
list
- the list of checksCopyright © 2023 Eclipse. All rights reserved.