org.jclouds.openstack.nova.v2_0.domain
Class Network

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.domain.Network
All Implemented Interfaces:
Comparable<Network>

public class Network
extends Object
implements Comparable<Network>

Nova (or Neutron) network definition Used to provide support for network, port, and fixed_ip when booting Nova servers. OpenStack will support either a Nova Network or Neutron, but not both at the same time. Specifying a port is only possible with Neutron.


Nested Class Summary
static class Network.Builder
          Implements the Builder pattern for this class
 
Constructor Summary
protected Network(String networkUuid, String portUuid, String fixedIp)
           
 
Method Summary
static Network.Builder builder()
           
 int compareTo(Network that)
           
 boolean equals(Object obj)
           
 String getFixedIp()
           
 String getNetworkUuid()
           
 String getPortUuid()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Network.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Network

@ConstructorProperties(value={"networkUuid","portUuid","fixedIp"})
protected Network(String networkUuid,
                                             String portUuid,
                                             String fixedIp)
Method Detail

getNetworkUuid

public String getNetworkUuid()
Returns:
the network uuid - Neutron or Nova

getPortUuid

public String getPortUuid()
Returns:
the port uuid - Neutron only

getFixedIp

public String getFixedIp()
Returns:
the fixed IP address - Neutron or Nova

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

builder

public static Network.Builder builder()
Returns:
A new builder object

toBuilder

public Network.Builder toBuilder()
Returns:
A new Builder object from another Network

compareTo

public int compareTo(Network that)
Specified by:
compareTo in interface Comparable<Network>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.