|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.DescribeSubnetsRequest
public class DescribeSubnetsRequest
Container for the parameters to the DescribeSubnets operation
.
Gives you information about your subnets. You can filter the results to return information only about subnets that match criteria you specify. For example, you could ask to get information about a particular subnet (or all) only if the subnet's state is available. You can specify multiple filters (e.g., the subnet is in a particular VPC, and the subnet's state is available). The result includes information for a particular subnet only if the subnet 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.
AmazonEC2.describeSubnets(DescribeSubnetsRequest)
Constructor Summary | |
---|---|
DescribeSubnetsRequest()
|
Method Summary | |
---|---|
List<Filter> |
getFilters()
|
List<String> |
getSubnetIds()
A set of one or more subnet IDs. |
void |
setFilters(Collection<Filter> filters)
|
void |
setSubnetIds(Collection<String> subnetIds)
A set of one or more subnet IDs. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DescribeSubnetsRequest |
withFilters(Collection<Filter> filters)
Returns a reference to this object so that method calls can be chained together. |
DescribeSubnetsRequest |
withFilters(Filter... filters)
Returns a reference to this object so that method calls can be chained together. |
DescribeSubnetsRequest |
withSubnetIds(Collection<String> subnetIds)
A set of one or more subnet IDs. |
DescribeSubnetsRequest |
withSubnetIds(String... subnetIds)
A set of one or more subnet IDs. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DescribeSubnetsRequest()
Method Detail |
---|
public List<String> getSubnetIds()
public void setSubnetIds(Collection<String> subnetIds)
subnetIds
- A set of one or more subnet IDs.public DescribeSubnetsRequest withSubnetIds(String... subnetIds)
Returns a reference to this object so that method calls can be chained together.
subnetIds
- A set of one or more subnet IDs.
public DescribeSubnetsRequest withSubnetIds(Collection<String> subnetIds)
Returns a reference to this object so that method calls can be chained together.
subnetIds
- A set of one or more subnet IDs.
public List<Filter> getFilters()
public void setFilters(Collection<Filter> filters)
filters
- public DescribeSubnetsRequest withFilters(Filter... filters)
Returns a reference to this object so that method calls can be chained together.
filters
-
public DescribeSubnetsRequest withFilters(Collection<Filter> filters)
Returns a reference to this object so that method calls can be chained together.
filters
-
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |