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

Provides information about an event that occurred affecting the bot * locale.

See Also:

AWS * API Reference

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

A description of the event that occurred.

*/ inline const Aws::String& GetEvent() const{ return m_event; } /** *

A description of the event that occurred.

*/ inline bool EventHasBeenSet() const { return m_eventHasBeenSet; } /** *

A description of the event that occurred.

*/ inline void SetEvent(const Aws::String& value) { m_eventHasBeenSet = true; m_event = value; } /** *

A description of the event that occurred.

*/ inline void SetEvent(Aws::String&& value) { m_eventHasBeenSet = true; m_event = std::move(value); } /** *

A description of the event that occurred.

*/ inline void SetEvent(const char* value) { m_eventHasBeenSet = true; m_event.assign(value); } /** *

A description of the event that occurred.

*/ inline BotLocaleHistoryEvent& WithEvent(const Aws::String& value) { SetEvent(value); return *this;} /** *

A description of the event that occurred.

*/ inline BotLocaleHistoryEvent& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;} /** *

A description of the event that occurred.

*/ inline BotLocaleHistoryEvent& WithEvent(const char* value) { SetEvent(value); return *this;} /** *

A timestamp of the date and time that the event occurred.

*/ inline const Aws::Utils::DateTime& GetEventDate() const{ return m_eventDate; } /** *

A timestamp of the date and time that the event occurred.

*/ inline bool EventDateHasBeenSet() const { return m_eventDateHasBeenSet; } /** *

A timestamp of the date and time that the event occurred.

*/ inline void SetEventDate(const Aws::Utils::DateTime& value) { m_eventDateHasBeenSet = true; m_eventDate = value; } /** *

A timestamp of the date and time that the event occurred.

*/ inline void SetEventDate(Aws::Utils::DateTime&& value) { m_eventDateHasBeenSet = true; m_eventDate = std::move(value); } /** *

A timestamp of the date and time that the event occurred.

*/ inline BotLocaleHistoryEvent& WithEventDate(const Aws::Utils::DateTime& value) { SetEventDate(value); return *this;} /** *

A timestamp of the date and time that the event occurred.

*/ inline BotLocaleHistoryEvent& WithEventDate(Aws::Utils::DateTime&& value) { SetEventDate(std::move(value)); return *this;} private: Aws::String m_event; bool m_eventHasBeenSet = false; Aws::Utils::DateTime m_eventDate; bool m_eventDateHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws