public abstract static class Subnet.Builder<T extends Subnet.Builder<T>> extends ReferenceWithName.Builder<T>
| Modifier and Type | Field and Description |
|---|---|
protected Set<AllocationPool> |
allocationPools |
protected String |
cidr |
protected Set<String> |
dnsNameServers |
protected Boolean |
enableDhcp |
protected String |
gatewayIp |
protected Set<HostRoute> |
hostRoutes |
protected Integer |
ipVersion |
protected String |
networkId |
nameid, tenantId| Constructor and Description |
|---|
Subnet.Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
allocationPools(Collection<AllocationPool> allocationPools) |
Subnet |
build() |
T |
cidr(String cidr) |
T |
dnsNameServers(Collection<String> dnsNameServers) |
T |
enableDhcp(Boolean enableDhcp) |
T |
fromSubnet(Subnet in) |
T |
gatewayIp(String gatewayIp) |
T |
hostRoutes(Collection<HostRoute> hostRoutes) |
T |
ipVersion(Integer ipVersion) |
T |
networkId(String networkId) |
fromReferenceWithName, name, selffromReference, id, tenantIdprotected String networkId
protected String gatewayIp
protected Integer ipVersion
protected String cidr
protected Set<AllocationPool> allocationPools
protected Boolean enableDhcp
public T networkId(String networkId)
Subnet.getNetworkId()public T gatewayIp(String gatewayIp)
Subnet.getGatewayIp()public T ipVersion(Integer ipVersion)
Subnet.getIpVersion()public T cidr(String cidr)
Subnet.getCidr()public T allocationPools(Collection<AllocationPool> allocationPools)
Subnet.getAllocationPools()public T enableDhcp(Boolean enableDhcp)
Subnet.getEnableDhcp()public T dnsNameServers(Collection<String> dnsNameServers)
Subnet.getDnsNameServers()public T hostRoutes(Collection<HostRoute> hostRoutes)
Subnet.getHostRoutes()public Subnet build()
build in class ReferenceWithName.Builder<T extends Subnet.Builder<T>>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.