public AdminInitiateAuthResult withChallengeName(String challengeName) {
        setChallengeName(challengeName);
        return this;
    }
<p>
The name of the challenge that you're responding to with this call. This is returned in the
<code>AdminInitiateAuth</code> response if you must pass another challenge.
</p>
<ul>
<li>
<p>
<code>MFA_SETUP</code>: If MFA is required, users who don't have at least one of the MFA methods set up are
presented with an <code>MFA_SETUP</code> challenge. The user must set up at least one MFA type to continue to
authenticate.
</p>
</li>
<li>
<p>
<code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are <code>SMS_MFA</code> for text SMS MFA,
and <code>SOFTWARE_TOKEN_MFA</code> for time-based one-time password (TOTP) software token MFA.
</p>
</li>
<li>
<p>
<code>SMS_MFA</code>: Next challenge is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.
</p>
</li>
<li>
<p>
<code>PASSWORD_VERIFIER</code>: Next challenge is to supply <code>PASSWORD_CLAIM_SIGNATURE</code>,
<code>PASSWORD_CLAIM_SECRET_BLOCK</code>, and <code>TIMESTAMP</code> after the client-side SRP calculations.
</p>
</li>
<li>
<p>
<code>CUSTOM_CHALLENGE</code>: This is returned if your custom authentication flow determines that the user
should pass another challenge before tokens are issued.
</p>
</li>
<li>
<p>
<code>DEVICE_SRP_AUTH</code>: If device tracking was activated in your user pool and the previous challenges were
passed, this challenge is returned so that Amazon Cognito can start tracking this device.
</p>
</li>
<li>
<p>
<code>DEVICE_PASSWORD_VERIFIER</code>: Similar to <code>PASSWORD_VERIFIER</code>, but for devices only.
</p>
</li>
<li>
<p>
<code>ADMIN_NO_SRP_AUTH</code>: This is returned if you must authenticate with <code>USERNAME</code> and
<code>PASSWORD</code> directly. An app client must be enabled to use this flow.
</p>
</li>
<li>
<p>
<code>NEW_PASSWORD_REQUIRED</code>: For users who are required to change their passwords after successful first
login. Respond to this challenge with <code>NEW_PASSWORD</code> and any required attributes that Amazon Cognito
returned in the <code>requiredAttributes</code> parameter. You can also set values for attributes that aren't
required by your user pool and that your app client can write. For more information, see <a href=
"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminRespondToAuthChallenge.html"
>AdminRespondToAuthChallenge</a>.
</p>
<note>
<p>
In a <code>NEW_PASSWORD_REQUIRED</code> challenge response, you can't modify a required attribute that already
has a value. In <code>AdminRespondToAuthChallenge</code>, set a value for any keys that Amazon Cognito returned
in the <code>requiredAttributes</code> parameter, then use the <code>AdminUpdateUserAttributes</code> API
operation to modify the value of any additional attributes.
</p>
</note></li>
<li>
<p>
<code>MFA_SETUP</code>: For users who are required to set up an MFA factor before they can sign in. The MFA types
activated for the user pool will be listed in the challenge parameters <code>MFAS_CAN_SETUP</code> value.
</p>
<p>
To set up software token MFA, use the session returned here from <code>InitiateAuth</code> as an input to
<code>AssociateSoftwareToken</code>, and use the session returned by <code>VerifySoftwareToken</code> as an input
to <code>RespondToAuthChallenge</code> with challenge name <code>MFA_SETUP</code> to complete sign-in. To set up
SMS MFA, users will need help from an administrator to add a phone number to their account and then call
<code>InitiateAuth</code> again to restart sign-in.
</p>
</li>
</ul>

@param challengeName
       The name of the challenge that you're responding to with this call. This is returned in the
       <code>AdminInitiateAuth</code> response if you must pass another challenge.</p>
       <ul>
       <li>
       <p>
       <code>MFA_SETUP</code>: If MFA is required, users who don't have at least one of the MFA methods set up
       are presented with an <code>MFA_SETUP</code> challenge. The user must set up at least one MFA type to
       continue to authenticate.
       </p>
       </li>
       <li>
       <p>
       <code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are <code>SMS_MFA</code> for text
       SMS MFA, and <code>SOFTWARE_TOKEN_MFA</code> for time-based one-time password (TOTP) software token MFA.
       </p>
       </li>
       <li>
       <p>
       <code>SMS_MFA</code>: Next challenge is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.
       </p>
       </li>
       <li>
       <p>
       <code>PASSWORD_VERIFIER</code>: Next challenge is to supply <code>PASSWORD_CLAIM_SIGNATURE</code>,
       <code>PASSWORD_CLAIM_SECRET_BLOCK</code>, and <code>TIMESTAMP</code> after the client-side SRP
       calculations.
       </p>
       </li>
       <li>
       <p>
       <code>CUSTOM_CHALLENGE</code>: This is returned if your custom authentication flow determines that the
       user should pass another challenge before tokens are issued.
       </p>
       </li>
       <li>
       <p>
       <code>DEVICE_SRP_AUTH</code>: If device tracking was activated in your user pool and the previous
       challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.
       </p>
       </li>
       <li>
       <p>
       <code>DEVICE_PASSWORD_VERIFIER</code>: Similar to <code>PASSWORD_VERIFIER</code>, but for devices only.
       </p>
       </li>
       <li>
       <p>
       <code>ADMIN_NO_SRP_AUTH</code>: This is returned if you must authenticate with <code>USERNAME</code> and
       <code>PASSWORD</code> directly. An app client must be enabled to use this flow.
       </p>
       </li>
       <li>
       <p>
       <code>NEW_PASSWORD_REQUIRED</code>: For users who are required to change their passwords after successful
       first login. Respond to this challenge with <code>NEW_PASSWORD</code> and any required attributes that
       Amazon Cognito returned in the <code>requiredAttributes</code> parameter. You can also set values for
       attributes that aren't required by your user pool and that your app client can write. For more
       information, see <a href=
       "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminRespondToAuthChallenge.html"
       >AdminRespondToAuthChallenge</a>.
       </p>
       <note>
       <p>
       In a <code>NEW_PASSWORD_REQUIRED</code> challenge response, you can't modify a required attribute that
       already has a value. In <code>AdminRespondToAuthChallenge</code>, set a value for any keys that Amazon
       Cognito returned in the <code>requiredAttributes</code> parameter, then use the
       <code>AdminUpdateUserAttributes</code> API operation to modify the value of any additional attributes.
       </p>
       </note></li>
       <li>
       <p>
       <code>MFA_SETUP</code>: For users who are required to set up an MFA factor before they can sign in. The
       MFA types activated for the user pool will be listed in the challenge parameters
       <code>MFAS_CAN_SETUP</code> value.
       </p>
       <p>
       To set up software token MFA, use the session returned here from <code>InitiateAuth</code> as an input to
       <code>AssociateSoftwareToken</code>, and use the session returned by <code>VerifySoftwareToken</code> as
       an input to <code>RespondToAuthChallenge</code> with challenge name <code>MFA_SETUP</code> to complete
       sign-in. To set up SMS MFA, users will need help from an administrator to add a phone number to their
       account and then call <code>InitiateAuth</code> again to restart sign-in.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ChallengeNameType
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AdminInitiateAuthResult.java