/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CognitoIdentityProvider { namespace Model { /** */ class SetUserMFAPreferenceRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API SetUserMFAPreferenceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetUserMFAPreference"; } AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The SMS text message multi-factor authentication (MFA) settings.

*/ inline const SMSMfaSettingsType& GetSMSMfaSettings() const{ return m_sMSMfaSettings; } /** *

The SMS text message multi-factor authentication (MFA) settings.

*/ inline bool SMSMfaSettingsHasBeenSet() const { return m_sMSMfaSettingsHasBeenSet; } /** *

The SMS text message multi-factor authentication (MFA) settings.

*/ inline void SetSMSMfaSettings(const SMSMfaSettingsType& value) { m_sMSMfaSettingsHasBeenSet = true; m_sMSMfaSettings = value; } /** *

The SMS text message multi-factor authentication (MFA) settings.

*/ inline void SetSMSMfaSettings(SMSMfaSettingsType&& value) { m_sMSMfaSettingsHasBeenSet = true; m_sMSMfaSettings = std::move(value); } /** *

The SMS text message multi-factor authentication (MFA) settings.

*/ inline SetUserMFAPreferenceRequest& WithSMSMfaSettings(const SMSMfaSettingsType& value) { SetSMSMfaSettings(value); return *this;} /** *

The SMS text message multi-factor authentication (MFA) settings.

*/ inline SetUserMFAPreferenceRequest& WithSMSMfaSettings(SMSMfaSettingsType&& value) { SetSMSMfaSettings(std::move(value)); return *this;} /** *

The time-based one-time password (TOTP) software token MFA settings.

*/ inline const SoftwareTokenMfaSettingsType& GetSoftwareTokenMfaSettings() const{ return m_softwareTokenMfaSettings; } /** *

The time-based one-time password (TOTP) software token MFA settings.

*/ inline bool SoftwareTokenMfaSettingsHasBeenSet() const { return m_softwareTokenMfaSettingsHasBeenSet; } /** *

The time-based one-time password (TOTP) software token MFA settings.

*/ inline void SetSoftwareTokenMfaSettings(const SoftwareTokenMfaSettingsType& value) { m_softwareTokenMfaSettingsHasBeenSet = true; m_softwareTokenMfaSettings = value; } /** *

The time-based one-time password (TOTP) software token MFA settings.

*/ inline void SetSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType&& value) { m_softwareTokenMfaSettingsHasBeenSet = true; m_softwareTokenMfaSettings = std::move(value); } /** *

The time-based one-time password (TOTP) software token MFA settings.

*/ inline SetUserMFAPreferenceRequest& WithSoftwareTokenMfaSettings(const SoftwareTokenMfaSettingsType& value) { SetSoftwareTokenMfaSettings(value); return *this;} /** *

The time-based one-time password (TOTP) software token MFA settings.

*/ inline SetUserMFAPreferenceRequest& WithSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType&& value) { SetSoftwareTokenMfaSettings(std::move(value)); return *this;} /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline SetUserMFAPreferenceRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline SetUserMFAPreferenceRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *

A valid access token that Amazon Cognito issued to the user whose MFA * preference you want to set.

*/ inline SetUserMFAPreferenceRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} private: SMSMfaSettingsType m_sMSMfaSettings; bool m_sMSMfaSettingsHasBeenSet = false; SoftwareTokenMfaSettingsType m_softwareTokenMfaSettings; bool m_softwareTokenMfaSettingsHasBeenSet = false; Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws