org.jclouds.glesys.domain
Class Ip

java.lang.Object
  extended by 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

Nested Class Summary
static class Ip.Builder
           
 
Field Summary
protected  double cost
           
protected  String ip
           
protected  int version
           
 
Constructor Summary
Ip(String ip, int version, double cost)
           
 
Method Summary
static Ip.Builder builder()
           
 boolean equals(Object object)
           
 double getCost()
           
 String getIp()
           
 int getVersion()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ip

protected final String ip

version

protected final int version

cost

protected final double cost
Constructor Detail

Ip

public Ip(String ip,
          int version,
          double cost)
Method Detail

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.