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:
Server, ServerDetails

Nested Class Summary
static class Ip.Builder<T extends Ip.Builder<T>>
           
 
Constructor Summary
protected Ip(String ip, int version, double cost, String currency)
           
 
Method Summary
static Ip.Builder<?> builder()
           
 boolean equals(Object obj)
           
 double getCost()
           
 String getCurrency()
           
 String getIp()
           
 int getVersion()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Ip.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ip

@ConstructorProperties(value={"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()

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.