AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
49 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
50 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
51 inline TextInputEvent& WithText(const Aws::String& value) { SetText(value); return *this;}
52 inline TextInputEvent& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
53 inline TextInputEvent& WithText(const char* value) { SetText(value); return *this;}
55
57
61 inline const Aws::String& GetEventId() const{ return m_eventId; }
62 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
63 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
64 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
65 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
66 inline TextInputEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
67 inline TextInputEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
68 inline TextInputEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
70
72
76 inline long long GetClientTimestampMillis() const{ return m_clientTimestampMillis; }
77 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
78 inline void SetClientTimestampMillis(long long value) { m_clientTimestampMillisHasBeenSet = true; m_clientTimestampMillis = value; }
79 inline TextInputEvent& WithClientTimestampMillis(long long value) { SetClientTimestampMillis(value); return *this;}
81 private:
82
83 Aws::String m_text;
84 bool m_textHasBeenSet = false;
85
86 Aws::String m_eventId;
87 bool m_eventIdHasBeenSet = false;
88
89 long long m_clientTimestampMillis;
90 bool m_clientTimestampMillisHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace LexRuntimeV2
95} // namespace Aws
void SetText(const Aws::String &value)
TextInputEvent & WithEventId(const Aws::String &value)
TextInputEvent & WithText(const Aws::String &value)
TextInputEvent & WithEventId(const char *value)
TextInputEvent & WithText(const char *value)
const Aws::String & GetEventId() const
TextInputEvent & WithClientTimestampMillis(long long value)
TextInputEvent & WithEventId(Aws::String &&value)
AWS_LEXRUNTIMEV2_API TextInputEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
TextInputEvent & WithText(Aws::String &&value)
AWS_LEXRUNTIMEV2_API TextInputEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetClientTimestampMillis(long long value)
void SetEventId(const Aws::String &value)
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