AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessages(const Aws::Vector<Message>& value) { m_messagesHasBeenSet = true; m_messages = value; }
52 inline void SetMessages(Aws::Vector<Message>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
53 inline TextResponseEvent& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
54 inline TextResponseEvent& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
55 inline TextResponseEvent& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
56 inline TextResponseEvent& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
58
60
65 inline const Aws::String& GetEventId() const{ return m_eventId; }
66 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
67 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
68 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
69 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
70 inline TextResponseEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
71 inline TextResponseEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
72 inline TextResponseEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
74 private:
75
76 Aws::Vector<Message> m_messages;
77 bool m_messagesHasBeenSet = false;
78
79 Aws::String m_eventId;
80 bool m_eventIdHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace LexRuntimeV2
85} // namespace Aws
const Aws::Vector< Message > & GetMessages() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
TextResponseEvent & AddMessages(const Message &value)
TextResponseEvent & WithEventId(Aws::String &&value)
void SetEventId(const Aws::String &value)
void SetMessages(const Aws::Vector< Message > &value)
TextResponseEvent & WithEventId(const char *value)
void SetMessages(Aws::Vector< Message > &&value)
TextResponseEvent & WithMessages(Aws::Vector< Message > &&value)
TextResponseEvent & AddMessages(Message &&value)
TextResponseEvent & WithEventId(const Aws::String &value)
AWS_LEXRUNTIMEV2_API TextResponseEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
TextResponseEvent & WithMessages(const Aws::Vector< Message > &value)
AWS_LEXRUNTIMEV2_API TextResponseEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue