public static class NeutronSubnet.SubnetConcreteBuilder extends ResourceBuilder<Subnet,NeutronSubnet.SubnetConcreteBuilder> implements SubnetBuilder
Modifier and Type | Method and Description |
---|---|
SubnetBuilder |
addDNSNameServer(String host) |
SubnetBuilder |
addHostRoute(String destination,
String nexthop)
Adds a host route to this subnet
|
SubnetBuilder |
addPool(String start,
String end)
Adds a allocation pool
|
Subnet |
build()
Creates and return the Model Entity M
|
SubnetBuilder |
cidr(String cidr) |
SubnetBuilder |
enableDHCP(boolean enable) |
SubnetBuilder |
from(Subnet in)
Creates a Builder using the param M as the default values
|
SubnetBuilder |
gateway(String gateway) |
SubnetBuilder |
ipv6AddressMode(Ipv6AddressMode ipv6AddressMode) |
SubnetBuilder |
ipv6RaMode(Ipv6RaMode ipv6RaMode) |
SubnetBuilder |
ipVersion(IPVersionType ipVersion) |
SubnetBuilder |
network(Network network) |
SubnetBuilder |
networkId(String networkId) |
SubnetBuilder |
noGateway() |
protected Subnet |
reference() |
tenant, tenantId
id, name, self
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
name, tenant, tenantId
public SubnetBuilder networkId(String networkId)
networkId
in interface SubnetBuilder
Subnet.getNetworkId()
public SubnetBuilder network(Network network)
network
in interface SubnetBuilder
Subnet.getNetworkId()
public SubnetBuilder ipVersion(IPVersionType ipVersion)
ipVersion
in interface SubnetBuilder
Subnet.getIpVersion()
public SubnetBuilder cidr(String cidr)
cidr
in interface SubnetBuilder
Subnet.getCidr()
public SubnetBuilder gateway(String gateway)
gateway
in interface SubnetBuilder
Subnet#gateway()
public SubnetBuilder addPool(String start, String end)
SubnetBuilder
addPool
in interface SubnetBuilder
start
- the starting IPend
- the ending IPpublic SubnetBuilder enableDHCP(boolean enable)
enableDHCP
in interface SubnetBuilder
Subnet.isDHCPEnabled()
public SubnetBuilder noGateway()
noGateway
in interface SubnetBuilder
Subnet#isNoGateway()
public SubnetBuilder ipv6AddressMode(Ipv6AddressMode ipv6AddressMode)
ipv6AddressMode
in interface SubnetBuilder
Subnet.getIpv6AddressMode()
public SubnetBuilder ipv6RaMode(Ipv6RaMode ipv6RaMode)
ipv6RaMode
in interface SubnetBuilder
Subnet.getIpv6RaMode()
public Subnet build()
Buildable.Builder
build
in interface Buildable.Builder<SubnetBuilder,Subnet>
public SubnetBuilder from(Subnet in)
Buildable.Builder
from
in interface Buildable.Builder<SubnetBuilder,Subnet>
protected Subnet reference()
reference
in class BasicResourceBuilder<Subnet,NeutronSubnet.SubnetConcreteBuilder>
public SubnetBuilder addDNSNameServer(String host)
addDNSNameServer
in interface SubnetBuilder
Subnet.getDnsNames()
public SubnetBuilder addHostRoute(String destination, String nexthop)
SubnetBuilder
addHostRoute
in interface SubnetBuilder
destination
- the destination subnet (ex: 10.0.0.0/16)nexthop
- the next gateway ip adddress (ex: 192.168.0.1)Copyright © 2017. All rights reserved.