public class Server extends Entity
Modifier and Type | Class and Description |
---|---|
static class |
Server.Builder
Builder to make server construction easier.
|
Modifier and Type | Field and Description |
---|---|
static EntityType |
TYPE
The type of the entity.
|
Constructor and Description |
---|
Server()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static Server.Builder |
builder()
Returns a builder for the server.
|
long |
getAccountId()
Returns the id of the account for the server.
|
String |
getHealthStatus()
Returns the health status of the server.
|
String |
getHost()
Returns the name of the host.
|
Date |
getLastReportedAt()
Returns the date the server last reported.
|
ServerLinks |
getLinks()
Returns the links of the server.
|
boolean |
getReporting()
Returns
true if the server is reporting. |
ServerSummary |
getSummary()
Returns the summary of the server.
|
void |
setHealthStatus(String healthStatus)
Sets the health status of the server.
|
void |
setHost(String host)
Sets the name of the host.
|
void |
setReporting(boolean reporting)
Set to
true if the server is reporting. |
String |
toString()
Returns a string representation of the object.
|
getName, setName
getId, setId
public static final EntityType TYPE
public long getAccountId()
public void setHost(String host)
host
- The name of the hostpublic String getHost()
public void setHealthStatus(String healthStatus)
healthStatus
- The health status of the serverpublic String getHealthStatus()
public void setReporting(boolean reporting)
true
if the server is reporting.reporting
- true
if the server is reportingpublic boolean getReporting()
true
if the server is reporting.true
if the server is reportingpublic Date getLastReportedAt()
public ServerSummary getSummary()
public ServerLinks getLinks()
public String toString()
public static Server.Builder builder()
Copyright © 2018. All rights reserved.