@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImpersonatedUser extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the impersonated user.
Constructor and Description |
---|
ImpersonatedUser() |
Modifier and Type | Method and Description |
---|---|
ImpersonatedUser |
clone() |
boolean |
equals(Object obj) |
List<String> |
getGroups()
The
group to which the user name belongs. |
String |
getUsername()
Information about the
username that was being impersonated. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGroups(Collection<String> groups)
The
group to which the user name belongs. |
void |
setUsername(String username)
Information about the
username that was being impersonated. |
String |
toString()
Returns a string representation of this object.
|
ImpersonatedUser |
withGroups(Collection<String> groups)
The
group to which the user name belongs. |
ImpersonatedUser |
withGroups(String... groups)
The
group to which the user name belongs. |
ImpersonatedUser |
withUsername(String username)
Information about the
username that was being impersonated. |
public void setUsername(String username)
Information about the username
that was being impersonated.
username
- Information about the username
that was being impersonated.public String getUsername()
Information about the username
that was being impersonated.
username
that was being impersonated.public ImpersonatedUser withUsername(String username)
Information about the username
that was being impersonated.
username
- Information about the username
that was being impersonated.public List<String> getGroups()
The group
to which the user name belongs.
group
to which the user name belongs.public void setGroups(Collection<String> groups)
The group
to which the user name belongs.
groups
- The group
to which the user name belongs.public ImpersonatedUser withGroups(String... groups)
The group
to which the user name belongs.
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 group
to which the user name belongs.public ImpersonatedUser withGroups(Collection<String> groups)
The group
to which the user name belongs.
groups
- The group
to which the user name belongs.public String toString()
toString
in class Object
Object.toString()
public ImpersonatedUser clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.