AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TextResponseEvent.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-runtime/model/Message.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
35 {
36 public:
37 AWS_LEXRUNTIMEV2_API TextResponseEvent() = default;
38 AWS_LEXRUNTIMEV2_API TextResponseEvent(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMEV2_API TextResponseEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
50 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
51 template<typename MessagesT = Aws::Vector<Message>>
52 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
53 template<typename MessagesT = Aws::Vector<Message>>
54 TextResponseEvent& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
55 template<typename MessagesT = Message>
56 TextResponseEvent& AddMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages.emplace_back(std::forward<MessagesT>(value)); return *this; }
58
60
65 inline const Aws::String& GetEventId() const { return m_eventId; }
66 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
67 template<typename EventIdT = Aws::String>
68 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
69 template<typename EventIdT = Aws::String>
70 TextResponseEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
72 private:
73
74 Aws::Vector<Message> m_messages;
75 bool m_messagesHasBeenSet = false;
76
77 Aws::String m_eventId;
78 bool m_eventIdHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace LexRuntimeV2
83} // 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