/** * 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 AlexaForBusiness { namespace Model { /** *

The text message.

See Also:

AWS * API Reference

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

The locale of the text message. Currently, en-US is supported.

*/ inline const Locale& GetLocale() const{ return m_locale; } /** *

The locale of the text message. Currently, en-US is supported.

*/ inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; } /** *

The locale of the text message. Currently, en-US is supported.

*/ inline void SetLocale(const Locale& value) { m_localeHasBeenSet = true; m_locale = value; } /** *

The locale of the text message. Currently, en-US is supported.

*/ inline void SetLocale(Locale&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); } /** *

The locale of the text message. Currently, en-US is supported.

*/ inline Text& WithLocale(const Locale& value) { SetLocale(value); return *this;} /** *

The locale of the text message. Currently, en-US is supported.

*/ inline Text& WithLocale(Locale&& value) { SetLocale(std::move(value)); return *this;} /** *

The value of the text message.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the text message.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the text message.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the text message.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the text message.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the text message.

*/ inline Text& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the text message.

*/ inline Text& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the text message.

*/ inline Text& WithValue(const char* value) { SetValue(value); return *this;} private: Locale m_locale; bool m_localeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace AlexaForBusiness } // namespace Aws