/**
* 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 exiting this state, perform these actions
if the specified
* condition
is TRUE
.
See Also:
AWS
* API Reference
*/
class OnExitLifecycle
{
public:
AWS_IOTEVENTS_API OnExitLifecycle();
AWS_IOTEVENTS_API OnExitLifecycle(Aws::Utils::Json::JsonView jsonValue);
AWS_IOTEVENTS_API OnExitLifecycle& 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
* exited and the condition
is TRUE
.
*/
inline const Aws::Vector& GetEvents() const{ return m_events; }
/**
* Specifies the actions
that are performed when the state is
* exited and the condition
is TRUE
.
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* Specifies the actions
that are performed when the state is
* exited 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
* exited 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
* exited and the condition
is TRUE
.
*/
inline OnExitLifecycle& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;}
/**
* Specifies the actions
that are performed when the state is
* exited and the condition
is TRUE
.
*/
inline OnExitLifecycle& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;}
/**
* Specifies the actions
that are performed when the state is
* exited and the condition
is TRUE
.
*/
inline OnExitLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
/**
* Specifies the actions
that are performed when the state is
* exited and the condition
is TRUE
.
*/
inline OnExitLifecycle& 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