Class Network
java.lang.Object
org.jclouds.openstack.nova.v2_0.domain.Network
- All Implemented Interfaces:
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 ClassesModifier and TypeClassDescriptionstatic class
Implements the Builder pattern for this class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Network.Builder
builder()
int
boolean
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
-
Constructor Details
-
Network
@ConstructorProperties({"networkUuid","portUuid","fixedIp"}) protected Network(String networkUuid, String portUuid, String fixedIp)
-
-
Method Details
-
getNetworkUuid
- Returns:
- the network uuid - Neutron or Nova
-
getPortUuid
- Returns:
- the port uuid - Neutron only
-
getFixedIp
- Returns:
- the fixed IP address - Neutron or Nova
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-
builder
- Returns:
- A new builder object
-
toBuilder
- Returns:
- A new Builder object from another Network
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Network>
-