public class DescribeRegionsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DescribeRegionsRequest>
Contains the parameters for DescribeRegions.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Filter> |
filters
One or more filters.
|
private SdkInternalList<java.lang.String> |
regionNames
The names of one or more regions.
|
NOOP
Constructor and Description |
---|
DescribeRegionsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeRegionsRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private SdkInternalList<java.lang.String> regionNames
The names of one or more regions.
private SdkInternalList<Filter> 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 java.util.List<java.lang.String> getRegionNames()
The names of one or more regions.
public void setRegionNames(java.util.Collection<java.lang.String> regionNames)
The names of one or more regions.
regionNames
- The names of one or more regions.public DescribeRegionsRequest withRegionNames(java.lang.String... regionNames)
The names of one or more regions.
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.
regionNames
- The names of one or more regions.public DescribeRegionsRequest withRegionNames(java.util.Collection<java.lang.String> regionNames)
The names of one or more regions.
regionNames
- The names of one or more regions.public java.util.List<Filter> getFilters()
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
).
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(java.util.Collection<Filter> 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
).
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)
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
).
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.
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(java.util.Collection<Filter> 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
).
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeRegionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()