Class NeutronSubnet
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.NeutronSubnet
-
- All Implemented Interfaces:
Serializable,Buildable<SubnetBuilder>,BasicResource,IdEntity,Resource,TimeEntity,ModelEntity,Subnet
- Direct Known Subclasses:
NeutronSubnet.NeutronSubnetNoGateway
public class NeutronSubnet extends Object implements Subnet
A Subnet is a network with Pools and network based settings- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronSubnet.NeutronSubnetNoGatewaystatic classNeutronSubnet.SubnetConcreteBuilderstatic classNeutronSubnet.Subnets-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubnetBuilderbuilder()booleanequals(Object obj)List<? extends Pool>getAllocationPools()StringgetCidr()DategetCreatedTime()created timeList<String>getDnsNames()StringgetGateway()List<? extends HostRoute>getHostRoutes()StringgetId()Ipv6AddressModegetIpv6AddressMode()Ipv6RaModegetIpv6RaMode()IPVersionTypegetIpVersion()StringgetName()StringgetNetworkId()StringgetTenantId()DategetUpdatedTime()updated timeinthashCode()booleanisDHCPEnabled()voidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierSubnetBuildertoBuilder()StringtoString()
-
-
-
Constructor Detail
-
NeutronSubnet
public NeutronSubnet()
-
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)
-
-
Method Detail
-
builder
public static SubnetBuilder builder()
-
toBuilder
public SubnetBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<SubnetBuilder>
-
getId
public String getId()
-
setId
public void setId(String id)
Sets the identifier for this resource. Note: creating a new resource should not have the idenfier set since OpenStack will assign one on the create call
-
getName
public String getName()
- Specified by:
getNamein interfaceBasicResource- Returns:
- the name for this resource
-
setName
public void setName(String name)
Sets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
isDHCPEnabled
public boolean isDHCPEnabled()
- Specified by:
isDHCPEnabledin interfaceSubnet- Returns:
- true if DHCP is enabled for this subnet, false if not.
-
getNetworkId
public String getNetworkId()
- Specified by:
getNetworkIdin interfaceSubnet- Returns:
- the id of the network this subnet is associated with
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceResource- Returns:
- the tenant identifier for this resource
-
setTenantId
public void setTenantId(String tenantId)
Sets the tenant identifier- Specified by:
setTenantIdin interfaceResource- Parameters:
tenantId- the tenant id to set
-
getDnsNames
public List<String> getDnsNames()
- Specified by:
getDnsNamesin interfaceSubnet- Returns:
- the DNS server names/IP
-
getAllocationPools
public List<? extends Pool> getAllocationPools()
- Specified by:
getAllocationPoolsin interfaceSubnet- Returns:
- the sub-ranges of cidr available for dynamic allocation to ports
-
getHostRoutes
public List<? extends HostRoute> getHostRoutes()
- Specified by:
getHostRoutesin interfaceSubnet- Returns:
- the set of routes that should be used by devices with IPs from this subnet
-
getIpVersion
public IPVersionType getIpVersion()
- Specified by:
getIpVersionin interfaceSubnet- Returns:
- the ip version used by this subnet
-
getGateway
public String getGateway()
- Specified by:
getGatewayin interfaceSubnet- Returns:
- the default gateway used by devices in this subnet
-
getCidr
public String getCidr()
-
getIpv6AddressMode
public Ipv6AddressMode getIpv6AddressMode()
- Specified by:
getIpv6AddressModein interfaceSubnet- Returns:
- The IPv6 address modes specifies mechanisms for assigning IP addresses
-
getIpv6RaMode
public Ipv6RaMode getIpv6RaMode()
- Specified by:
getIpv6RaModein interfaceSubnet- Returns:
- the IPv6 router advertisement specifies whether the networking service should transmit ICMPv6 packets, for a subnet
-
getCreatedTime
public Date getCreatedTime()
created time- Specified by:
getCreatedTimein interfaceTimeEntity- Returns:
- created time
-
getUpdatedTime
public Date getUpdatedTime()
updated time- Specified by:
getUpdatedTimein interfaceTimeEntity- Returns:
- updated time
-
-