7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotevents/model/Action.h>
37 AWS_IOTEVENTS_API
Event() =
default;
49 template<
typename EventNameT = Aws::String>
50 void SetEventName(EventNameT&& value) { m_eventNameHasBeenSet =
true; m_eventName = std::forward<EventNameT>(value); }
51 template<
typename EventNameT = Aws::String>
64 template<
typename ConditionT = Aws::String>
65 void SetCondition(ConditionT&& value) { m_conditionHasBeenSet =
true; m_condition = std::forward<ConditionT>(value); }
66 template<
typename ConditionT = Aws::String>
76 template<
typename ActionsT = Aws::Vector<Action>>
77 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
78 template<
typename ActionsT = Aws::Vector<Action>>
80 template<
typename ActionsT = Action>
81 Event&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
86 bool m_eventNameHasBeenSet =
false;
89 bool m_conditionHasBeenSet =
false;
92 bool m_actionsHasBeenSet =
false;
Event & WithCondition(ConditionT &&value)
AWS_IOTEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetEventName(EventNameT &&value)
void SetActions(ActionsT &&value)
const Aws::String & GetEventName() const
Event & WithEventName(EventNameT &&value)
const Aws::String & GetCondition() const
void SetCondition(ConditionT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionsHasBeenSet() const
AWS_IOTEVENTS_API Event()=default
bool EventNameHasBeenSet() const
Event & AddActions(ActionsT &&value)
Event & WithActions(ActionsT &&value)
bool ConditionHasBeenSet() const
const Aws::Vector< Action > & GetActions() const
AWS_IOTEVENTS_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue