AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QuickResponseContents.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/QuickResponseContentProvider.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QCONNECT_API QuickResponseContents() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const QuickResponseContentProvider& GetPlainText() const { return m_plainText; }
44 inline bool PlainTextHasBeenSet() const { return m_plainTextHasBeenSet; }
45 template<typename PlainTextT = QuickResponseContentProvider>
46 void SetPlainText(PlainTextT&& value) { m_plainTextHasBeenSet = true; m_plainText = std::forward<PlainTextT>(value); }
47 template<typename PlainTextT = QuickResponseContentProvider>
48 QuickResponseContents& WithPlainText(PlainTextT&& value) { SetPlainText(std::forward<PlainTextT>(value)); return *this;}
50
52
53 inline const QuickResponseContentProvider& GetMarkdown() const { return m_markdown; }
54 inline bool MarkdownHasBeenSet() const { return m_markdownHasBeenSet; }
55 template<typename MarkdownT = QuickResponseContentProvider>
56 void SetMarkdown(MarkdownT&& value) { m_markdownHasBeenSet = true; m_markdown = std::forward<MarkdownT>(value); }
57 template<typename MarkdownT = QuickResponseContentProvider>
58 QuickResponseContents& WithMarkdown(MarkdownT&& value) { SetMarkdown(std::forward<MarkdownT>(value)); return *this;}
60 private:
61
63 bool m_plainTextHasBeenSet = false;
64
66 bool m_markdownHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace QConnect
71} // namespace Aws
const QuickResponseContentProvider & GetPlainText() const
QuickResponseContents & WithMarkdown(MarkdownT &&value)
AWS_QCONNECT_API QuickResponseContents & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API QuickResponseContents()=default
const QuickResponseContentProvider & GetMarkdown() const
QuickResponseContents & WithPlainText(PlainTextT &&value)
AWS_QCONNECT_API QuickResponseContents(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue