AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TextInputEvent.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexRuntimeV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LEXRUNTIMEV2_API TextInputEvent() = default;
36 AWS_LEXRUNTIMEV2_API TextInputEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXRUNTIMEV2_API TextInputEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetText() const { return m_text; }
47 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
48 template<typename TextT = Aws::String>
49 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
50 template<typename TextT = Aws::String>
51 TextInputEvent& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
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) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
63 template<typename EventIdT = Aws::String>
64 TextInputEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
66
68
72 inline long long GetClientTimestampMillis() const { return m_clientTimestampMillis; }
73 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
74 inline void SetClientTimestampMillis(long long value) { m_clientTimestampMillisHasBeenSet = true; m_clientTimestampMillis = value; }
75 inline TextInputEvent& WithClientTimestampMillis(long long value) { SetClientTimestampMillis(value); return *this;}
77 private:
78
79 Aws::String m_text;
80 bool m_textHasBeenSet = false;
81
82 Aws::String m_eventId;
83 bool m_eventIdHasBeenSet = false;
84
85 long long m_clientTimestampMillis{0};
86 bool m_clientTimestampMillisHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace LexRuntimeV2
91} // 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