AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
TextResponseEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
10#include <aws/lexv2-runtime/model/Message.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
31 public:
32 AWS_LEXRUNTIMEV2_API TextResponseEvent() = default;
33 AWS_LEXRUNTIMEV2_API TextResponseEvent(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXRUNTIMEV2_API TextResponseEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
44 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
45 template <typename MessagesT = Aws::Vector<Message>>
46 void SetMessages(MessagesT&& value) {
47 m_messagesHasBeenSet = true;
48 m_messages = std::forward<MessagesT>(value);
49 }
50 template <typename MessagesT = Aws::Vector<Message>>
51 TextResponseEvent& WithMessages(MessagesT&& value) {
52 SetMessages(std::forward<MessagesT>(value));
53 return *this;
54 }
55 template <typename MessagesT = Message>
56 TextResponseEvent& AddMessages(MessagesT&& value) {
57 m_messagesHasBeenSet = true;
58 m_messages.emplace_back(std::forward<MessagesT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::String& GetEventId() const { return m_eventId; }
70 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
71 template <typename EventIdT = Aws::String>
72 void SetEventId(EventIdT&& value) {
73 m_eventIdHasBeenSet = true;
74 m_eventId = std::forward<EventIdT>(value);
75 }
76 template <typename EventIdT = Aws::String>
77 TextResponseEvent& WithEventId(EventIdT&& value) {
78 SetEventId(std::forward<EventIdT>(value));
79 return *this;
80 }
82 private:
83 Aws::Vector<Message> m_messages;
84
85 Aws::String m_eventId;
86 bool m_messagesHasBeenSet = false;
87 bool m_eventIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace LexRuntimeV2
92} // namespace Aws
const Aws::Vector< Message > & GetMessages() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
TextResponseEvent & WithEventId(EventIdT &&value)
TextResponseEvent & WithMessages(MessagesT &&value)
AWS_LEXRUNTIMEV2_API TextResponseEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API TextResponseEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API TextResponseEvent()=default
TextResponseEvent & AddMessages(MessagesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue