AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPlainTextMessage(const PlainTextMessage& value) { m_plainTextMessageHasBeenSet = true; m_plainTextMessage = value; }
51 inline void SetPlainTextMessage(PlainTextMessage&& value) { m_plainTextMessageHasBeenSet = true; m_plainTextMessage = std::move(value); }
52 inline Message& WithPlainTextMessage(const PlainTextMessage& value) { SetPlainTextMessage(value); return *this;}
53 inline Message& WithPlainTextMessage(PlainTextMessage&& value) { SetPlainTextMessage(std::move(value)); return *this;}
55
57
60 inline const CustomPayload& GetCustomPayload() const{ return m_customPayload; }
61 inline bool CustomPayloadHasBeenSet() const { return m_customPayloadHasBeenSet; }
62 inline void SetCustomPayload(const CustomPayload& value) { m_customPayloadHasBeenSet = true; m_customPayload = value; }
63 inline void SetCustomPayload(CustomPayload&& value) { m_customPayloadHasBeenSet = true; m_customPayload = std::move(value); }
64 inline Message& WithCustomPayload(const CustomPayload& value) { SetCustomPayload(value); return *this;}
65 inline Message& WithCustomPayload(CustomPayload&& value) { SetCustomPayload(std::move(value)); return *this;}
67
69
72 inline const SSMLMessage& GetSsmlMessage() const{ return m_ssmlMessage; }
73 inline bool SsmlMessageHasBeenSet() const { return m_ssmlMessageHasBeenSet; }
74 inline void SetSsmlMessage(const SSMLMessage& value) { m_ssmlMessageHasBeenSet = true; m_ssmlMessage = value; }
75 inline void SetSsmlMessage(SSMLMessage&& value) { m_ssmlMessageHasBeenSet = true; m_ssmlMessage = std::move(value); }
76 inline Message& WithSsmlMessage(const SSMLMessage& value) { SetSsmlMessage(value); return *this;}
77 inline Message& WithSsmlMessage(SSMLMessage&& value) { SetSsmlMessage(std::move(value)); return *this;}
79
81
85 inline const ImageResponseCard& GetImageResponseCard() const{ return m_imageResponseCard; }
86 inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; }
87 inline void SetImageResponseCard(const ImageResponseCard& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = value; }
88 inline void SetImageResponseCard(ImageResponseCard&& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = std::move(value); }
89 inline Message& WithImageResponseCard(const ImageResponseCard& value) { SetImageResponseCard(value); return *this;}
90 inline Message& WithImageResponseCard(ImageResponseCard&& value) { SetImageResponseCard(std::move(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
const ImageResponseCard & GetImageResponseCard() const
Definition Message.h:85
const CustomPayload & GetCustomPayload() const
Definition Message.h:60
bool SsmlMessageHasBeenSet() const
Definition Message.h:73
void SetImageResponseCard(ImageResponseCard &&value)
Definition Message.h:88
Message & WithImageResponseCard(ImageResponseCard &&value)
Definition Message.h:90
bool PlainTextMessageHasBeenSet() const
Definition Message.h:49
Message & WithSsmlMessage(const SSMLMessage &value)
Definition Message.h:76
void SetSsmlMessage(const SSMLMessage &value)
Definition Message.h:74
Message & WithImageResponseCard(const ImageResponseCard &value)
Definition Message.h:89
AWS_LEXMODELSV2_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomPayload(CustomPayload &&value)
Definition Message.h:63
const SSMLMessage & GetSsmlMessage() const
Definition Message.h:72
Message & WithSsmlMessage(SSMLMessage &&value)
Definition Message.h:77
bool CustomPayloadHasBeenSet() const
Definition Message.h:61
AWS_LEXMODELSV2_API Message()
void SetCustomPayload(const CustomPayload &value)
Definition Message.h:62
void SetPlainTextMessage(PlainTextMessage &&value)
Definition Message.h:51
AWS_LEXMODELSV2_API Message(Aws::Utils::Json::JsonView jsonValue)
Message & WithCustomPayload(CustomPayload &&value)
Definition Message.h:65
void SetPlainTextMessage(const PlainTextMessage &value)
Definition Message.h:50
const PlainTextMessage & GetPlainTextMessage() const
Definition Message.h:48
bool ImageResponseCardHasBeenSet() const
Definition Message.h:86
void SetImageResponseCard(const ImageResponseCard &value)
Definition Message.h:87
void SetSsmlMessage(SSMLMessage &&value)
Definition Message.h:75
Message & WithCustomPayload(const CustomPayload &value)
Definition Message.h:64
Message & WithPlainTextMessage(PlainTextMessage &&value)
Definition Message.h:53
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Message & WithPlainTextMessage(const PlainTextMessage &value)
Definition Message.h:52
Aws::Utils::Json::JsonValue JsonValue