public class DescribeRegionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeRegionsRequest>
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 .
NOOP| Constructor and Description |
|---|
DescribeRegionsRequest() |
| Modifier and Type | Method and Description |
|---|---|
DescribeRegionsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<DescribeRegionsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
One or more filters.
|
List<String> |
getRegionNames()
The names of one or more regions.
|
int |
hashCode() |
void |
setFilters(Collection<Filter> filters)
One or more filters.
|
void |
setRegionNames(Collection<String> regionNames)
The names of one or more regions.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeRegionsRequest |
withFilters(Collection<Filter> filters)
One or more filters.
|
DescribeRegionsRequest |
withFilters(Filter... filters)
One or more filters.
|
DescribeRegionsRequest |
withRegionNames(Collection<String> regionNames)
The names of one or more regions.
|
DescribeRegionsRequest |
withRegionNames(String... regionNames)
The names of one or more regions.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic List<String> getRegionNames()
public void setRegionNames(Collection<String> regionNames)
regionNames - The names of one or more regions.public DescribeRegionsRequest withRegionNames(String... regionNames)
NOTE: This method appends the values to the existing list (if
any). Use setRegionNames(java.util.Collection) or withRegionNames(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
regionNames - The names of one or more regions.public DescribeRegionsRequest withRegionNames(Collection<String> regionNames)
Returns a reference to this object so that method calls can be chained together.
regionNames - The names of one or more regions.public List<Filter> getFilters()
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).
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).
public void setFilters(Collection<Filter> 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).
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).
public DescribeRegionsRequest withFilters(Filter... 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).
NOTE: This method appends the values to the existing list (if
any). Use setFilters(java.util.Collection) or withFilters(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
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).
public DescribeRegionsRequest withFilters(Collection<Filter> 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 object so that method calls can be chained together.
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).
public Request<DescribeRegionsRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DescribeRegionsRequest>public String toString()
toString in class ObjectObject.toString()public DescribeRegionsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.