public class AvailabilityZone extends Object implements Serializable, Cloneable
Describes an Availability Zone.
| Constructor and Description |
|---|
AvailabilityZone() |
| Modifier and Type | Method and Description |
|---|---|
AvailabilityZone |
clone() |
boolean |
equals(Object obj) |
List<AvailabilityZoneMessage> |
getMessages()
Any messages about the Availability Zone.
|
String |
getRegionName()
The name of the region.
|
String |
getState()
The state of the Availability Zone.
|
String |
getZoneName()
The name of the Availability Zone.
|
int |
hashCode() |
void |
setMessages(Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
|
void |
setRegionName(String regionName)
The name of the region.
|
void |
setState(AvailabilityZoneState state)
The state of the Availability Zone.
|
void |
setState(String state)
The state of the Availability Zone.
|
void |
setZoneName(String zoneName)
The name of the Availability Zone.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AvailabilityZone |
withMessages(AvailabilityZoneMessage... messages)
Any messages about the Availability Zone.
|
AvailabilityZone |
withMessages(Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
|
AvailabilityZone |
withRegionName(String regionName)
The name of the region.
|
AvailabilityZone |
withState(AvailabilityZoneState state)
The state of the Availability Zone.
|
AvailabilityZone |
withState(String state)
The state of the Availability Zone.
|
AvailabilityZone |
withZoneName(String zoneName)
The name of the Availability Zone.
|
public String getZoneName()
public void setZoneName(String zoneName)
zoneName - The 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 - The name of the Availability Zone.public String getState()
Constraints:
Allowed Values: available, information, impaired, unavailable
AvailabilityZoneStatepublic void setState(String state)
Constraints:
Allowed Values: available, information, impaired, unavailable
state - The 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, information, impaired, unavailable
state - The state of the Availability Zone.AvailabilityZoneStatepublic void setState(AvailabilityZoneState state)
Constraints:
Allowed Values: available, information, impaired, unavailable
state - The 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, information, impaired, unavailable
state - The state of the Availability Zone.AvailabilityZoneStatepublic String getRegionName()
public void setRegionName(String regionName)
regionName - The name of the region.public AvailabilityZone withRegionName(String regionName)
Returns a reference to this object so that method calls can be chained together.
regionName - The name of the region.public List<AvailabilityZoneMessage> getMessages()
public void setMessages(Collection<AvailabilityZoneMessage> messages)
messages - Any messages about the Availability Zone.public AvailabilityZone withMessages(AvailabilityZoneMessage... messages)
NOTE: This method appends the values to the existing list (if
any). Use setMessages(java.util.Collection) or withMessages(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
messages - Any 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 - Any messages about the Availability Zone.public String toString()
toString in class ObjectObject.toString()public AvailabilityZone clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.