public class DescribeSecurityGroupsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeSecurityGroupsRequest>
DescribeSecurityGroups operation
.
The DescribeSecurityGroups operation returns information about security groups that you own.
If you specify security group names, information about those security group is returned. Otherwise, information for all security group is returned. If you specify a group that does not exist, a fault is returned.
Constructor and Description |
---|
DescribeSecurityGroupsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DescribeSecurityGroupsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
A list of filters used to match properties for SecurityGroups.
|
List<String> |
getGroupIds()
Returns the value of the GroupIds property for this object.
|
List<String> |
getGroupNames()
An optional list of group names that specify the Amazon EC2 security
groups to describe.
|
int |
hashCode() |
void |
setFilters(Collection<Filter> filters)
A list of filters used to match properties for SecurityGroups.
|
void |
setGroupIds(Collection<String> groupIds)
Sets the value of the GroupIds property for this object.
|
void |
setGroupNames(Collection<String> groupNames)
An optional list of group names that specify the Amazon EC2 security
groups to describe.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSecurityGroupsRequest |
withFilters(Collection<Filter> filters)
A list of filters used to match properties for SecurityGroups.
|
DescribeSecurityGroupsRequest |
withFilters(Filter... filters)
A list of filters used to match properties for SecurityGroups.
|
DescribeSecurityGroupsRequest |
withGroupIds(Collection<String> groupIds)
Sets the value of the GroupIds property for this object.
|
DescribeSecurityGroupsRequest |
withGroupIds(String... groupIds)
Sets the value of the GroupIds property for this object.
|
DescribeSecurityGroupsRequest |
withGroupNames(Collection<String> groupNames)
An optional list of group names that specify the Amazon EC2 security
groups to describe.
|
DescribeSecurityGroupsRequest |
withGroupNames(String... groupNames)
An optional list of group names that specify the Amazon EC2 security
groups to describe.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public List<String> getGroupNames()
public void setGroupNames(Collection<String> groupNames)
groupNames
- An optional list of group names that specify the Amazon EC2 security
groups to describe.public DescribeSecurityGroupsRequest withGroupNames(String... groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames
- An optional list of group names that specify the Amazon EC2 security
groups to describe.public DescribeSecurityGroupsRequest withGroupNames(Collection<String> groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames
- An optional list of group names that specify the Amazon EC2 security
groups to describe.public List<String> getGroupIds()
public void setGroupIds(Collection<String> groupIds)
groupIds
- The new value for the GroupIds property for this object.public DescribeSecurityGroupsRequest withGroupIds(String... groupIds)
Returns a reference to this object so that method calls can be chained together.
groupIds
- The new value for the GroupIds property for this object.public DescribeSecurityGroupsRequest withGroupIds(Collection<String> groupIds)
Returns a reference to this object so that method calls can be chained together.
groupIds
- The new value for the GroupIds property for this object.public List<Filter> getFilters()
public void setFilters(Collection<Filter> filters)
filters
- A list of filters used to match properties for SecurityGroups. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public DescribeSecurityGroupsRequest 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 SecurityGroups. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public DescribeSecurityGroupsRequest 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 SecurityGroups. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public Request<DescribeSecurityGroupsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeSecurityGroupsRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.