Class Subnet
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.Subnet
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Subnet
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Subnet.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The IP version(s) supported by this subnet.static interface
The resource type.static interface
The status of the subnet. -
Method Summary
Modifier and TypeMethodDescriptionGets the availableIpv4AddressCount.Gets the createdAt.getCrn()
Gets the crn.getHref()
Gets the href.getId()
Gets the id.Gets the ipv4CidrBlock.Gets the ipVersion.getName()
Gets the name.Gets the networkAcl.Gets the publicGateway.Gets the resourceGroup.Gets the resourceType.Gets the routingTable.Gets the status.Gets the totalIpv4AddressCount.getVpc()
Gets the vpc.getZone()
Gets the zone.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
getAvailableIpv4AddressCount
Gets the availableIpv4AddressCount. The number of IPv4 addresses in this subnet that are not in-use, and have not been reserved by the user or the provider.- Returns:
- the availableIpv4AddressCount
-
getCreatedAt
Gets the createdAt. The date and time that the subnet was created.- Returns:
- the createdAt
-
getCrn
-
getHref
-
getId
-
getIpVersion
Gets the ipVersion. The IP version(s) supported by this subnet.- Returns:
- the ipVersion
-
getIpv4CidrBlock
Gets the ipv4CidrBlock. The IPv4 range of the subnet, expressed in CIDR format.- Returns:
- the ipv4CidrBlock
-
getName
Gets the name. The name for this subnet. The name is unique across all subnets in the VPC.- Returns:
- the name
-
getNetworkAcl
Gets the networkAcl. The network ACL for this subnet.- Returns:
- the networkAcl
-
getPublicGateway
Gets the publicGateway. The public gateway to use for internet-bound traffic for this subnet.- Returns:
- the publicGateway
-
getResourceGroup
Gets the resourceGroup. The resource group for this subnet.- Returns:
- the resourceGroup
-
getResourceType
-
getRoutingTable
Gets the routingTable. The routing table for this subnet.- Returns:
- the routingTable
-
getStatus
Gets the status. The status of the subnet. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the status
-
getTotalIpv4AddressCount
Gets the totalIpv4AddressCount. The total number of IPv4 addresses in this subnet. Note: This is calculated as 2<sup>(32 - prefix length)</sup>. For example, the prefix length `/24` gives:<br> 2<sup>(32 - 24)</sup> = 2<sup>8</sup> = 256 addresses.- Returns:
- the totalIpv4AddressCount
-
getVpc
-
getZone
-