public class CognitoUserAttributes extends Object
| Modifier | Constructor and Description |
|---|---|
|
CognitoUserAttributes()
Public constructor, creates an "empty container".
|
protected |
CognitoUserAttributes(List<AttributeType> userAttributes)
Constructor for internal use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attributeName,
String value)
Adds an attribute to this object.
|
Map<String,String> |
getAttributes()
Returns the user attributes as a key, value pairs.
|
protected List<AttributeType> |
getAttributesList()
Returns the user attributes as a
AttributeType list. |
public CognitoUserAttributes()
addAttribute(String, String) method to add user attributes.protected CognitoUserAttributes(List<AttributeType> userAttributes)
userAttributes - REQUIRED: Cognito user attributes as a list.public void addAttribute(String attributeName, 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 Map<String,String> getAttributes()
protected List<AttributeType> getAttributesList()
AttributeType list.AttributeType Cognito user attributes as a list.Copyright © 2020. All rights reserved.