Class NetworkSegment.Builder
- java.lang.Object
 - 
- org.jclouds.openstack.neutron.v2.domain.NetworkSegment.Builder
 
 
- 
- Enclosing class:
 - NetworkSegment
 
public static class NetworkSegment.Builder extends Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected NetworkTypenetworkTypeprotected StringphysicalNetworkprotected IntegersegmentationId 
- 
Constructor Summary
Constructors Constructor Description Builder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkSegmentbuild()NetworkSegment.BuilderfromNetworkSegment(NetworkSegment in)NetworkSegment.BuildernetworkType(NetworkType networkType)Provide the networkType to the NetworkSegment's Builder.NetworkSegment.BuilderphysicalNetwork(String physicalNetwork)Provide the physicalNetwork to the NetworkSegment's Builder.NetworkSegment.BuildersegmentationId(int segmentationId)Provide the segmentationId to the NetworkSegment's Builder. 
 - 
 
- 
- 
Field Detail
- 
networkType
protected NetworkType networkType
 
- 
physicalNetwork
protected String physicalNetwork
 
- 
segmentationId
protected Integer segmentationId
 
 - 
 
- 
Method Detail
- 
networkType
public NetworkSegment.Builder networkType(NetworkType networkType)
Provide the networkType to the NetworkSegment's Builder.- Returns:
 - the Builder.
 - See Also:
 NetworkSegment.getNetworkType()
 
- 
physicalNetwork
public NetworkSegment.Builder physicalNetwork(String physicalNetwork)
Provide the physicalNetwork to the NetworkSegment's Builder.- Returns:
 - the Builder.
 - See Also:
 NetworkSegment.getPhysicalNetwork()
 
- 
segmentationId
public NetworkSegment.Builder segmentationId(int segmentationId)
Provide the segmentationId to the NetworkSegment's Builder.- Returns:
 - the Builder.
 - See Also:
 NetworkSegment.getSegmentationId()
 
- 
build
public NetworkSegment build()
- Returns:
 - a NetworkSegment constructed with this Builder.
 
 
- 
fromNetworkSegment
public NetworkSegment.Builder fromNetworkSegment(NetworkSegment in)
- Returns:
 - a Builder from another NetworkSegment.
 
 
 - 
 
 -