Class Subnet


  • public final class Subnet
    extends Object
    Amazon EC2 VPCs contain one or more subnets.
    See Also:
    doc
    • Method Detail

      • getSubnetId

        public String getSubnetId()
        The subnet ID, ex. subnet-c5473ba8
      • getSubnetState

        public Subnet.State getSubnetState()
        The subnet state - either available or pending.
      • getVpcId

        public String getVpcId()
        The vpc ID this subnet belongs to.
      • getCidrBlock

        public String getCidrBlock()
        The CIDR block for this subnet.
      • getAvailableIpAddressCount

        public int getAvailableIpAddressCount()
        The number of available IPs in this subnet.
      • getAvailabilityZone

        public String getAvailabilityZone()
        The availability zone this subnet is in.
      • getTags

        public Map<String,​String> getTags()
        Tags that are attached to this subnet.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object