public class AvailabilityZone extends Object implements Serializable
An EC2 availability zone, separate and fault tolerant from other availability zones.
| Constructor and Description |
|---|
AvailabilityZone() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<AvailabilityZoneMessage> |
getMessages()
A list of messages about the Availability Zone.
|
String |
getRegionName()
Name of the region in which this zone resides.
|
String |
getState()
State of the Availability Zone.
|
String |
getZoneName()
Name of the Availability Zone.
|
int |
hashCode() |
void |
setMessages(Collection<AvailabilityZoneMessage> messages)
A list of messages about the Availability Zone.
|
void |
setRegionName(String regionName)
Name of the region in which this zone resides.
|
void |
setState(AvailabilityZoneState state)
State of the Availability Zone.
|
void |
setState(String state)
State of the Availability Zone.
|
void |
setZoneName(String zoneName)
Name of the Availability Zone.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AvailabilityZone |
withMessages(AvailabilityZoneMessage... messages)
A list of messages about the Availability Zone.
|
AvailabilityZone |
withMessages(Collection<AvailabilityZoneMessage> messages)
A list of messages about the Availability Zone.
|
AvailabilityZone |
withRegionName(String regionName)
Name of the region in which this zone resides.
|
AvailabilityZone |
withState(AvailabilityZoneState state)
State of the Availability Zone.
|
AvailabilityZone |
withState(String state)
State of the Availability Zone.
|
AvailabilityZone |
withZoneName(String zoneName)
Name of the Availability Zone.
|
public String getZoneName()
public void setZoneName(String zoneName)
zoneName - Name of the Availability Zone.public AvailabilityZone withZoneName(String zoneName)
Returns a reference to this object so that method calls can be chained together.
zoneName - Name of the Availability Zone.public String getState()
Constraints:
Allowed Values: available
AvailabilityZoneStatepublic void setState(String state)
Constraints:
Allowed Values: available
state - State of the Availability Zone.AvailabilityZoneStatepublic AvailabilityZone withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available
state - State of the Availability Zone.AvailabilityZoneStatepublic void setState(AvailabilityZoneState state)
Constraints:
Allowed Values: available
state - State of the Availability Zone.AvailabilityZoneStatepublic AvailabilityZone withState(AvailabilityZoneState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available
state - State of the Availability Zone.AvailabilityZoneStatepublic String getRegionName()
public void setRegionName(String regionName)
regionName - Name of the region in which this zone resides.public AvailabilityZone withRegionName(String regionName)
Returns a reference to this object so that method calls can be chained together.
regionName - Name of the region in which this zone resides.public List<AvailabilityZoneMessage> getMessages()
public void setMessages(Collection<AvailabilityZoneMessage> messages)
messages - A list of messages about the Availability Zone.public AvailabilityZone withMessages(AvailabilityZoneMessage... messages)
Returns a reference to this object so that method calls can be chained together.
messages - A list of messages about the Availability Zone.public AvailabilityZone withMessages(Collection<AvailabilityZoneMessage> messages)
Returns a reference to this object so that method calls can be chained together.
messages - A list of messages about the Availability Zone.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.