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-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() = default;
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 template<typename ContentT = Aws::String>
50 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
51 template<typename ContentT = Aws::String>
52 Message& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
54
56
59 inline MessageContentType GetContentType() const { return m_contentType; }
60 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
61 inline void SetContentType(MessageContentType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
62 inline Message& WithContentType(MessageContentType value) { SetContentType(value); return *this;}
64
66
67 inline const ImageResponseCard& GetImageResponseCard() const { return m_imageResponseCard; }
68 inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; }
69 template<typename ImageResponseCardT = ImageResponseCard>
70 void SetImageResponseCard(ImageResponseCardT&& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = std::forward<ImageResponseCardT>(value); }
71 template<typename ImageResponseCardT = ImageResponseCard>
72 Message& WithImageResponseCard(ImageResponseCardT&& value) { SetImageResponseCard(std::forward<ImageResponseCardT>(value)); return *this;}
74 private:
75
76 Aws::String m_content;
77 bool m_contentHasBeenSet = false;
78
80 bool m_contentTypeHasBeenSet = false;
81
82 ImageResponseCard m_imageResponseCard;
83 bool m_imageResponseCardHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace LexRuntimeV2
88} // namespace Aws
Message & WithImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:72
void SetImageResponseCard(ImageResponseCardT &&value)
Definition Message.h:70
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentType(MessageContentType value)
Definition Message.h:61
void SetContent(ContentT &&value)
Definition Message.h:50
AWS_LEXRUNTIMEV2_API Message()=default
const Aws::String & GetContent() const
Definition Message.h:47
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:62
Message & WithContent(ContentT &&value)
Definition Message.h:52
bool ImageResponseCardHasBeenSet() const
Definition Message.h:68
const ImageResponseCard & GetImageResponseCard() const
Definition Message.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue