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:
ServerCreated
,
ServerDetails
Constructor Summary |
Ip(String ip,
int version,
double cost)
|
ip
protected final String ip
version
protected final int version
cost
protected final double cost
Ip
public Ip(String ip,
int version,
double cost)
builder
public static Ip.Builder builder()
getVersion
public int getVersion()
- Returns:
- the IP version, ex. 4
getIp
public String getIp()
- Returns:
- the ip address of the new server
getCost
public double getCost()
- Returns:
- the cost of the ip address allocated to the new server
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.