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 AvailabilityZoneclone()booleanequals(Object obj)List<AvailabilityZoneMessage>getMessages()Any messages about the Availability Zone.StringgetRegionName()The name of the region.StringgetState()The state of the Availability Zone.StringgetZoneName()The name of the Availability Zone.inthashCode()voidsetMessages(Collection<AvailabilityZoneMessage> messages)Any messages about the Availability Zone.voidsetRegionName(String regionName)The name of the region.voidsetState(AvailabilityZoneState state)The state of the Availability Zone.voidsetState(String state)The state of the Availability Zone.voidsetZoneName(String zoneName)The name of the Availability Zone.StringtoString()Returns a string representation of this object; useful for testing and debugging.AvailabilityZonewithMessages(AvailabilityZoneMessage... messages)Any messages about the Availability Zone.AvailabilityZonewithMessages(Collection<AvailabilityZoneMessage> messages)Any messages about the Availability Zone.AvailabilityZonewithRegionName(String regionName)The name of the region.AvailabilityZonewithState(AvailabilityZoneState state)The state of the Availability Zone.AvailabilityZonewithState(String state)The state of the Availability Zone.AvailabilityZonewithZoneName(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AvailabilityZone clone()
-
-