AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/PlainTextMessage.h>
9#include <aws/lexv2-models/model/CustomPayload.h>
10#include <aws/lexv2-models/model/SSMLMessage.h>
11#include <aws/lexv2-models/model/ImageResponseCard.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
35 class Message
36 {
37 public:
38 AWS_LEXMODELSV2_API Message() = default;
39 AWS_LEXMODELSV2_API Message(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const PlainTextMessage& GetPlainTextMessage() const { return m_plainTextMessage; }
49 inline bool PlainTextMessageHasBeenSet() const { return m_plainTextMessageHasBeenSet; }
50 template<typename PlainTextMessageT = PlainTextMessage>
51 void SetPlainTextMessage(PlainTextMessageT&& value) { m_plainTextMessageHasBeenSet = true; m_plainTextMessage = std::forward<PlainTextMessageT>(value); }
52 template<typename PlainTextMessageT = PlainTextMessage>
53 Message& WithPlainTextMessage(PlainTextMessageT&& value) { SetPlainTextMessage(std::forward<PlainTextMessageT>(value)); return *this;}
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) { m_customPayloadHasBeenSet = true; m_customPayload = std::forward<CustomPayloadT>(value); }
64 template<typename CustomPayloadT = CustomPayload>
65 Message& WithCustomPayload(CustomPayloadT&& value) { SetCustomPayload(std::forward<CustomPayloadT>(value)); return *this;}
67
69
72 inline const SSMLMessage& GetSsmlMessage() const { return m_ssmlMessage; }
73 inline bool SsmlMessageHasBeenSet() const { return m_ssmlMessageHasBeenSet; }
74 template<typename SsmlMessageT = SSMLMessage>
75 void SetSsmlMessage(SsmlMessageT&& value) { m_ssmlMessageHasBeenSet = true; m_ssmlMessage = std::forward<SsmlMessageT>(value); }
76 template<typename SsmlMessageT = SSMLMessage>
77 Message& WithSsmlMessage(SsmlMessageT&& value) { SetSsmlMessage(std::forward<SsmlMessageT>(value)); return *this;}
79
81
85 inline const ImageResponseCard& GetImageResponseCard() const { return m_imageResponseCard; }
86 inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; }
87 template<typename ImageResponseCardT = ImageResponseCard>
88 void SetImageResponseCard(ImageResponseCardT&& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = std::forward<ImageResponseCardT>(value); }
89 template<typename ImageResponseCardT = ImageResponseCard>
90 Message& WithImageResponseCard(ImageResponseCardT&& value) { SetImageResponseCard(std::forward<ImageResponseCardT>(value)); return *this;}
92 private:
93
94 PlainTextMessage m_plainTextMessage;
95 bool m_plainTextMessageHasBeenSet = false;
96
97 CustomPayload m_customPayload;
98 bool m_customPayloadHasBeenSet = false;
99
100 SSMLMessage m_ssmlMessage;
101 bool m_ssmlMessageHasBeenSet = false;
102
103 ImageResponseCard m_imageResponseCard;
104 bool m_imageResponseCardHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace LexModelsV2
109} // namespace Aws
Message & WithCustomPayload(CustomPayloadT &&value)
Definition Message.h:65
const ImageResponseCard & GetImageResponseCard() const
Definition Message.h:85
const CustomPayload & GetCustomPayload() const
Definition Message.h:60
AWS_LEXMODELSV2_API Message()=default
void SetPlainTextMessage(PlainTextMessageT &&value)
Definition Message.h:51
bool SsmlMessageHasBeenSet() const
Definition Message.h:73
bool PlainTextMessageHasBeenSet() const
Definition Message.h:49
AWS_LEXMODELSV2_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
const SSMLMessage & GetSsmlMessage() const
Definition Message.h:72
Message & WithPlainTextMessage(PlainTextMessageT &&value)
Definition Message.h:53
bool CustomPayloadHasBeenSet() const
Definition Message.h:61
AWS_LEXMODELSV2_API Message(Aws::Utils::Json::JsonView jsonValue)
Message & WithImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:90
const PlainTextMessage & GetPlainTextMessage() const
Definition Message.h:48
void SetCustomPayload(CustomPayloadT &&value)
Definition Message.h:63
bool ImageResponseCardHasBeenSet() const
Definition Message.h:86
void SetImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:88
Message & WithSsmlMessage(SsmlMessageT &&value)
Definition Message.h:77
void SetSsmlMessage(SsmlMessageT &&value)
Definition Message.h:75
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue