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

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

See Also:

AWS * API Reference

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

The supported MFA types.

*/ inline const Aws::Vector& GetMfaTypes() const{ return m_mfaTypes; } /** *

The supported MFA types.

*/ inline bool MfaTypesHasBeenSet() const { return m_mfaTypesHasBeenSet; } /** *

The supported MFA types.

*/ inline void SetMfaTypes(const Aws::Vector& value) { m_mfaTypesHasBeenSet = true; m_mfaTypes = value; } /** *

The supported MFA types.

*/ inline void SetMfaTypes(Aws::Vector&& value) { m_mfaTypesHasBeenSet = true; m_mfaTypes = std::move(value); } /** *

The supported MFA types.

*/ inline Settings& WithMfaTypes(const Aws::Vector& value) { SetMfaTypes(value); return *this;} /** *

The supported MFA types.

*/ inline Settings& WithMfaTypes(Aws::Vector&& value) { SetMfaTypes(std::move(value)); return *this;} /** *

The supported MFA types.

*/ inline Settings& AddMfaTypes(const MfaTypesElement& value) { m_mfaTypesHasBeenSet = true; m_mfaTypes.push_back(value); return *this; } /** *

The supported MFA types.

*/ inline Settings& AddMfaTypes(MfaTypesElement&& value) { m_mfaTypesHasBeenSet = true; m_mfaTypes.push_back(std::move(value)); return *this; } /** *

The body of the SMS message.

*/ inline const Aws::String& GetSmsMessage() const{ return m_smsMessage; } /** *

The body of the SMS message.

*/ inline bool SmsMessageHasBeenSet() const { return m_smsMessageHasBeenSet; } /** *

The body of the SMS message.

*/ inline void SetSmsMessage(const Aws::String& value) { m_smsMessageHasBeenSet = true; m_smsMessage = value; } /** *

The body of the SMS message.

*/ inline void SetSmsMessage(Aws::String&& value) { m_smsMessageHasBeenSet = true; m_smsMessage = std::move(value); } /** *

The body of the SMS message.

*/ inline void SetSmsMessage(const char* value) { m_smsMessageHasBeenSet = true; m_smsMessage.assign(value); } /** *

The body of the SMS message.

*/ inline Settings& WithSmsMessage(const Aws::String& value) { SetSmsMessage(value); return *this;} /** *

The body of the SMS message.

*/ inline Settings& WithSmsMessage(Aws::String&& value) { SetSmsMessage(std::move(value)); return *this;} /** *

The body of the SMS message.

*/ inline Settings& WithSmsMessage(const char* value) { SetSmsMessage(value); return *this;} private: Aws::Vector m_mfaTypes; bool m_mfaTypesHasBeenSet = false; Aws::String m_smsMessage; bool m_smsMessageHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws