7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/TriggerType.h>
10#include <aws/glue/model/TriggerState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/Predicate.h>
13#include <aws/glue/model/EventBatchingCondition.h>
14#include <aws/glue/model/Action.h>
52 template<
typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
54 template<
typename NameT = Aws::String>
64 template<
typename WorkflowNameT = Aws::String>
65 void SetWorkflowName(WorkflowNameT&& value) { m_workflowNameHasBeenSet =
true; m_workflowName = std::forward<WorkflowNameT>(value); }
66 template<
typename WorkflowNameT = Aws::String>
76 template<
typename IdT = Aws::String>
77 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
78 template<
typename IdT = Aws::String>
108 template<
typename DescriptionT = Aws::String>
109 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
110 template<
typename DescriptionT = Aws::String>
123 template<
typename ScheduleT = Aws::String>
124 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
125 template<
typename ScheduleT = Aws::String>
135 template<
typename ActionsT = Aws::Vector<Action>>
136 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
137 template<
typename ActionsT = Aws::Vector<Action>>
139 template<
typename ActionsT = Action>
140 Trigger&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
149 template<
typename PredicateT = Predicate>
150 void SetPredicate(PredicateT&& value) { m_predicateHasBeenSet =
true; m_predicate = std::forward<PredicateT>(value); }
151 template<
typename PredicateT = Predicate>
162 template<
typename EventBatchingConditionT = EventBatchingCondition>
163 void SetEventBatchingCondition(EventBatchingConditionT&& value) { m_eventBatchingConditionHasBeenSet =
true; m_eventBatchingCondition = std::forward<EventBatchingConditionT>(value); }
164 template<
typename EventBatchingConditionT = EventBatchingCondition>
170 bool m_nameHasBeenSet =
false;
173 bool m_workflowNameHasBeenSet =
false;
176 bool m_idHasBeenSet =
false;
179 bool m_typeHasBeenSet =
false;
182 bool m_stateHasBeenSet =
false;
185 bool m_descriptionHasBeenSet =
false;
188 bool m_scheduleHasBeenSet =
false;
191 bool m_actionsHasBeenSet =
false;
193 Predicate m_predicate;
194 bool m_predicateHasBeenSet =
false;
196 EventBatchingCondition m_eventBatchingCondition;
197 bool m_eventBatchingConditionHasBeenSet =
false;
void SetPredicate(PredicateT &&value)
bool DescriptionHasBeenSet() const
Trigger & WithPredicate(PredicateT &&value)
const Aws::String & GetDescription() const
void SetEventBatchingCondition(EventBatchingConditionT &&value)
bool IdHasBeenSet() const
void SetSchedule(ScheduleT &&value)
Trigger & WithName(NameT &&value)
void SetType(TriggerType value)
void SetWorkflowName(WorkflowNameT &&value)
Trigger & WithState(TriggerState value)
const Aws::String & GetWorkflowName() const
const Aws::String & GetSchedule() const
Trigger & WithDescription(DescriptionT &&value)
Trigger & AddActions(ActionsT &&value)
Trigger & WithActions(ActionsT &&value)
Trigger & WithWorkflowName(WorkflowNameT &&value)
bool TypeHasBeenSet() const
TriggerState GetState() const
bool ScheduleHasBeenSet() const
AWS_GLUE_API Trigger & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Action > & GetActions() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventBatchingConditionHasBeenSet() const
const Aws::String & GetId() const
void SetDescription(DescriptionT &&value)
Trigger & WithSchedule(ScheduleT &&value)
bool NameHasBeenSet() const
const Predicate & GetPredicate() const
bool PredicateHasBeenSet() const
AWS_GLUE_API Trigger()=default
AWS_GLUE_API Trigger(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
void SetActions(ActionsT &&value)
bool StateHasBeenSet() const
Trigger & WithEventBatchingCondition(EventBatchingConditionT &&value)
bool ActionsHasBeenSet() const
TriggerType GetType() const
const Aws::String & GetName() const
const EventBatchingCondition & GetEventBatchingCondition() const
Trigger & WithId(IdT &&value)
bool WorkflowNameHasBeenSet() const
void SetState(TriggerState value)
Trigger & WithType(TriggerType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue