/** * 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 { /** *

Event that Amazon Lex V2 sends to indicate that the stream is still open * between the client application and Amazon Lex V2

See Also:

AWS * API Reference

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

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

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline HeartbeatEvent& WithEventId(const char* value) { SetEventId(value); return *this;} private: Aws::String m_eventId; bool m_eventIdHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws