@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AdminListGroupsForUserResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
AdminListGroupsForUserResult() |
Modifier and Type | Method and Description |
---|---|
AdminListGroupsForUserResult |
clone() |
boolean |
equals(Object obj) |
List<GroupType> |
getGroups()
The groups that the user belongs to.
|
String |
getNextToken()
An identifier that was returned from the previous call to this operation, which can be used to return the next
set of items in the list.
|
int |
hashCode() |
void |
setGroups(Collection<GroupType> groups)
The groups that the user belongs to.
|
void |
setNextToken(String nextToken)
An identifier that was returned from the previous call to this operation, which can be used to return the next
set of items in the list.
|
String |
toString()
Returns a string representation of this object.
|
AdminListGroupsForUserResult |
withGroups(Collection<GroupType> groups)
The groups that the user belongs to.
|
AdminListGroupsForUserResult |
withGroups(GroupType... groups)
The groups that the user belongs to.
|
AdminListGroupsForUserResult |
withNextToken(String nextToken)
An identifier that was returned from the previous call to this operation, which can be used to return the next
set of items in the list.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<GroupType> getGroups()
The groups that the user belongs to.
public void setGroups(Collection<GroupType> groups)
The groups that the user belongs to.
groups
- The groups that the user belongs to.public AdminListGroupsForUserResult withGroups(GroupType... groups)
The groups that the user belongs to.
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
- The groups that the user belongs to.public AdminListGroupsForUserResult withGroups(Collection<GroupType> groups)
The groups that the user belongs to.
groups
- The groups that the user belongs to.public void setNextToken(String nextToken)
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
nextToken
- An identifier that was returned from the previous call to this operation, which can be used to return the
next set of items in the list.public String getNextToken()
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
public AdminListGroupsForUserResult withNextToken(String nextToken)
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
nextToken
- An identifier that was returned from the previous call to this operation, which can be used to return the
next set of items in the list.public String toString()
toString
in class Object
Object.toString()
public AdminListGroupsForUserResult clone()