public class CognitoUserAttributes
extends java.lang.Object
Constructor and Description |
---|
CognitoUserAttributes()
Public constructor, creates an "empty container".
|
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.
|
public CognitoUserAttributes()
addAttribute(String, String)
method to add user attributes.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()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.