AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
TextInputEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexRuntimeV2 {
20namespace Model {
21
29 public:
30 AWS_LEXRUNTIMEV2_API TextInputEvent() = default;
31 AWS_LEXRUNTIMEV2_API TextInputEvent(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXRUNTIMEV2_API TextInputEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Aws::String>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Aws::String>
48 TextInputEvent& WithText(TextT&& value) {
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetEventId() const { return m_eventId; }
60 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
61 template <typename EventIdT = Aws::String>
62 void SetEventId(EventIdT&& value) {
63 m_eventIdHasBeenSet = true;
64 m_eventId = std::forward<EventIdT>(value);
65 }
66 template <typename EventIdT = Aws::String>
67 TextInputEvent& WithEventId(EventIdT&& value) {
68 SetEventId(std::forward<EventIdT>(value));
69 return *this;
70 }
72
74
78 inline long long GetClientTimestampMillis() const { return m_clientTimestampMillis; }
79 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
80 inline void SetClientTimestampMillis(long long value) {
81 m_clientTimestampMillisHasBeenSet = true;
82 m_clientTimestampMillis = value;
83 }
84 inline TextInputEvent& WithClientTimestampMillis(long long value) {
86 return *this;
87 }
89 private:
90 Aws::String m_text;
91
92 Aws::String m_eventId;
93
94 long long m_clientTimestampMillis{0};
95 bool m_textHasBeenSet = false;
96 bool m_eventIdHasBeenSet = false;
97 bool m_clientTimestampMillisHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace LexRuntimeV2
102} // namespace Aws
const Aws::String & GetEventId() const
TextInputEvent & WithClientTimestampMillis(long long value)
AWS_LEXRUNTIMEV2_API TextInputEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
TextInputEvent & WithEventId(EventIdT &&value)
AWS_LEXRUNTIMEV2_API TextInputEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetClientTimestampMillis(long long value)
TextInputEvent & WithText(TextT &&value)
AWS_LEXRUNTIMEV2_API TextInputEvent()=default
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue