com.amazonaws.services.ec2.model
Class AvailabilityZone

java.lang.Object
  extended by com.amazonaws.services.ec2.model.AvailabilityZone

public class AvailabilityZone
extends Object

An EC2 availability zone, separate and fault tolerant from other availability zones.


Constructor Summary
AvailabilityZone()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<AvailabilityZoneMessage> getMessages()
          A list of messages about the Availability Zone.
 String getRegionName()
          Name of the region in which this zone resides.
 String getState()
          State of the Availability Zone.
 String getZoneName()
          Name of the Availability Zone.
 int hashCode()
           
 void setMessages(Collection<AvailabilityZoneMessage> messages)
          A list of messages about the Availability Zone.
 void setRegionName(String regionName)
          Name of the region in which this zone resides.
 void setState(String state)
          State of the Availability Zone.
 void setZoneName(String zoneName)
          Name of the Availability Zone.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AvailabilityZone withMessages(AvailabilityZoneMessage... messages)
          A list of messages about the Availability Zone.
 AvailabilityZone withMessages(Collection<AvailabilityZoneMessage> messages)
          A list of messages about the Availability Zone.
 AvailabilityZone withRegionName(String regionName)
          Name of the region in which this zone resides.
 AvailabilityZone withState(String state)
          State of the Availability Zone.
 AvailabilityZone withZoneName(String zoneName)
          Name of the Availability Zone.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvailabilityZone

public AvailabilityZone()
Method Detail

getZoneName

public String getZoneName()
Name of the Availability Zone.

Returns:
Name of the Availability Zone.

setZoneName

public void setZoneName(String zoneName)
Name of the Availability Zone.

Parameters:
zoneName - Name of the Availability Zone.

withZoneName

public AvailabilityZone withZoneName(String zoneName)
Name of the Availability Zone.

Returns a reference to this object so that method calls can be chained together.

Parameters:
zoneName - Name of the Availability Zone.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public String getState()
State of the Availability Zone.

Returns:
State of the Availability Zone.

setState

public void setState(String state)
State of the Availability Zone.

Parameters:
state - State of the Availability Zone.

withState

public AvailabilityZone withState(String state)
State of the Availability Zone.

Returns a reference to this object so that method calls can be chained together.

Parameters:
state - State of the Availability Zone.
Returns:
A reference to this updated object so that method calls can be chained together.

getRegionName

public String getRegionName()
Name of the region in which this zone resides.

Returns:
Name of the region in which this zone resides.

setRegionName

public void setRegionName(String regionName)
Name of the region in which this zone resides.

Parameters:
regionName - Name of the region in which this zone resides.

withRegionName

public AvailabilityZone withRegionName(String regionName)
Name of the region in which this zone resides.

Returns a reference to this object so that method calls can be chained together.

Parameters:
regionName - Name of the region in which this zone resides.
Returns:
A reference to this updated object so that method calls can be chained together.

getMessages

public List<AvailabilityZoneMessage> getMessages()
A list of messages about the Availability Zone.

Returns:
A list of messages about the Availability Zone.

setMessages

public void setMessages(Collection<AvailabilityZoneMessage> messages)
A list of messages about the Availability Zone.

Parameters:
messages - A list of messages about the Availability Zone.

withMessages

public AvailabilityZone withMessages(AvailabilityZoneMessage... messages)
A list of messages about the Availability Zone.

Returns a reference to this object so that method calls can be chained together.

Parameters:
messages - A list of messages about the Availability Zone.
Returns:
A reference to this updated object so that method calls can be chained together.

withMessages

public AvailabilityZone withMessages(Collection<AvailabilityZoneMessage> messages)
A list of messages about the Availability Zone.

Returns a reference to this object so that method calls can be chained together.

Parameters:
messages - A list of messages about the Availability Zone.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.