/** * 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 IoTEvents { namespace Model { /** *

When entering this state, perform these actions if the * condition is TRUE.

See Also:

AWS * API Reference

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

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline OnEnterLifecycle& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline OnEnterLifecycle& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline OnEnterLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

Specifies the actions that are performed when the state is entered and the * condition is TRUE.

*/ inline OnEnterLifecycle& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } private: Aws::Vector m_events; bool m_eventsHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws