Class AvailabilityZone
- java.lang.Object
-
- com.amazonaws.services.ec2.model.AvailabilityZone
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AvailabilityZone extends Object implements Serializable, Cloneable
Describes an Availability Zone.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AvailabilityZone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setZoneName
public void setZoneName(String zoneName)
The name of the Availability Zone.
- Parameters:
zoneName
- The name of the Availability Zone.
-
getZoneName
public String getZoneName()
The name of the Availability Zone.
- Returns:
- The name of the Availability Zone.
-
withZoneName
public AvailabilityZone withZoneName(String zoneName)
The name of the Availability Zone.
- Parameters:
zoneName
- The name of the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the Availability Zone.
- Parameters:
state
- The state of the Availability Zone.- See Also:
AvailabilityZoneState
-
getState
public String getState()
The state of the Availability Zone.
- Returns:
- The state of the Availability Zone.
- See Also:
AvailabilityZoneState
-
withState
public AvailabilityZone withState(String state)
The state of the Availability Zone.
- Parameters:
state
- The state of the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AvailabilityZoneState
-
setState
public void setState(AvailabilityZoneState state)
The state of the Availability Zone.
- Parameters:
state
- The state of the Availability Zone.- See Also:
AvailabilityZoneState
-
withState
public AvailabilityZone withState(AvailabilityZoneState state)
The state of the Availability Zone.
- Parameters:
state
- The state of the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AvailabilityZoneState
-
setRegionName
public void setRegionName(String regionName)
The name of the region.
- Parameters:
regionName
- The name of the region.
-
getRegionName
public String getRegionName()
The name of the region.
- Returns:
- The name of the region.
-
withRegionName
public AvailabilityZone withRegionName(String regionName)
The name of the region.
- Parameters:
regionName
- The name of the region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMessages
public List<AvailabilityZoneMessage> getMessages()
Any messages about the Availability Zone.
- Returns:
- Any messages about the Availability Zone.
-
setMessages
public void setMessages(Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
- Parameters:
messages
- Any messages about the Availability Zone.
-
withMessages
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)
orwithMessages(java.util.Collection)
if you want to override the existing values.- Parameters:
messages
- Any messages about the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMessages
public AvailabilityZone withMessages(Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.
- Parameters:
messages
- Any messages about the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AvailabilityZone clone()
-
-