AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/CustomPayload.h>
9#include <aws/lexv2-models/model/ImageResponseCard.h>
10#include <aws/lexv2-models/model/PlainTextMessage.h>
11#include <aws/lexv2-models/model/SSMLMessage.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2 {
23namespace Model {
24
31class Message {
32 public:
33 AWS_LEXMODELSV2_API Message() = default;
34 AWS_LEXMODELSV2_API Message(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELSV2_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const PlainTextMessage& GetPlainTextMessage() const { return m_plainTextMessage; }
43 inline bool PlainTextMessageHasBeenSet() const { return m_plainTextMessageHasBeenSet; }
44 template <typename PlainTextMessageT = PlainTextMessage>
45 void SetPlainTextMessage(PlainTextMessageT&& value) {
46 m_plainTextMessageHasBeenSet = true;
47 m_plainTextMessage = std::forward<PlainTextMessageT>(value);
48 }
49 template <typename PlainTextMessageT = PlainTextMessage>
50 Message& WithPlainTextMessage(PlainTextMessageT&& value) {
51 SetPlainTextMessage(std::forward<PlainTextMessageT>(value));
52 return *this;
53 }
55
57
60 inline const CustomPayload& GetCustomPayload() const { return m_customPayload; }
61 inline bool CustomPayloadHasBeenSet() const { return m_customPayloadHasBeenSet; }
62 template <typename CustomPayloadT = CustomPayload>
63 void SetCustomPayload(CustomPayloadT&& value) {
64 m_customPayloadHasBeenSet = true;
65 m_customPayload = std::forward<CustomPayloadT>(value);
66 }
67 template <typename CustomPayloadT = CustomPayload>
68 Message& WithCustomPayload(CustomPayloadT&& value) {
69 SetCustomPayload(std::forward<CustomPayloadT>(value));
70 return *this;
71 }
73
75
78 inline const SSMLMessage& GetSsmlMessage() const { return m_ssmlMessage; }
79 inline bool SsmlMessageHasBeenSet() const { return m_ssmlMessageHasBeenSet; }
80 template <typename SsmlMessageT = SSMLMessage>
81 void SetSsmlMessage(SsmlMessageT&& value) {
82 m_ssmlMessageHasBeenSet = true;
83 m_ssmlMessage = std::forward<SsmlMessageT>(value);
84 }
85 template <typename SsmlMessageT = SSMLMessage>
86 Message& WithSsmlMessage(SsmlMessageT&& value) {
87 SetSsmlMessage(std::forward<SsmlMessageT>(value));
88 return *this;
89 }
91
93
97 inline const ImageResponseCard& GetImageResponseCard() const { return m_imageResponseCard; }
98 inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; }
99 template <typename ImageResponseCardT = ImageResponseCard>
100 void SetImageResponseCard(ImageResponseCardT&& value) {
101 m_imageResponseCardHasBeenSet = true;
102 m_imageResponseCard = std::forward<ImageResponseCardT>(value);
103 }
104 template <typename ImageResponseCardT = ImageResponseCard>
105 Message& WithImageResponseCard(ImageResponseCardT&& value) {
106 SetImageResponseCard(std::forward<ImageResponseCardT>(value));
107 return *this;
108 }
110 private:
111 PlainTextMessage m_plainTextMessage;
112
113 CustomPayload m_customPayload;
114
115 SSMLMessage m_ssmlMessage;
116
117 ImageResponseCard m_imageResponseCard;
118 bool m_plainTextMessageHasBeenSet = false;
119 bool m_customPayloadHasBeenSet = false;
120 bool m_ssmlMessageHasBeenSet = false;
121 bool m_imageResponseCardHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace LexModelsV2
126} // namespace Aws
Message & WithCustomPayload(CustomPayloadT &&value)
Definition Message.h:68
const ImageResponseCard & GetImageResponseCard() const
Definition Message.h:97
const CustomPayload & GetCustomPayload() const
Definition Message.h:60
AWS_LEXMODELSV2_API Message()=default
void SetPlainTextMessage(PlainTextMessageT &&value)
Definition Message.h:45
bool SsmlMessageHasBeenSet() const
Definition Message.h:79
bool PlainTextMessageHasBeenSet() const
Definition Message.h:43
AWS_LEXMODELSV2_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
const SSMLMessage & GetSsmlMessage() const
Definition Message.h:78
Message & WithPlainTextMessage(PlainTextMessageT &&value)
Definition Message.h:50
bool CustomPayloadHasBeenSet() const
Definition Message.h:61
AWS_LEXMODELSV2_API Message(Aws::Utils::Json::JsonView jsonValue)
Message & WithImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:105
const PlainTextMessage & GetPlainTextMessage() const
Definition Message.h:42
void SetCustomPayload(CustomPayloadT &&value)
Definition Message.h:63
bool ImageResponseCardHasBeenSet() const
Definition Message.h:98
void SetImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:100
Message & WithSsmlMessage(SsmlMessageT &&value)
Definition Message.h:86
void SetSsmlMessage(SsmlMessageT &&value)
Definition Message.h:81
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue