Class Subnet

java.lang.Object
org.jclouds.ec2.domain.Subnet

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

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Subnet.Builder builder()
    • toBuilder

      public Subnet.Builder toBuilder()