AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
QuickResponseContents.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/model/QuickResponseContentProvider.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConnectWisdomService {
20namespace Model {
21
29 public:
30 AWS_CONNECTWISDOMSERVICE_API QuickResponseContents() = default;
31 AWS_CONNECTWISDOMSERVICE_API QuickResponseContents(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTWISDOMSERVICE_API QuickResponseContents& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const QuickResponseContentProvider& GetMarkdown() const { return m_markdown; }
38 inline bool MarkdownHasBeenSet() const { return m_markdownHasBeenSet; }
39 template <typename MarkdownT = QuickResponseContentProvider>
40 void SetMarkdown(MarkdownT&& value) {
41 m_markdownHasBeenSet = true;
42 m_markdown = std::forward<MarkdownT>(value);
43 }
44 template <typename MarkdownT = QuickResponseContentProvider>
45 QuickResponseContents& WithMarkdown(MarkdownT&& value) {
46 SetMarkdown(std::forward<MarkdownT>(value));
47 return *this;
48 }
50
52
53 inline const QuickResponseContentProvider& GetPlainText() const { return m_plainText; }
54 inline bool PlainTextHasBeenSet() const { return m_plainTextHasBeenSet; }
55 template <typename PlainTextT = QuickResponseContentProvider>
56 void SetPlainText(PlainTextT&& value) {
57 m_plainTextHasBeenSet = true;
58 m_plainText = std::forward<PlainTextT>(value);
59 }
60 template <typename PlainTextT = QuickResponseContentProvider>
61 QuickResponseContents& WithPlainText(PlainTextT&& value) {
62 SetPlainText(std::forward<PlainTextT>(value));
63 return *this;
64 }
66 private:
68
70 bool m_markdownHasBeenSet = false;
71 bool m_plainTextHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace ConnectWisdomService
76} // namespace Aws
QuickResponseContents & WithPlainText(PlainTextT &&value)
const QuickResponseContentProvider & GetMarkdown() const
AWS_CONNECTWISDOMSERVICE_API QuickResponseContents & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
QuickResponseContents & WithMarkdown(MarkdownT &&value)
AWS_CONNECTWISDOMSERVICE_API QuickResponseContents(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API QuickResponseContents()=default
const QuickResponseContentProvider & GetPlainText() const
Aws::Utils::Json::JsonValue JsonValue