@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSecurityGroupsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the output of DescribeSecurityGroups.
Constructor and Description |
---|
DescribeSecurityGroupsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSecurityGroupsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to use to retrieve the next page of results.
|
List<SecurityGroup> |
getSecurityGroups()
Information about one or more security groups.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setSecurityGroups(Collection<SecurityGroup> securityGroups)
Information about one or more security groups.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DescribeSecurityGroupsResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
DescribeSecurityGroupsResult |
withSecurityGroups(Collection<SecurityGroup> securityGroups)
Information about one or more security groups.
|
DescribeSecurityGroupsResult |
withSecurityGroups(SecurityGroup... securityGroups)
Information about one or more security groups.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<SecurityGroup> getSecurityGroups()
Information about one or more security groups.
public void setSecurityGroups(Collection<SecurityGroup> securityGroups)
Information about one or more security groups.
securityGroups
- Information about one or more security groups.public DescribeSecurityGroupsResult withSecurityGroups(SecurityGroup... securityGroups)
Information about one or more security groups.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- Information about one or more security groups.public DescribeSecurityGroupsResult withSecurityGroups(Collection<SecurityGroup> securityGroups)
Information about one or more security groups.
securityGroups
- Information about one or more security groups.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
null
when there are no
more results to return.public DescribeSecurityGroupsResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String toString()
toString
in class Object
Object.toString()
public DescribeSecurityGroupsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.