Package org.jclouds.glesys.domain
Class Ip
- java.lang.Object
-
- org.jclouds.glesys.domain.Ip
-
public class Ip extends Object
Represents an ip address used by a server.- See Also:
Server
,ServerDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ip.Builder<T extends Ip.Builder<T>>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ip.Builder<?>
builder()
boolean
equals(Object obj)
double
getCost()
String
getCurrency()
String
getIp()
int
getVersion()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Ip.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Ip
@ConstructorProperties({"ipaddress","version","cost","currency"}) protected Ip(String ip, int version, double cost, String currency)
-
-
Method Detail
-
builder
public static Ip.Builder<?> builder()
-
toBuilder
public Ip.Builder<?> toBuilder()
-
getIp
public String getIp()
- Returns:
- the IP version, ex. 4
-
getVersion
public int getVersion()
- Returns:
- the ip address of the new server
-
getCost
public double getCost()
- Returns:
- the cost of the ip address allocated to the new server
- See Also:
getCurrency()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-