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-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-runtime/model/MessageContentType.h>
10#include <aws/lexv2-runtime/model/ImageResponseCard.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexRuntimeV2
24{
25namespace Model
26{
27
34 class Message
35 {
36 public:
37 AWS_LEXRUNTIMEV2_API Message();
38 AWS_LEXRUNTIMEV2_API Message(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMEV2_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetContent() const{ return m_content; }
48 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
49 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
50 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
51 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
52 inline Message& WithContent(const Aws::String& value) { SetContent(value); return *this;}
53 inline Message& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
54 inline Message& WithContent(const char* value) { SetContent(value); return *this;}
56
58
61 inline const MessageContentType& GetContentType() const{ return m_contentType; }
62 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
63 inline void SetContentType(const MessageContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
64 inline void SetContentType(MessageContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
65 inline Message& WithContentType(const MessageContentType& value) { SetContentType(value); return *this;}
66 inline Message& WithContentType(MessageContentType&& value) { SetContentType(std::move(value)); return *this;}
68
70
71 inline const ImageResponseCard& GetImageResponseCard() const{ return m_imageResponseCard; }
72 inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; }
73 inline void SetImageResponseCard(const ImageResponseCard& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = value; }
74 inline void SetImageResponseCard(ImageResponseCard&& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = std::move(value); }
75 inline Message& WithImageResponseCard(const ImageResponseCard& value) { SetImageResponseCard(value); return *this;}
76 inline Message& WithImageResponseCard(ImageResponseCard&& value) { SetImageResponseCard(std::move(value)); return *this;}
78 private:
79
80 Aws::String m_content;
81 bool m_contentHasBeenSet = false;
82
83 MessageContentType m_contentType;
84 bool m_contentTypeHasBeenSet = false;
85
86 ImageResponseCard m_imageResponseCard;
87 bool m_imageResponseCardHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace LexRuntimeV2
92} // namespace Aws
Message & WithContent(const Aws::String &value)
Definition Message.h:52
Message & WithContent(Aws::String &&value)
Definition Message.h:53
Message & WithContentType(MessageContentType &&value)
Definition Message.h:66
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImageResponseCard(ImageResponseCard &&value)
Definition Message.h:74
Message & WithContentType(const MessageContentType &value)
Definition Message.h:65
Message & WithContent(const char *value)
Definition Message.h:54
void SetContentType(MessageContentType &&value)
Definition Message.h:64
void SetImageResponseCard(const ImageResponseCard &value)
Definition Message.h:73
const Aws::String & GetContent() const
Definition Message.h:47
void SetContent(const Aws::String &value)
Definition Message.h:49
AWS_LEXRUNTIMEV2_API Message(Aws::Utils::Json::JsonView jsonValue)
Message & WithImageResponseCard(ImageResponseCard &&value)
Definition Message.h:76
AWS_LEXRUNTIMEV2_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ImageResponseCardHasBeenSet() const
Definition Message.h:72
AWS_LEXRUNTIMEV2_API Message()
void SetContentType(const MessageContentType &value)
Definition Message.h:63
const ImageResponseCard & GetImageResponseCard() const
Definition Message.h:71
void SetContent(Aws::String &&value)
Definition Message.h:50
const MessageContentType & GetContentType() const
Definition Message.h:61
Message & WithImageResponseCard(const ImageResponseCard &value)
Definition Message.h:75
void SetContent(const char *value)
Definition Message.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue