Class AddCustomAttributesRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cognitoidp.model.AddCustomAttributesRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class AddCustomAttributesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Represents the request to add custom attributes.

See Also:
  • Constructor Details

    • AddCustomAttributesRequest

      public AddCustomAttributesRequest()
  • Method Details

    • setUserPoolId

      public void setUserPoolId(String userPoolId)

      The user pool ID for the user pool where you want to add custom attributes.

      Parameters:
      userPoolId - The user pool ID for the user pool where you want to add custom attributes.
    • getUserPoolId

      public String getUserPoolId()

      The user pool ID for the user pool where you want to add custom attributes.

      Returns:
      The user pool ID for the user pool where you want to add custom attributes.
    • withUserPoolId

      public AddCustomAttributesRequest withUserPoolId(String userPoolId)

      The user pool ID for the user pool where you want to add custom attributes.

      Parameters:
      userPoolId - The user pool ID for the user pool where you want to add custom attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getCustomAttributes

      public List<SchemaAttributeType> getCustomAttributes()

      An array of custom attributes, such as Mutable and Name.

      Returns:
      An array of custom attributes, such as Mutable and Name.
    • setCustomAttributes

      public void setCustomAttributes(Collection<SchemaAttributeType> customAttributes)

      An array of custom attributes, such as Mutable and Name.

      Parameters:
      customAttributes - An array of custom attributes, such as Mutable and Name.
    • withCustomAttributes

      public AddCustomAttributesRequest withCustomAttributes(SchemaAttributeType... customAttributes)

      An array of custom attributes, such as Mutable and Name.

      NOTE: This method appends the values to the existing list (if any). Use setCustomAttributes(java.util.Collection) or withCustomAttributes(java.util.Collection) if you want to override the existing values.

      Parameters:
      customAttributes - An array of custom attributes, such as Mutable and Name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withCustomAttributes

      public AddCustomAttributesRequest withCustomAttributes(Collection<SchemaAttributeType> customAttributes)

      An array of custom attributes, such as Mutable and Name.

      Parameters:
      customAttributes - An array of custom attributes, such as Mutable and Name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: