public class DcCoordinates extends Object
| Constructor and Description |
|---|
DcCoordinates()
Default constructor
|
DcCoordinates(JsonObject coords)
Constructor from JSON
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDatacenter()
Get datacenter
|
List<Coordinate> |
getServers()
Get list of servers in datacenter
|
DcCoordinates |
setDatacenter(String dc)
Set datacenter
|
DcCoordinates |
setServers(List<Coordinate> servers)
Set list of servers in datacenter
|
JsonObject |
toJson()
Convert to JSON
|
public DcCoordinates()
public DcCoordinates(JsonObject coords)
coords - the JSONpublic JsonObject toJson()
public String getDatacenter()
public List<Coordinate> getServers()
public DcCoordinates setDatacenter(String dc)
dc - the datacenterpublic DcCoordinates setServers(List<Coordinate> servers)
servers - list of servers in datacenterCopyright © 2023 Eclipse. All rights reserved.