com.amazonaws.services.ec2.model
Class AvailabilityZone

java.lang.Object
  extended by com.amazonaws.services.ec2.model.AvailabilityZone
All Implemented Interfaces:
java.io.Serializable

public class AvailabilityZone
extends java.lang.Object
implements java.io.Serializable

Describes an Availability Zone.

See Also:
Serialized Form

Constructor Summary
AvailabilityZone()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvailabilityZone

public AvailabilityZone()
Method Detail

getZoneName

public java.lang.String getZoneName()
The name of the Availability Zone.

Returns:
The name of the Availability Zone.

setZoneName

public void setZoneName(java.lang.String zoneName)
The name of the Availability Zone.

Parameters:
zoneName - The name of the Availability Zone.

withZoneName

public AvailabilityZone withZoneName(java.lang.String zoneName)
The name of the Availability Zone.

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

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

getState

public java.lang.String getState()
The state of the Availability Zone.

Constraints:
Allowed Values: available

Returns:
The state of the Availability Zone.
See Also:
AvailabilityZoneState

setState

public void setState(java.lang.String state)
The state of the Availability Zone.

Constraints:
Allowed Values: available

Parameters:
state - The state of the Availability Zone.
See Also:
AvailabilityZoneState

withState

public AvailabilityZone withState(java.lang.String state)
The state of the Availability Zone.

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

Constraints:
Allowed Values: available

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

setState

public void setState(AvailabilityZoneState state)
The state of the Availability Zone.

Constraints:
Allowed Values: available

Parameters:
state - The state of the Availability Zone.
See Also:
AvailabilityZoneState

withState

public AvailabilityZone withState(AvailabilityZoneState state)
The state of the Availability Zone.

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

Constraints:
Allowed Values: available

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

getRegionName

public java.lang.String getRegionName()
The name of the region.

Returns:
The name of the region.

setRegionName

public void setRegionName(java.lang.String regionName)
The name of the region.

Parameters:
regionName - The name of the region.

withRegionName

public AvailabilityZone withRegionName(java.lang.String regionName)
The name of the region.

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

Parameters:
regionName - The name of the region.
Returns:
A reference to this updated object so that method calls can be chained together.

getMessages

public java.util.List<AvailabilityZoneMessage> getMessages()
Any messages about the Availability Zone.

Returns:
Any messages about the Availability Zone.

setMessages

public void setMessages(java.util.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.

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

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

withMessages

public AvailabilityZone withMessages(java.util.Collection<AvailabilityZoneMessage> messages)
Any messages about the Availability Zone.

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

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

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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