public class DescribeVpcsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeVpcsRequest>
DescribeVpcs operation
.
Gives you information about your VPCs. You can filter the results to return information only about VPCs that match criteria you specify.
For example, you could ask to get information about a particular VPC or VPCs (or all your VPCs) only if the VPC's state is available. You can specify multiple filters (e.g., the VPC uses one of several sets of DHCP options, and the VPC's state is available). The result includes information for a particular VPC only if the VPC matches all your filters.
If there's no match, no special message is returned; the response is simply empty. The following table shows the available filters.
Constructor and Description |
---|
DescribeVpcsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DescribeVpcsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
A list of filters used to match properties for VPCs.
|
List<String> |
getVpcIds()
The ID of a VPC you want information about.
|
int |
hashCode() |
void |
setFilters(Collection<Filter> filters)
A list of filters used to match properties for VPCs.
|
void |
setVpcIds(Collection<String> vpcIds)
The ID of a VPC you want information about.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeVpcsRequest |
withFilters(Collection<Filter> filters)
A list of filters used to match properties for VPCs.
|
DescribeVpcsRequest |
withFilters(Filter... filters)
A list of filters used to match properties for VPCs.
|
DescribeVpcsRequest |
withVpcIds(Collection<String> vpcIds)
The ID of a VPC you want information about.
|
DescribeVpcsRequest |
withVpcIds(String... vpcIds)
The ID of a VPC you want information about.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public List<String> getVpcIds()
public void setVpcIds(Collection<String> vpcIds)
vpcIds
- The ID of a VPC you want information about.public DescribeVpcsRequest withVpcIds(String... vpcIds)
Returns a reference to this object so that method calls can be chained together.
vpcIds
- The ID of a VPC you want information about.public DescribeVpcsRequest withVpcIds(Collection<String> vpcIds)
Returns a reference to this object so that method calls can be chained together.
vpcIds
- The ID of a VPC you want information about.public List<Filter> getFilters()
public void setFilters(Collection<Filter> filters)
filters
- A list of filters used to match properties for VPCs. For a complete
reference to the available filter keys for this operation, see the Amazon
EC2 API reference.public DescribeVpcsRequest withFilters(Filter... filters)
Returns a reference to this object so that method calls can be chained together.
filters
- A list of filters used to match properties for VPCs. For a complete
reference to the available filter keys for this operation, see the Amazon
EC2 API reference.public DescribeVpcsRequest withFilters(Collection<Filter> filters)
Returns a reference to this object so that method calls can be chained together.
filters
- A list of filters used to match properties for VPCs. For a complete
reference to the available filter keys for this operation, see the Amazon
EC2 API reference.public Request<DescribeVpcsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeVpcsRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.