AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
9#include <aws/lexv2-runtime/model/ImageResponseCard.h>
10#include <aws/lexv2-runtime/model/MessageContentType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexRuntimeV2 {
22namespace Model {
23
30class Message {
31 public:
32 AWS_LEXRUNTIMEV2_API Message() = default;
33 AWS_LEXRUNTIMEV2_API Message(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXRUNTIMEV2_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetContent() const { return m_content; }
42 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
43 template <typename ContentT = Aws::String>
44 void SetContent(ContentT&& value) {
45 m_contentHasBeenSet = true;
46 m_content = std::forward<ContentT>(value);
47 }
48 template <typename ContentT = Aws::String>
49 Message& WithContent(ContentT&& value) {
50 SetContent(std::forward<ContentT>(value));
51 return *this;
52 }
54
56
59 inline MessageContentType GetContentType() const { return m_contentType; }
60 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
62 m_contentTypeHasBeenSet = true;
63 m_contentType = value;
64 }
66 SetContentType(value);
67 return *this;
68 }
70
72
73 inline const ImageResponseCard& GetImageResponseCard() const { return m_imageResponseCard; }
74 inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; }
75 template <typename ImageResponseCardT = ImageResponseCard>
76 void SetImageResponseCard(ImageResponseCardT&& value) {
77 m_imageResponseCardHasBeenSet = true;
78 m_imageResponseCard = std::forward<ImageResponseCardT>(value);
79 }
80 template <typename ImageResponseCardT = ImageResponseCard>
81 Message& WithImageResponseCard(ImageResponseCardT&& value) {
82 SetImageResponseCard(std::forward<ImageResponseCardT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_content;
88
90
91 ImageResponseCard m_imageResponseCard;
92 bool m_contentHasBeenSet = false;
93 bool m_contentTypeHasBeenSet = false;
94 bool m_imageResponseCardHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace LexRuntimeV2
99} // namespace Aws
Message & WithImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:81
void SetImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:76
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentType(MessageContentType value)
Definition Message.h:61
void SetContent(ContentT &&value)
Definition Message.h:44
AWS_LEXRUNTIMEV2_API Message()=default
const Aws::String & GetContent() const
Definition Message.h:41
AWS_LEXRUNTIMEV2_API Message(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageContentType GetContentType() const
Definition Message.h:59
Message & WithContentType(MessageContentType value)
Definition Message.h:65
Message & WithContent(ContentT &&value)
Definition Message.h:49
bool ImageResponseCardHasBeenSet() const
Definition Message.h:74
const ImageResponseCard & GetImageResponseCard() const
Definition Message.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue