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:
  • Constructor Details

    • AvailabilityZone

      public AvailabilityZone()
  • Method Details

    • 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:
    • getState

      public String getState()

      The state of the Availability Zone.

      Returns:
      The state of the Availability Zone.
      See Also:
    • 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:
    • setState

      public void setState(AvailabilityZoneState state)

      The state of the Availability Zone.

      Parameters:
      state - The state of the Availability Zone.
      See Also:
    • 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:
    • 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) or withMessages(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AvailabilityZone clone()
      Overrides:
      clone in class Object