Interface GetUserAuthFactorsResponse.Builder

  • Method Details

    • username

      The name of the user who is eligible for the authentication factors in the response.

      Parameters:
      username - The name of the user who is eligible for the authentication factors in the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • preferredMfaSetting

      GetUserAuthFactorsResponse.Builder preferredMfaSetting(String preferredMfaSetting)

      The challenge method that Amazon Cognito returns to the user in response to sign-in requests. Users can prefer SMS message, email message, or TOTP MFA.

      Parameters:
      preferredMfaSetting - The challenge method that Amazon Cognito returns to the user in response to sign-in requests. Users can prefer SMS message, email message, or TOTP MFA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userMFASettingList

      GetUserAuthFactorsResponse.Builder userMFASettingList(Collection<String> userMFASettingList)

      The MFA options that are activated for the user. The possible values in this list are SMS_MFA, EMAIL_OTP, and SOFTWARE_TOKEN_MFA.

      Parameters:
      userMFASettingList - The MFA options that are activated for the user. The possible values in this list are SMS_MFA, EMAIL_OTP, and SOFTWARE_TOKEN_MFA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userMFASettingList

      GetUserAuthFactorsResponse.Builder userMFASettingList(String... userMFASettingList)

      The MFA options that are activated for the user. The possible values in this list are SMS_MFA, EMAIL_OTP, and SOFTWARE_TOKEN_MFA.

      Parameters:
      userMFASettingList - The MFA options that are activated for the user. The possible values in this list are SMS_MFA, EMAIL_OTP, and SOFTWARE_TOKEN_MFA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuredUserAuthFactorsWithStrings

      GetUserAuthFactorsResponse.Builder configuredUserAuthFactorsWithStrings(Collection<String> configuredUserAuthFactors)

      The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].

      Parameters:
      configuredUserAuthFactors - The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuredUserAuthFactorsWithStrings

      GetUserAuthFactorsResponse.Builder configuredUserAuthFactorsWithStrings(String... configuredUserAuthFactors)

      The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].

      Parameters:
      configuredUserAuthFactors - The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuredUserAuthFactors

      GetUserAuthFactorsResponse.Builder configuredUserAuthFactors(Collection<AuthFactorType> configuredUserAuthFactors)

      The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].

      Parameters:
      configuredUserAuthFactors - The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuredUserAuthFactors

      GetUserAuthFactorsResponse.Builder configuredUserAuthFactors(AuthFactorType... configuredUserAuthFactors)

      The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].

      Parameters:
      configuredUserAuthFactors - The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].
      Returns:
      Returns a reference to this object so that method calls can be chained together.