com.amazonaws.services.ec2.model
Class DescribeRegionsRequest

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

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

Container for the parameters to the DescribeRegions operation.

Describes one or more regions that are currently available to you.

For a list of the regions supported by Amazon EC2, see Regions and Endpoints .

See Also:
AmazonEC2.describeRegions(DescribeRegionsRequest), Serialized Form

Constructor Summary
DescribeRegionsRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DescribeRegionsRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<Filter> getFilters()
          One or more filters.
 java.util.List<java.lang.String> getRegionNames()
          The names of one or more regions.
 int hashCode()
           
 void setFilters(java.util.Collection<Filter> filters)
          One or more filters.
 void setRegionNames(java.util.Collection<java.lang.String> regionNames)
          The names of one or more regions.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeRegionsRequest withFilters(java.util.Collection<Filter> filters)
          One or more filters.
 DescribeRegionsRequest withFilters(Filter... filters)
          One or more filters.
 DescribeRegionsRequest withRegionNames(java.util.Collection<java.lang.String> regionNames)
          The names of one or more regions.
 DescribeRegionsRequest withRegionNames(java.lang.String... regionNames)
          The names of one or more regions.
 
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

DescribeRegionsRequest

public DescribeRegionsRequest()
Method Detail

getRegionNames

public java.util.List<java.lang.String> getRegionNames()
The names of one or more regions.

Returns:
The names of one or more regions.

setRegionNames

public void setRegionNames(java.util.Collection<java.lang.String> regionNames)
The names of one or more regions.

Parameters:
regionNames - The names of one or more regions.

withRegionNames

public DescribeRegionsRequest withRegionNames(java.lang.String... regionNames)
The names of one or more regions.

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

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

withRegionNames

public DescribeRegionsRequest withRegionNames(java.util.Collection<java.lang.String> regionNames)
The names of one or more regions.

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

Parameters:
regionNames - The names of one or more regions.
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.
  • endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).

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


setFilters

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

Parameters:
filters - One or more filters.
  • endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).

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


withFilters

public DescribeRegionsRequest 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.
  • endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).

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

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

withFilters

public DescribeRegionsRequest 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.
  • endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).

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

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

getDryRunRequest

public Request<DescribeRegionsRequest> 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<DescribeRegionsRequest>

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.