public class AddCustomAttributesRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Adds additional user attributes to the user pool schema.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
| Constructor and Description |
|---|
AddCustomAttributesRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<SchemaAttributeType> |
getCustomAttributes()
An array of custom attributes, such as Mutable and Name.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool where you want to add custom
attributes.
|
int |
hashCode() |
void |
setCustomAttributes(java.util.Collection<SchemaAttributeType> customAttributes)
An array of custom attributes, such as Mutable and Name.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to add custom
attributes.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddCustomAttributesRequest |
withCustomAttributes(java.util.Collection<SchemaAttributeType> customAttributes)
An array of custom attributes, such as Mutable and Name.
|
AddCustomAttributesRequest |
withCustomAttributes(SchemaAttributeType... customAttributes)
An array of custom attributes, such as Mutable and Name.
|
AddCustomAttributesRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to add custom
attributes.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The user pool ID for the user pool where you want to add custom attributes.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for the user pool where you want to add custom attributes.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to add custom attributes.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool where you want to add custom attributes.
public AddCustomAttributesRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to add custom attributes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool where you want to add custom attributes.
public java.util.List<SchemaAttributeType> getCustomAttributes()
An array of custom attributes, such as Mutable and Name.
An array of custom attributes, such as Mutable and Name.
public void setCustomAttributes(java.util.Collection<SchemaAttributeType> customAttributes)
An array of custom attributes, such as Mutable and Name.
customAttributes - An array of custom attributes, such as Mutable and Name.
public AddCustomAttributesRequest withCustomAttributes(SchemaAttributeType... customAttributes)
An array of custom attributes, such as Mutable and Name.
Returns a reference to this object so that method calls can be chained together.
customAttributes - An array of custom attributes, such as Mutable and Name.
public AddCustomAttributesRequest withCustomAttributes(java.util.Collection<SchemaAttributeType> customAttributes)
An array of custom attributes, such as Mutable and Name.
Returns a reference to this object so that method calls can be chained together.
customAttributes - An array of custom attributes, such as Mutable and Name.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object