Package org.jclouds.glesys.domain
Class Ip
java.lang.Object
org.jclouds.glesys.domain.Ip
Represents an ip address used by a server.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Ip.Builder
<?> builder()
boolean
double
getCost()
getIp()
int
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Ip.Builder
<?> toString()
-
Constructor Details
-
Ip
@ConstructorProperties({"ipaddress","version","cost","currency"}) protected Ip(String ip, int version, double cost, String currency)
-
-
Method Details
-
builder
-
toBuilder
-
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
- Returns:
- the currency of the cost
- See Also:
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-