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.
- Author:
- Adam Lowe
- See Also:
Server,
ServerDetails
|
Constructor Summary |
protected |
Ip(String ip,
int version,
double cost,
String currency)
|
Ip
@ConstructorProperties(value={"ipaddress","version","cost","currency"})
protected Ip(String ip,
int version,
double cost,
String currency)
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()
getCurrency
public String getCurrency()
- Returns:
- the currency of the cost
- See Also:
getCost()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.