/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CognitoIdentityProvider { namespace Model { class SetUserPoolMfaConfigResult { public: AWS_COGNITOIDENTITYPROVIDER_API SetUserPoolMfaConfigResult(); AWS_COGNITOIDENTITYPROVIDER_API SetUserPoolMfaConfigResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOIDENTITYPROVIDER_API SetUserPoolMfaConfigResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The SMS text message MFA configuration.

*/ inline const SmsMfaConfigType& GetSmsMfaConfiguration() const{ return m_smsMfaConfiguration; } /** *

The SMS text message MFA configuration.

*/ inline void SetSmsMfaConfiguration(const SmsMfaConfigType& value) { m_smsMfaConfiguration = value; } /** *

The SMS text message MFA configuration.

*/ inline void SetSmsMfaConfiguration(SmsMfaConfigType&& value) { m_smsMfaConfiguration = std::move(value); } /** *

The SMS text message MFA configuration.

*/ inline SetUserPoolMfaConfigResult& WithSmsMfaConfiguration(const SmsMfaConfigType& value) { SetSmsMfaConfiguration(value); return *this;} /** *

The SMS text message MFA configuration.

*/ inline SetUserPoolMfaConfigResult& WithSmsMfaConfiguration(SmsMfaConfigType&& value) { SetSmsMfaConfiguration(std::move(value)); return *this;} /** *

The software token MFA configuration.

*/ inline const SoftwareTokenMfaConfigType& GetSoftwareTokenMfaConfiguration() const{ return m_softwareTokenMfaConfiguration; } /** *

The software token MFA configuration.

*/ inline void SetSoftwareTokenMfaConfiguration(const SoftwareTokenMfaConfigType& value) { m_softwareTokenMfaConfiguration = value; } /** *

The software token MFA configuration.

*/ inline void SetSoftwareTokenMfaConfiguration(SoftwareTokenMfaConfigType&& value) { m_softwareTokenMfaConfiguration = std::move(value); } /** *

The software token MFA configuration.

*/ inline SetUserPoolMfaConfigResult& WithSoftwareTokenMfaConfiguration(const SoftwareTokenMfaConfigType& value) { SetSoftwareTokenMfaConfiguration(value); return *this;} /** *

The software token MFA configuration.

*/ inline SetUserPoolMfaConfigResult& WithSoftwareTokenMfaConfiguration(SoftwareTokenMfaConfigType&& value) { SetSoftwareTokenMfaConfiguration(std::move(value)); return *this;} /** *

The MFA configuration. Valid values include:

  • * OFF MFA won't be used for any users.

  • * ON MFA is required for all users to sign in.

  • * OPTIONAL MFA will be required only for individual users who have an * MFA factor enabled.

*/ inline const UserPoolMfaType& GetMfaConfiguration() const{ return m_mfaConfiguration; } /** *

The MFA configuration. Valid values include:

  • * OFF MFA won't be used for any users.

  • * ON MFA is required for all users to sign in.

  • * OPTIONAL MFA will be required only for individual users who have an * MFA factor enabled.

*/ inline void SetMfaConfiguration(const UserPoolMfaType& value) { m_mfaConfiguration = value; } /** *

The MFA configuration. Valid values include:

  • * OFF MFA won't be used for any users.

  • * ON MFA is required for all users to sign in.

  • * OPTIONAL MFA will be required only for individual users who have an * MFA factor enabled.

*/ inline void SetMfaConfiguration(UserPoolMfaType&& value) { m_mfaConfiguration = std::move(value); } /** *

The MFA configuration. Valid values include:

  • * OFF MFA won't be used for any users.

  • * ON MFA is required for all users to sign in.

  • * OPTIONAL MFA will be required only for individual users who have an * MFA factor enabled.

*/ inline SetUserPoolMfaConfigResult& WithMfaConfiguration(const UserPoolMfaType& value) { SetMfaConfiguration(value); return *this;} /** *

The MFA configuration. Valid values include:

  • * OFF MFA won't be used for any users.

  • * ON MFA is required for all users to sign in.

  • * OPTIONAL MFA will be required only for individual users who have an * MFA factor enabled.

*/ inline SetUserPoolMfaConfigResult& WithMfaConfiguration(UserPoolMfaType&& value) { SetMfaConfiguration(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline SetUserPoolMfaConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SetUserPoolMfaConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SetUserPoolMfaConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: SmsMfaConfigType m_smsMfaConfiguration; SoftwareTokenMfaConfigType m_softwareTokenMfaConfiguration; UserPoolMfaType m_mfaConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws