AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ShortFormatText.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QuickSight {
20namespace Model {
21
30 public:
31 AWS_QUICKSIGHT_API ShortFormatText() = default;
32 AWS_QUICKSIGHT_API ShortFormatText(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPlainText() const { return m_plainText; }
41 inline bool PlainTextHasBeenSet() const { return m_plainTextHasBeenSet; }
42 template <typename PlainTextT = Aws::String>
43 void SetPlainText(PlainTextT&& value) {
44 m_plainTextHasBeenSet = true;
45 m_plainText = std::forward<PlainTextT>(value);
46 }
47 template <typename PlainTextT = Aws::String>
48 ShortFormatText& WithPlainText(PlainTextT&& value) {
49 SetPlainText(std::forward<PlainTextT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRichText() const { return m_richText; }
59 inline bool RichTextHasBeenSet() const { return m_richTextHasBeenSet; }
60 template <typename RichTextT = Aws::String>
61 void SetRichText(RichTextT&& value) {
62 m_richTextHasBeenSet = true;
63 m_richText = std::forward<RichTextT>(value);
64 }
65 template <typename RichTextT = Aws::String>
66 ShortFormatText& WithRichText(RichTextT&& value) {
67 SetRichText(std::forward<RichTextT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_plainText;
73
74 Aws::String m_richText;
75 bool m_plainTextHasBeenSet = false;
76 bool m_richTextHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace QuickSight
81} // namespace Aws
AWS_QUICKSIGHT_API ShortFormatText(Aws::Utils::Json::JsonView jsonValue)
ShortFormatText & WithPlainText(PlainTextT &&value)
ShortFormatText & WithRichText(RichTextT &&value)
AWS_QUICKSIGHT_API ShortFormatText()=default
const Aws::String & GetPlainText() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API ShortFormatText & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRichText() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue