Class Network
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
Network.Builder
Implements the Builder pattern for this class
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.MoreObjects.ToStringHelper
string()
Network.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Network
@ConstructorProperties({"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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
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 interfaceComparable<Network>
-
-