public class NeutronSubnet extends Object implements Subnet
Modifier and Type | Class and Description |
---|---|
static class |
NeutronSubnet.NeutronSubnetNoGateway |
static class |
NeutronSubnet.SubnetConcreteBuilder |
static class |
NeutronSubnet.Subnets |
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
Constructor and Description |
---|
NeutronSubnet() |
NeutronSubnet(String id,
String name,
boolean enableDHCP,
String networkId,
String tenantId,
List<String> dnsNames,
List<NeutronPool> pools,
List<NeutronHostRoute> hostRoutes,
IPVersionType ipVersion,
String gateway,
String cidr,
Ipv6AddressMode ipv6AddressMode,
Ipv6RaMode ipv6RaMode) |
Modifier and Type | Method and Description |
---|---|
static SubnetBuilder |
builder() |
List<? extends Pool> |
getAllocationPools() |
String |
getCidr() |
List<String> |
getDnsNames() |
String |
getGateway() |
List<? extends HostRoute> |
getHostRoutes() |
String |
getId() |
Ipv6AddressMode |
getIpv6AddressMode() |
Ipv6RaMode |
getIpv6RaMode() |
IPVersionType |
getIpVersion() |
String |
getName() |
String |
getNetworkId() |
String |
getTenantId() |
boolean |
isDHCPEnabled() |
void |
setId(String id)
Sets the identifier for this resource.
|
void |
setName(String name)
Sets the name for this resource
|
void |
setTenantId(String tenantId)
Sets the tenant identifier
|
SubnetBuilder |
toBuilder() |
String |
toString() |
public NeutronSubnet()
public NeutronSubnet(String id, String name, boolean enableDHCP, String networkId, String tenantId, List<String> dnsNames, List<NeutronPool> pools, List<NeutronHostRoute> hostRoutes, IPVersionType ipVersion, String gateway, String cidr, Ipv6AddressMode ipv6AddressMode, Ipv6RaMode ipv6RaMode)
public static SubnetBuilder builder()
public SubnetBuilder toBuilder()
toBuilder
in interface Buildable<SubnetBuilder>
public void setId(String id)
public void setName(String name)
setName
in interface BasicResource
name
- the name to setpublic void setTenantId(String tenantId)
setTenantId
in interface Resource
tenantId
- the tenant id to setpublic String getId()
public String getName()
getName
in interface BasicResource
public boolean isDHCPEnabled()
isDHCPEnabled
in interface Subnet
public String getNetworkId()
getNetworkId
in interface Subnet
public String getTenantId()
getTenantId
in interface Resource
public List<String> getDnsNames()
getDnsNames
in interface Subnet
public List<? extends Pool> getAllocationPools()
getAllocationPools
in interface Subnet
public List<? extends HostRoute> getHostRoutes()
getHostRoutes
in interface Subnet
public IPVersionType getIpVersion()
getIpVersion
in interface Subnet
public String getGateway()
getGateway
in interface Subnet
public String getCidr()
public Ipv6AddressMode getIpv6AddressMode()
getIpv6AddressMode
in interface Subnet
public Ipv6RaMode getIpv6RaMode()
getIpv6RaMode
in interface Subnet
Copyright © 2017. All rights reserved.