@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListGroupsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListGroupsResult() |
Modifier and Type | Method and Description |
---|---|
ListGroupsResult |
clone() |
boolean |
equals(Object obj) |
List<GroupSummary> |
getGroups()
An array of structures that each contain information about one group.
|
String |
getNextToken()
A token that indicates that there is more data available.
|
int |
hashCode() |
void |
setGroups(Collection<GroupSummary> groups)
An array of structures that each contain information about one group.
|
void |
setNextToken(String nextToken)
A token that indicates that there is more data available.
|
String |
toString()
Returns a string representation of this object.
|
ListGroupsResult |
withGroups(Collection<GroupSummary> groups)
An array of structures that each contain information about one group.
|
ListGroupsResult |
withGroups(GroupSummary... groups)
An array of structures that each contain information about one group.
|
ListGroupsResult |
withNextToken(String nextToken)
A token that indicates that there is more data available.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<GroupSummary> getGroups()
An array of structures that each contain information about one group.
public void setGroups(Collection<GroupSummary> groups)
An array of structures that each contain information about one group.
groups
- An array of structures that each contain information about one group.public ListGroupsResult withGroups(GroupSummary... groups)
An array of structures that each contain information about one group.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- An array of structures that each contain information about one group.public ListGroupsResult withGroups(Collection<GroupSummary> groups)
An array of structures that each contain information about one group.
groups
- An array of structures that each contain information about one group.public void setNextToken(String nextToken)
A token that indicates that there is more data available. You can use this token in a subsequent
ListGroups
operation to retrieve the next set of results.
nextToken
- A token that indicates that there is more data available. You can use this token in a subsequent
ListGroups
operation to retrieve the next set of results.public String getNextToken()
A token that indicates that there is more data available. You can use this token in a subsequent
ListGroups
operation to retrieve the next set of results.
ListGroups
operation to retrieve the next set of results.public ListGroupsResult withNextToken(String nextToken)
A token that indicates that there is more data available. You can use this token in a subsequent
ListGroups
operation to retrieve the next set of results.
nextToken
- A token that indicates that there is more data available. You can use this token in a subsequent
ListGroups
operation to retrieve the next set of results.public String toString()
toString
in class Object
Object.toString()
public ListGroupsResult clone()