public static interface GetUserResponse.Builder extends CognitoIdentityProviderResponse.Builder, SdkPojo, CopyableBuilder<GetUserResponse.Builder,GetUserResponse>
Modifier and Type | Method and Description |
---|---|
GetUserResponse.Builder |
mfaOptions(Collection<MFAOptionType> mfaOptions)
This response parameter is no longer supported. It provides information only about SMS MFA
configurations.
|
GetUserResponse.Builder |
mfaOptions(Consumer<MFAOptionType.Builder>... mfaOptions)
This response parameter is no longer supported. It provides information only about SMS MFA
configurations.
|
GetUserResponse.Builder |
mfaOptions(MFAOptionType... mfaOptions)
This response parameter is no longer supported. It provides information only about SMS MFA
configurations.
|
GetUserResponse.Builder |
preferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
|
GetUserResponse.Builder |
userAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
|
GetUserResponse.Builder |
userAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
GetUserResponse.Builder |
userAttributes(Consumer<AttributeType.Builder>... userAttributes)
An array of name-value pairs representing user attributes.
|
GetUserResponse.Builder |
userMFASettingList(Collection<String> userMFASettingList)
The MFA options that are activated for the user.
|
GetUserResponse.Builder |
userMFASettingList(String... userMFASettingList)
The MFA options that are activated for the user.
|
GetUserResponse.Builder |
username(String username)
The username of the user that you requested.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
GetUserResponse.Builder username(String username)
The username of the user that you requested.
username
- The username of the user that you requested.GetUserResponse.Builder userAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
userAttributes
- An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
GetUserResponse.Builder userAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
userAttributes
- An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
GetUserResponse.Builder userAttributes(Consumer<AttributeType.Builder>... userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
AttributeType.Builder
avoiding the need
to create one manually via
AttributeType.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #userAttributes(List
.
userAttributes
- a consumer that will call methods on
AttributeType.Builder
#userAttributes(java.util.Collection)
GetUserResponse.Builder mfaOptions(Collection<MFAOptionType> mfaOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
mfaOptions
- This response parameter is no longer supported. It provides information only about SMS MFA
configurations. It doesn't provide information about time-based one-time password (TOTP) software
token MFA configurations. To look up information about either type of MFA configuration, use
UserMFASettingList instead.GetUserResponse.Builder mfaOptions(MFAOptionType... mfaOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
mfaOptions
- This response parameter is no longer supported. It provides information only about SMS MFA
configurations. It doesn't provide information about time-based one-time password (TOTP) software
token MFA configurations. To look up information about either type of MFA configuration, use
UserMFASettingList instead.GetUserResponse.Builder mfaOptions(Consumer<MFAOptionType.Builder>... mfaOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
This is a convenience method that creates an instance of theMFAOptionType.Builder
avoiding the need
to create one manually via
MFAOptionType.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #mfaOptions(List
.
mfaOptions
- a consumer that will call methods on
MFAOptionType.Builder
#mfaOptions(java.util.Collection)
GetUserResponse.Builder preferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
preferredMfaSetting
- The user's preferred MFA setting.GetUserResponse.Builder userMFASettingList(Collection<String> userMFASettingList)
The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.
userMFASettingList
- The MFA options that are activated for the user. The possible values in this list are
SMS_MFA
and SOFTWARE_TOKEN_MFA
.GetUserResponse.Builder userMFASettingList(String... userMFASettingList)
The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.
userMFASettingList
- The MFA options that are activated for the user. The possible values in this list are
SMS_MFA
and SOFTWARE_TOKEN_MFA
.Copyright © 2023. All rights reserved.