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

The text format for a subtitle.

This is a union type structure. For * this structure to be valid, only one of the attributes can be * defined.

See Also:

AWS * API Reference

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

Plain text format.

*/ inline const Aws::String& GetPlainText() const{ return m_plainText; } /** *

Plain text format.

*/ inline bool PlainTextHasBeenSet() const { return m_plainTextHasBeenSet; } /** *

Plain text format.

*/ inline void SetPlainText(const Aws::String& value) { m_plainTextHasBeenSet = true; m_plainText = value; } /** *

Plain text format.

*/ inline void SetPlainText(Aws::String&& value) { m_plainTextHasBeenSet = true; m_plainText = std::move(value); } /** *

Plain text format.

*/ inline void SetPlainText(const char* value) { m_plainTextHasBeenSet = true; m_plainText.assign(value); } /** *

Plain text format.

*/ inline LongFormatText& WithPlainText(const Aws::String& value) { SetPlainText(value); return *this;} /** *

Plain text format.

*/ inline LongFormatText& WithPlainText(Aws::String&& value) { SetPlainText(std::move(value)); return *this;} /** *

Plain text format.

*/ inline LongFormatText& WithPlainText(const char* value) { SetPlainText(value); return *this;} /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline const Aws::String& GetRichText() const{ return m_richText; } /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline bool RichTextHasBeenSet() const { return m_richTextHasBeenSet; } /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline void SetRichText(const Aws::String& value) { m_richTextHasBeenSet = true; m_richText = value; } /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline void SetRichText(Aws::String&& value) { m_richTextHasBeenSet = true; m_richText = std::move(value); } /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline void SetRichText(const char* value) { m_richTextHasBeenSet = true; m_richText.assign(value); } /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline LongFormatText& WithRichText(const Aws::String& value) { SetRichText(value); return *this;} /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline LongFormatText& WithRichText(Aws::String&& value) { SetRichText(std::move(value)); return *this;} /** *

Rich text. Examples of rich text include bold, underline, and italics.

*/ inline LongFormatText& WithRichText(const char* value) { SetRichText(value); return *this;} private: Aws::String m_plainText; bool m_plainTextHasBeenSet = false; Aws::String m_richText; bool m_richTextHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws