public interface SubnetBuilder extends Buildable.Builder<SubnetBuilder,Subnet>
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
|
SubnetBuilder |
cidr(String cidr) |
SubnetBuilder |
enableDHCP(boolean enable) |
SubnetBuilder |
gateway(String gateway) |
SubnetBuilder |
ipv6AddressMode(Ipv6AddressMode ipv6AddressMode) |
SubnetBuilder |
ipv6RaMode(Ipv6RaMode ipv6RaMode) |
SubnetBuilder |
ipVersion(IPVersionType ipVersion) |
SubnetBuilder |
name(String name) |
SubnetBuilder |
network(Network network) |
SubnetBuilder |
networkId(String networkId) |
SubnetBuilder |
noGateway() |
SubnetBuilder |
tenant(Tenant tenant) |
SubnetBuilder |
tenantId(String tenantId) |
build, from
SubnetBuilder name(String name)
BasicResource.getName()
SubnetBuilder networkId(String networkId)
Subnet.getNetworkId()
SubnetBuilder network(Network network)
Subnet.getNetworkId()
SubnetBuilder ipVersion(IPVersionType ipVersion)
Subnet.getIpVersion()
SubnetBuilder cidr(String cidr)
Subnet.getCidr()
SubnetBuilder addPool(String start, String end)
start
- the starting IPend
- the ending IPSubnetBuilder tenantId(String tenantId)
Resource.getTenantId()
SubnetBuilder tenant(Tenant tenant)
Resource.getTenantId()
SubnetBuilder enableDHCP(boolean enable)
Subnet.isDHCPEnabled()
SubnetBuilder gateway(String gateway)
Subnet#gateway()
SubnetBuilder noGateway()
Subnet#isNoGateway()
SubnetBuilder addDNSNameServer(String host)
Subnet.getDnsNames()
SubnetBuilder addHostRoute(String destination, String nexthop)
destination
- the destination subnet (ex: 10.0.0.0/16)nexthop
- the next gateway ip adddress (ex: 192.168.0.1)SubnetBuilder ipv6AddressMode(Ipv6AddressMode ipv6AddressMode)
Subnet.getIpv6AddressMode()
SubnetBuilder ipv6RaMode(Ipv6RaMode ipv6RaMode)
Subnet.getIpv6RaMode()
Copyright © 2017. All rights reserved.