Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static interface
Subnet.IpVersion
The IP version(s) supported by this subnet.static interface
Subnet.ResourceType
The resource type.static interface
Subnet.Status
The status of the subnet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getAvailableIpv4AddressCount()
Gets the availableIpv4AddressCount.Date
getCreatedAt()
Gets the createdAt.String
getCrn()
Gets the crn.String
getHref()
Gets the href.String
getId()
Gets the id.String
getIpv4CidrBlock()
Gets the ipv4CidrBlock.String
getIpVersion()
Gets the ipVersion.String
getName()
Gets the name.NetworkACLReference
getNetworkAcl()
Gets the networkAcl.PublicGatewayReference
getPublicGateway()
Gets the publicGateway.ResourceGroupReference
getResourceGroup()
Gets the resourceGroup.String
getResourceType()
Gets the resourceType.RoutingTableReference
getRoutingTable()
Gets the routingTable.String
getStatus()
Gets the status.Long
getTotalIpv4AddressCount()
Gets the totalIpv4AddressCount.VPCReference
getVpc()
Gets the vpc.ZoneReference
getZone()
Gets the zone.
-
-
-
Method Detail
-
getAvailableIpv4AddressCount
public Long 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
public Date getCreatedAt()
Gets the createdAt. The date and time that the subnet was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this subnet.- Returns:
- the crn
-
getHref
public String getHref()
Gets the href. The URL for this subnet.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this subnet.- Returns:
- the id
-
getIpVersion
public String getIpVersion()
Gets the ipVersion. The IP version(s) supported by this subnet.- Returns:
- the ipVersion
-
getIpv4CidrBlock
public String getIpv4CidrBlock()
Gets the ipv4CidrBlock. The IPv4 range of the subnet, expressed in CIDR format.- Returns:
- the ipv4CidrBlock
-
getName
public String getName()
Gets the name. The name for this subnet. The name is unique across all subnets in the VPC.- Returns:
- the name
-
getNetworkAcl
public NetworkACLReference getNetworkAcl()
Gets the networkAcl. The network ACL for this subnet.- Returns:
- the networkAcl
-
getPublicGateway
public PublicGatewayReference getPublicGateway()
Gets the publicGateway. The public gateway to use for internet-bound traffic for this subnet.- Returns:
- the publicGateway
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this subnet.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getRoutingTable
public RoutingTableReference getRoutingTable()
Gets the routingTable. The routing table for this subnet.- Returns:
- the routingTable
-
getStatus
public String 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
public Long 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
public VPCReference getVpc()
Gets the vpc. The VPC this subnet resides in.- Returns:
- the vpc
-
getZone
public ZoneReference getZone()
Gets the zone. The zone this subnet resides in.- Returns:
- the zone
-
-