org.jclouds.ec2.domain
Class Subnet

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

public final class Subnet
extends Object

Amazon EC2 VPCs contain one or more subnets.

See Also:
doc

Nested Class Summary
static class Subnet.Builder
           
static class Subnet.State
           
 
Method Summary
static Subnet.Builder builder()
           
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          The availability zone this subnet is in.
 int getAvailableIpAddressCount()
          The number of available IPs in this subnet.
 String getCidrBlock()
          The CIDR block for this subnet.
 String getSubnetId()
          The subnet ID, ex.
 Subnet.State getSubnetState()
          The subnet state - either available or pending.
 Map<String,String> getTags()
          Tags that are attached to this subnet.
 String getVpcId()
          The vpc ID this subnet belongs to.
 int hashCode()
           
 Subnet.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

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()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.