/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { /** *

Updates the multi-factor authentication (MFA) configuration for the backend * of your Amplify project.

See Also:

AWS * API Reference

*/ class UpdateBackendAuthMFAConfig { public: AWS_AMPLIFYBACKEND_API UpdateBackendAuthMFAConfig(); AWS_AMPLIFYBACKEND_API UpdateBackendAuthMFAConfig(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API UpdateBackendAuthMFAConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The MFA mode for the backend of your Amplify project.

*/ inline const MFAMode& GetMFAMode() const{ return m_mFAMode; } /** *

The MFA mode for the backend of your Amplify project.

*/ inline bool MFAModeHasBeenSet() const { return m_mFAModeHasBeenSet; } /** *

The MFA mode for the backend of your Amplify project.

*/ inline void SetMFAMode(const MFAMode& value) { m_mFAModeHasBeenSet = true; m_mFAMode = value; } /** *

The MFA mode for the backend of your Amplify project.

*/ inline void SetMFAMode(MFAMode&& value) { m_mFAModeHasBeenSet = true; m_mFAMode = std::move(value); } /** *

The MFA mode for the backend of your Amplify project.

*/ inline UpdateBackendAuthMFAConfig& WithMFAMode(const MFAMode& value) { SetMFAMode(value); return *this;} /** *

The MFA mode for the backend of your Amplify project.

*/ inline UpdateBackendAuthMFAConfig& WithMFAMode(MFAMode&& value) { SetMFAMode(std::move(value)); return *this;} /** *

The settings of your MFA configuration for the backend of your Amplify * project.

*/ inline const Settings& GetSettings() const{ return m_settings; } /** *

The settings of your MFA configuration for the backend of your Amplify * project.

*/ inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; } /** *

The settings of your MFA configuration for the backend of your Amplify * project.

*/ inline void SetSettings(const Settings& value) { m_settingsHasBeenSet = true; m_settings = value; } /** *

The settings of your MFA configuration for the backend of your Amplify * project.

*/ inline void SetSettings(Settings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); } /** *

The settings of your MFA configuration for the backend of your Amplify * project.

*/ inline UpdateBackendAuthMFAConfig& WithSettings(const Settings& value) { SetSettings(value); return *this;} /** *

The settings of your MFA configuration for the backend of your Amplify * project.

*/ inline UpdateBackendAuthMFAConfig& WithSettings(Settings&& value) { SetSettings(std::move(value)); return *this;} private: MFAMode m_mFAMode; bool m_mFAModeHasBeenSet = false; Settings m_settings; bool m_settingsHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws