Package org.jclouds.glesys.domain
Class ServerUptime
- java.lang.Object
-
- org.jclouds.glesys.domain.ServerUptime
-
public class ServerUptime extends Object
Represents an 'uptime' duration of server in a Glesys cloud- See Also:
ServerStatus
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerUptime.Builder<T extends ServerUptime.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerUptime(long current, String unit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerUptime.Builder<?>
builder()
boolean
equals(Object obj)
long
getCurrent()
String
getUnit()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
ServerUptime.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
ServerUptime
@ConstructorProperties({"current","unit"}) protected ServerUptime(long current, String unit)
-
-
Method Detail
-
builder
public static ServerUptime.Builder<?> builder()
-
toBuilder
public ServerUptime.Builder<?> toBuilder()
-
getCurrent
public long getCurrent()
- Returns:
- the time the server has been up in #getUnit()
-
getUnit
public String getUnit()
- Returns:
- the unit used for #getCurrent()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-