public class AvailabilityZone
extends java.lang.Object
implements java.io.Serializable
Describes an Availability Zone.
| Constructor and Description |
|---|
AvailabilityZone() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<AvailabilityZoneMessage> |
getMessages()
Any messages about the Availability Zone.
|
java.lang.String |
getRegionName()
The name of the region.
|
java.lang.String |
getState()
The state of the Availability Zone.
|
java.lang.String |
getZoneName()
The name of the Availability Zone.
|
int |
hashCode() |
void |
setMessages(java.util.Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
|
void |
setRegionName(java.lang.String regionName)
The name of the region.
|
void |
setState(AvailabilityZoneState state)
The state of the Availability Zone.
|
void |
setState(java.lang.String state)
The state of the Availability Zone.
|
void |
setZoneName(java.lang.String zoneName)
The name of the Availability Zone.
|
java.lang.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(java.util.Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
|
AvailabilityZone |
withRegionName(java.lang.String regionName)
The name of the region.
|
AvailabilityZone |
withState(AvailabilityZoneState state)
The state of the Availability Zone.
|
AvailabilityZone |
withState(java.lang.String state)
The state of the Availability Zone.
|
AvailabilityZone |
withZoneName(java.lang.String zoneName)
The name of the Availability Zone.
|
public java.lang.String getZoneName()
public void setZoneName(java.lang.String zoneName)
zoneName - The name of the Availability Zone.public AvailabilityZone withZoneName(java.lang.String zoneName)
Returns a reference to this object so that method calls can be chained together.
zoneName - The name of the Availability Zone.public java.lang.String getState()
Constraints:
Allowed Values: available, information, impaired, unavailable
AvailabilityZoneStatepublic void setState(java.lang.String state)
Constraints:
Allowed Values: available, information, impaired, unavailable
state - The state of the Availability Zone.AvailabilityZoneStatepublic AvailabilityZone withState(java.lang.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 java.lang.String getRegionName()
public void setRegionName(java.lang.String regionName)
regionName - The name of the region.public AvailabilityZone withRegionName(java.lang.String regionName)
Returns a reference to this object so that method calls can be chained together.
regionName - The name of the region.public java.util.List<AvailabilityZoneMessage> getMessages()
public void setMessages(java.util.Collection<AvailabilityZoneMessage> messages)
messages - Any 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 - Any messages about the Availability Zone.public AvailabilityZone withMessages(java.util.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.