public class AvailabilityZone
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an Availability Zone.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<AvailabilityZoneMessage> |
messages
Any messages about the Availability Zone.
|
private java.lang.String |
regionName
The name of the region.
|
private java.lang.String |
state
The state of the Availability Zone.
|
private java.lang.String |
zoneName
The name of the Availability Zone.
|
Constructor and Description |
---|
AvailabilityZone() |
Modifier and Type | Method and Description |
---|---|
AvailabilityZone |
clone() |
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.
|
private java.lang.String zoneName
The name of the Availability Zone.
private java.lang.String state
The state of the Availability Zone.
private java.lang.String regionName
The name of the region.
private SdkInternalList<AvailabilityZoneMessage> messages
Any messages about the Availability Zone.
public void setZoneName(java.lang.String zoneName)
The name of the Availability Zone.
zoneName
- The name of the Availability Zone.public java.lang.String getZoneName()
The name of the Availability Zone.
public AvailabilityZone withZoneName(java.lang.String zoneName)
The name of the Availability Zone.
zoneName
- The name of the Availability Zone.public void setState(java.lang.String state)
The state of the Availability Zone.
state
- The state of the Availability Zone.AvailabilityZoneState
public java.lang.String getState()
The state of the Availability Zone.
AvailabilityZoneState
public AvailabilityZone withState(java.lang.String state)
The state of the Availability Zone.
state
- The state of the Availability Zone.AvailabilityZoneState
public void setState(AvailabilityZoneState state)
The state of the Availability Zone.
state
- The state of the Availability Zone.AvailabilityZoneState
public AvailabilityZone withState(AvailabilityZoneState state)
The state of the Availability Zone.
state
- The state of the Availability Zone.AvailabilityZoneState
public void setRegionName(java.lang.String regionName)
The name of the region.
regionName
- The name of the region.public java.lang.String getRegionName()
The name of the region.
public AvailabilityZone withRegionName(java.lang.String regionName)
The name of the region.
regionName
- The name of the region.public java.util.List<AvailabilityZoneMessage> getMessages()
Any messages about the Availability Zone.
public void setMessages(java.util.Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
messages
- Any messages about the Availability Zone.public AvailabilityZone withMessages(AvailabilityZoneMessage... messages)
Any messages about the Availability Zone.
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.
messages
- Any messages about the Availability Zone.public AvailabilityZone withMessages(java.util.Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
messages
- Any messages about the Availability Zone.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AvailabilityZone clone()
clone
in class java.lang.Object