|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.Subnet
public class Subnet
The Subnet data type.
Constructor Summary | |
---|---|
Subnet()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAvailabilityZone()
Specifies the Availability Zone the subnet is in. |
Integer |
getAvailableIpAddressCount()
Specifies the number of unused IP addresses in the subnet. |
String |
getCidrBlock()
Specifies the CIDR block assigned to the subnet. |
Boolean |
getDefaultForAz()
Returns the value of the DefaultForAz property for this object. |
Boolean |
getMapPublicIpOnLaunch()
Returns the value of the MapPublicIpOnLaunch property for this object. |
String |
getState()
Describes the current state of the subnet. |
String |
getSubnetId()
Specifies the ID of the subnet. |
List<Tag> |
getTags()
A list of tags for the Subnet. |
String |
getVpcId()
Contains the ID of the VPC the subnet is in. |
int |
hashCode()
|
Boolean |
isDefaultForAz()
Returns the value of the DefaultForAz property for this object. |
Boolean |
isMapPublicIpOnLaunch()
Returns the value of the MapPublicIpOnLaunch property for this object. |
void |
setAvailabilityZone(String availabilityZone)
Specifies the Availability Zone the subnet is in. |
void |
setAvailableIpAddressCount(Integer availableIpAddressCount)
Specifies the number of unused IP addresses in the subnet. |
void |
setCidrBlock(String cidrBlock)
Specifies the CIDR block assigned to the subnet. |
void |
setDefaultForAz(Boolean defaultForAz)
Sets the value of the DefaultForAz property for this object. |
void |
setMapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Sets the value of the MapPublicIpOnLaunch property for this object. |
void |
setState(String state)
Describes the current state of the subnet. |
void |
setSubnetId(String subnetId)
Specifies the ID of the subnet. |
void |
setTags(Collection<Tag> tags)
A list of tags for the Subnet. |
void |
setVpcId(String vpcId)
Contains the ID of the VPC the subnet is in. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Subnet |
withAvailabilityZone(String availabilityZone)
Specifies the Availability Zone the subnet is in. |
Subnet |
withAvailableIpAddressCount(Integer availableIpAddressCount)
Specifies the number of unused IP addresses in the subnet. |
Subnet |
withCidrBlock(String cidrBlock)
Specifies the CIDR block assigned to the subnet. |
Subnet |
withDefaultForAz(Boolean defaultForAz)
Sets the value of the DefaultForAz property for this object. |
Subnet |
withMapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Sets the value of the MapPublicIpOnLaunch property for this object. |
Subnet |
withState(String state)
Describes the current state of the subnet. |
Subnet |
withSubnetId(String subnetId)
Specifies the ID of the subnet. |
Subnet |
withTags(Collection<Tag> tags)
A list of tags for the Subnet. |
Subnet |
withTags(Tag... tags)
A list of tags for the Subnet. |
Subnet |
withVpcId(String vpcId)
Contains the ID of the VPC the subnet is in. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Subnet()
Method Detail |
---|
public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- Specifies the ID of the subnet.public Subnet withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- Specifies the ID of the subnet.
public String getState()
pending
or available
.
pending
or available
.public void setState(String state)
pending
or available
.
state
- Describes the current state of the subnet. The state of the subnet may
be either pending
or available
.public Subnet withState(String state)
pending
or available
.
Returns a reference to this object so that method calls can be chained together.
state
- Describes the current state of the subnet. The state of the subnet may
be either pending
or available
.
public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- Contains the ID of the VPC the subnet is in.public Subnet withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- Contains the ID of the VPC the subnet is in.
public String getCidrBlock()
public void setCidrBlock(String cidrBlock)
cidrBlock
- Specifies the CIDR block assigned to the subnet.public Subnet withCidrBlock(String cidrBlock)
Returns a reference to this object so that method calls can be chained together.
cidrBlock
- Specifies the CIDR block assigned to the subnet.
public Integer getAvailableIpAddressCount()
The IP addresses for any stopped instances are considered unavailable.
The IP addresses for any stopped instances are considered unavailable.
public void setAvailableIpAddressCount(Integer availableIpAddressCount)
The IP addresses for any stopped instances are considered unavailable.
availableIpAddressCount
- Specifies the number of unused IP addresses in the subnet. The IP addresses for any stopped instances are considered unavailable.
public Subnet withAvailableIpAddressCount(Integer availableIpAddressCount)
The IP addresses for any stopped instances are considered unavailable.
Returns a reference to this object so that method calls can be chained together.
availableIpAddressCount
- Specifies the number of unused IP addresses in the subnet. The IP addresses for any stopped instances are considered unavailable.
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- Specifies the Availability Zone the subnet is in.public Subnet withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- Specifies the Availability Zone the subnet is in.
public Boolean isDefaultForAz()
public void setDefaultForAz(Boolean defaultForAz)
defaultForAz
- The new value for the DefaultForAz property for this object.public Subnet withDefaultForAz(Boolean defaultForAz)
Returns a reference to this object so that method calls can be chained together.
defaultForAz
- The new value for the DefaultForAz property for this object.
public Boolean getDefaultForAz()
public Boolean isMapPublicIpOnLaunch()
public void setMapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
mapPublicIpOnLaunch
- The new value for the MapPublicIpOnLaunch property for this object.public Subnet withMapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Returns a reference to this object so that method calls can be chained together.
mapPublicIpOnLaunch
- The new value for the MapPublicIpOnLaunch property for this object.
public Boolean getMapPublicIpOnLaunch()
public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of tags for the Subnet.public Subnet withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Subnet.
public Subnet withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Subnet.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |