com.amazonaws.services.ec2.model
Class DescribeAvailabilityZonesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DescribeAvailabilityZonesRequest
All Implemented Interfaces:
DryRunSupportedRequest<DescribeAvailabilityZonesRequest>, java.io.Serializable

public class DescribeAvailabilityZonesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DescribeAvailabilityZonesRequest>

Container for the parameters to the DescribeAvailabilityZones operation.

Describes one or more of the Availability Zones that are available to you. The results include zones only for the region you're currently using. If there is an event impacting an Availability Zone, you can use this request to view the state and any provided message for that Availability Zone.

For more information, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.describeAvailabilityZones(DescribeAvailabilityZonesRequest), Serialized Form

Constructor Summary
DescribeAvailabilityZonesRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DescribeAvailabilityZonesRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<Filter> getFilters()
          One or more filters.
 java.util.List<java.lang.String> getZoneNames()
          The names of one or more Availability Zones.
 int hashCode()
           
 void setFilters(java.util.Collection<Filter> filters)
          One or more filters.
 void setZoneNames(java.util.Collection<java.lang.String> zoneNames)
          The names of one or more Availability Zones.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeAvailabilityZonesRequest withFilters(java.util.Collection<Filter> filters)
          One or more filters.
 DescribeAvailabilityZonesRequest withFilters(Filter... filters)
          One or more filters.
 DescribeAvailabilityZonesRequest withZoneNames(java.util.Collection<java.lang.String> zoneNames)
          The names of one or more Availability Zones.
 DescribeAvailabilityZonesRequest withZoneNames(java.lang.String... zoneNames)
          The names of one or more Availability Zones.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeAvailabilityZonesRequest

public DescribeAvailabilityZonesRequest()
Method Detail

getZoneNames

public java.util.List<java.lang.String> getZoneNames()
The names of one or more Availability Zones.

Returns:
The names of one or more Availability Zones.

setZoneNames

public void setZoneNames(java.util.Collection<java.lang.String> zoneNames)
The names of one or more Availability Zones.

Parameters:
zoneNames - The names of one or more Availability Zones.

withZoneNames

public DescribeAvailabilityZonesRequest withZoneNames(java.lang.String... zoneNames)
The names of one or more Availability Zones.

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

Parameters:
zoneNames - The names of one or more Availability Zones.
Returns:
A reference to this updated object so that method calls can be chained together.

withZoneNames

public DescribeAvailabilityZonesRequest withZoneNames(java.util.Collection<java.lang.String> zoneNames)
The names of one or more Availability Zones.

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

Parameters:
zoneNames - The names of one or more Availability Zones.
Returns:
A reference to this updated object so that method calls can be chained together.

getFilters

public java.util.List<Filter> getFilters()
One or more filters.

Returns:
One or more filters.
  • message - Information about the Availability Zone.

  • region-name - The name of the region for the Availability Zone (for example, us-east-1).

  • state - The state of the Availability Zone (available | impaired | unavailable).

  • zone-name - The name of the Availability Zone (for example, us-east-1a).


setFilters

public void setFilters(java.util.Collection<Filter> filters)
One or more filters.

Parameters:
filters - One or more filters.
  • message - Information about the Availability Zone.

  • region-name - The name of the region for the Availability Zone (for example, us-east-1).

  • state - The state of the Availability Zone (available | impaired | unavailable).

  • zone-name - The name of the Availability Zone (for example, us-east-1a).


withFilters

public DescribeAvailabilityZonesRequest withFilters(Filter... filters)
One or more filters.

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

Parameters:
filters - One or more filters.
  • message - Information about the Availability Zone.

  • region-name - The name of the region for the Availability Zone (for example, us-east-1).

  • state - The state of the Availability Zone (available | impaired | unavailable).

  • zone-name - The name of the Availability Zone (for example, us-east-1a).

Returns:
A reference to this updated object so that method calls can be chained together.

withFilters

public DescribeAvailabilityZonesRequest withFilters(java.util.Collection<Filter> filters)
One or more filters.

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

Parameters:
filters - One or more filters.
  • message - Information about the Availability Zone.

  • region-name - The name of the region for the Availability Zone (for example, us-east-1).

  • state - The state of the Availability Zone (available | impaired | unavailable).

  • zone-name - The name of the Availability Zone (for example, us-east-1a).

Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<DescribeAvailabilityZonesRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DescribeAvailabilityZonesRequest>

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.