public class CognitoUserAttributes
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
|
CognitoUserAttributes()
Public constructor, creates an "empty container".
|
protected |
CognitoUserAttributes(java.util.List<AttributeType> userAttributes)
Constructor for internal use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String attributeName,
java.lang.String value)
Adds an attribute to this object.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the user attributes as a key, value pairs.
|
protected java.util.List<AttributeType> |
getAttributesList()
Returns the user attributes as a
AttributeType list. |
public CognitoUserAttributes()
addAttribute(String, String) method to add user attributes.protected CognitoUserAttributes(java.util.List<AttributeType> userAttributes)
userAttributes - REQUIRED: Cognito user attributes as a list.public void addAttribute(java.lang.String attributeName,
java.lang.String value)
Will add the attribute and its value. Overrides an earlier value set for an attribute which was already added to this object.
attributeName - REQUIRED: The attribute name.value - REQUIRED: Value for the attribute.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
protected java.util.List<AttributeType> getAttributesList()
AttributeType list.AttributeType Cognito user attributes as a list.