Class NeutronSubnetIPAvailability
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.ext.NeutronSubnetIPAvailability
-
- All Implemented Interfaces:
Serializable
,Buildable<SubnetIPAvailabilityBuilder>
,ModelEntity
,SubnetIPAvailability
public class NeutronSubnetIPAvailability extends Object implements SubnetIPAvailability
A subnet IP availabitiy that is bound to a network- Author:
- Xiangbin HAN
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NeutronSubnetIPAvailability.SubnetIPAvailabilityConcreteBuilder
-
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 NeutronSubnetIPAvailability()
NeutronSubnetIPAvailability(BigInteger usedIps, BigInteger totalIps, String subnetId, String subnetName, IPVersionType ipVersion, String cidr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubnetIPAvailabilityBuilder
builder()
String
getCidr()
IPVersionType
getIpVersion()
String
getSubnetId()
String
getSubnetName()
BigInteger
getTotalIps()
Number of total IPs per subnetBigInteger
getUsedIps()
Number of used IPs per subnetSubnetIPAvailabilityBuilder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
NeutronSubnetIPAvailability
public NeutronSubnetIPAvailability()
-
NeutronSubnetIPAvailability
public NeutronSubnetIPAvailability(BigInteger usedIps, BigInteger totalIps, String subnetId, String subnetName, IPVersionType ipVersion, String cidr)
-
-
Method Detail
-
builder
public static SubnetIPAvailabilityBuilder builder()
-
toBuilder
public SubnetIPAvailabilityBuilder toBuilder()
- Specified by:
toBuilder
in interfaceBuildable<SubnetIPAvailabilityBuilder>
-
getUsedIps
public BigInteger getUsedIps()
Description copied from interface:SubnetIPAvailability
Number of used IPs per subnet- Specified by:
getUsedIps
in interfaceSubnetIPAvailability
- Returns:
- the number of IPs
-
getTotalIps
public BigInteger getTotalIps()
Description copied from interface:SubnetIPAvailability
Number of total IPs per subnet- Specified by:
getTotalIps
in interfaceSubnetIPAvailability
- Returns:
- the number of IPs
-
getSubnetId
public String getSubnetId()
- Specified by:
getSubnetId
in interfaceSubnetIPAvailability
- Returns:
- the subnet identifier
-
getSubnetName
public String getSubnetName()
- Specified by:
getSubnetName
in interfaceSubnetIPAvailability
- Returns:
- the subnet name
-
getIpVersion
public IPVersionType getIpVersion()
- Specified by:
getIpVersion
in interfaceSubnetIPAvailability
- Returns:
- the IP version type of subnet
-
getCidr
public String getCidr()
- Specified by:
getCidr
in interfaceSubnetIPAvailability
- Returns:
- the subnet CIDR
-
-