/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexRuntimeV2 { namespace Model { /** *

The event sent from your client application to Amazon Lex V2 with text input * from the user.

See Also:

AWS * API Reference

*/ class TextInputEvent { public: AWS_LEXRUNTIMEV2_API TextInputEvent(); AWS_LEXRUNTIMEV2_API TextInputEvent(Aws::Utils::Json::JsonView jsonValue); AWS_LEXRUNTIMEV2_API TextInputEvent& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline TextInputEvent& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline TextInputEvent& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The text from the user. Amazon Lex V2 processes this as a complete * statement.

*/ inline TextInputEvent& WithText(const char* value) { SetText(value); return *this;} /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline TextInputEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline TextInputEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

A unique identifier that your application assigns to the event. You can use * this to identify events in logs.

*/ inline TextInputEvent& WithEventId(const char* value) { SetEventId(value); return *this;} /** *

A timestamp set by the client of the date and time that the event was sent to * Amazon Lex V2.

*/ inline long long GetClientTimestampMillis() const{ return m_clientTimestampMillis; } /** *

A timestamp set by the client of the date and time that the event was sent to * Amazon Lex V2.

*/ inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; } /** *

A timestamp set by the client of the date and time that the event was sent to * Amazon Lex V2.

*/ inline void SetClientTimestampMillis(long long value) { m_clientTimestampMillisHasBeenSet = true; m_clientTimestampMillis = value; } /** *

A timestamp set by the client of the date and time that the event was sent to * Amazon Lex V2.

*/ inline TextInputEvent& WithClientTimestampMillis(long long value) { SetClientTimestampMillis(value); return *this;} private: Aws::String m_text; bool m_textHasBeenSet = false; Aws::String m_eventId; bool m_eventIdHasBeenSet = false; long long m_clientTimestampMillis; bool m_clientTimestampMillisHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws