Interface AddCustomAttributesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CognitoIdentityProviderRequest.Builder,CopyableBuilder<AddCustomAttributesRequest.Builder,AddCustomAttributesRequest>,SdkBuilder<AddCustomAttributesRequest.Builder,AddCustomAttributesRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- AddCustomAttributesRequest
public static interface AddCustomAttributesRequest.Builder extends CognitoIdentityProviderRequest.Builder, SdkPojo, CopyableBuilder<AddCustomAttributesRequest.Builder,AddCustomAttributesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddCustomAttributesRequest.BuildercustomAttributes(Collection<SchemaAttributeType> customAttributes)An array of custom attribute names and other properties.AddCustomAttributesRequest.BuildercustomAttributes(Consumer<SchemaAttributeType.Builder>... customAttributes)An array of custom attribute names and other properties.AddCustomAttributesRequest.BuildercustomAttributes(SchemaAttributeType... customAttributes)An array of custom attribute names and other properties.AddCustomAttributesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AddCustomAttributesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AddCustomAttributesRequest.BuilderuserPoolId(String userPoolId)The ID of the user pool where you want to add custom attributes.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
userPoolId
AddCustomAttributesRequest.Builder userPoolId(String userPoolId)
The ID of the user pool where you want to add custom attributes.
- Parameters:
userPoolId- The ID of 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.
-
customAttributes
AddCustomAttributesRequest.Builder customAttributes(Collection<SchemaAttributeType> customAttributes)
An array of custom attribute names and other properties. Sets the following characteristics:
- AttributeDataType
-
The expected data type. Can be a string, a number, a date and time, or a boolean.
- Mutable
-
If true, you can grant app clients write access to the attribute value. If false, the attribute value can only be set up on sign-up or administrator creation of users.
- Name
-
The attribute name. For an attribute like
custom:myAttribute, entermyAttributefor this field. - Required
-
When true, users who sign up or are created must set a value for the attribute.
- NumberAttributeConstraints
-
The minimum and maximum length of accepted values for a
Number-type attribute. - StringAttributeConstraints
-
The minimum and maximum length of accepted values for a
String-type attribute. - DeveloperOnlyAttribute
-
This legacy option creates an attribute with a
dev:prefix. You can only set the value of a developer-only attribute with administrative IAM credentials.
- Parameters:
customAttributes- An array of custom attribute names and other properties. Sets the following characteristics:- AttributeDataType
-
The expected data type. Can be a string, a number, a date and time, or a boolean.
- Mutable
-
If true, you can grant app clients write access to the attribute value. If false, the attribute value can only be set up on sign-up or administrator creation of users.
- Name
-
The attribute name. For an attribute like
custom:myAttribute, entermyAttributefor this field. - Required
-
When true, users who sign up or are created must set a value for the attribute.
- NumberAttributeConstraints
-
The minimum and maximum length of accepted values for a
Number-type attribute. - StringAttributeConstraints
-
The minimum and maximum length of accepted values for a
String-type attribute. - DeveloperOnlyAttribute
-
This legacy option creates an attribute with a
dev:prefix. You can only set the value of a developer-only attribute with administrative IAM credentials.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
AddCustomAttributesRequest.Builder customAttributes(SchemaAttributeType... customAttributes)
An array of custom attribute names and other properties. Sets the following characteristics:
- AttributeDataType
-
The expected data type. Can be a string, a number, a date and time, or a boolean.
- Mutable
-
If true, you can grant app clients write access to the attribute value. If false, the attribute value can only be set up on sign-up or administrator creation of users.
- Name
-
The attribute name. For an attribute like
custom:myAttribute, entermyAttributefor this field. - Required
-
When true, users who sign up or are created must set a value for the attribute.
- NumberAttributeConstraints
-
The minimum and maximum length of accepted values for a
Number-type attribute. - StringAttributeConstraints
-
The minimum and maximum length of accepted values for a
String-type attribute. - DeveloperOnlyAttribute
-
This legacy option creates an attribute with a
dev:prefix. You can only set the value of a developer-only attribute with administrative IAM credentials.
- Parameters:
customAttributes- An array of custom attribute names and other properties. Sets the following characteristics:- AttributeDataType
-
The expected data type. Can be a string, a number, a date and time, or a boolean.
- Mutable
-
If true, you can grant app clients write access to the attribute value. If false, the attribute value can only be set up on sign-up or administrator creation of users.
- Name
-
The attribute name. For an attribute like
custom:myAttribute, entermyAttributefor this field. - Required
-
When true, users who sign up or are created must set a value for the attribute.
- NumberAttributeConstraints
-
The minimum and maximum length of accepted values for a
Number-type attribute. - StringAttributeConstraints
-
The minimum and maximum length of accepted values for a
String-type attribute. - DeveloperOnlyAttribute
-
This legacy option creates an attribute with a
dev:prefix. You can only set the value of a developer-only attribute with administrative IAM credentials.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
AddCustomAttributesRequest.Builder customAttributes(Consumer<SchemaAttributeType.Builder>... customAttributes)
An array of custom attribute names and other properties. Sets the following characteristics:
- AttributeDataType
-
The expected data type. Can be a string, a number, a date and time, or a boolean.
- Mutable
-
If true, you can grant app clients write access to the attribute value. If false, the attribute value can only be set up on sign-up or administrator creation of users.
- Name
-
The attribute name. For an attribute like
custom:myAttribute, entermyAttributefor this field. - Required
-
When true, users who sign up or are created must set a value for the attribute.
- NumberAttributeConstraints
-
The minimum and maximum length of accepted values for a
Number-type attribute. - StringAttributeConstraints
-
The minimum and maximum length of accepted values for a
String-type attribute. - DeveloperOnlyAttribute
-
This legacy option creates an attribute with a
dev:prefix. You can only set the value of a developer-only attribute with administrative IAM credentials.
SchemaAttributeType.Builderavoiding the need to create one manually viaSchemaAttributeType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#customAttributes(List.) - Parameters:
customAttributes- a consumer that will call methods onSchemaAttributeType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#customAttributes(java.util.Collection)
-
overrideConfiguration
AddCustomAttributesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AddCustomAttributesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-