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 classServerUptime.Builder<T extends ServerUptime.Builder<T>> 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedServerUptime(long current, String unit) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerUptime.Builder<?>builder()booleanequals(Object obj)longgetCurrent()StringgetUnit()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()ServerUptime.Builder<?>toBuilder()StringtoString() 
 - 
 
- 
- 
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()
 
 - 
 
 -