AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Trigger.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Glue
28{
29namespace Model
30{
31
37 class Trigger
38 {
39 public:
40 AWS_GLUE_API Trigger() = default;
41 AWS_GLUE_API Trigger(Aws::Utils::Json::JsonView jsonValue);
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
55 Trigger& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetWorkflowName() const { return m_workflowName; }
63 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
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>
67 Trigger& WithWorkflowName(WorkflowNameT&& value) { SetWorkflowName(std::forward<WorkflowNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
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>
79 Trigger& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
81
83
86 inline TriggerType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(TriggerType value) { m_typeHasBeenSet = true; m_type = value; }
89 inline Trigger& WithType(TriggerType value) { SetType(value); return *this;}
91
93
96 inline TriggerState GetState() const { return m_state; }
97 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
98 inline void SetState(TriggerState value) { m_stateHasBeenSet = true; m_state = value; }
99 inline Trigger& WithState(TriggerState value) { SetState(value); return *this;}
101
103
106 inline const Aws::String& GetDescription() const { return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
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>
111 Trigger& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
113
115
121 inline const Aws::String& GetSchedule() const { return m_schedule; }
122 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
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>
126 Trigger& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
128
130
133 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
134 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
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>>
138 Trigger& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
139 template<typename ActionsT = Action>
140 Trigger& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
142
144
147 inline const Predicate& GetPredicate() const { return m_predicate; }
148 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
149 template<typename PredicateT = Predicate>
150 void SetPredicate(PredicateT&& value) { m_predicateHasBeenSet = true; m_predicate = std::forward<PredicateT>(value); }
151 template<typename PredicateT = Predicate>
152 Trigger& WithPredicate(PredicateT&& value) { SetPredicate(std::forward<PredicateT>(value)); return *this;}
154
156
160 inline const EventBatchingCondition& GetEventBatchingCondition() const { return m_eventBatchingCondition; }
161 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
162 template<typename EventBatchingConditionT = EventBatchingCondition>
163 void SetEventBatchingCondition(EventBatchingConditionT&& value) { m_eventBatchingConditionHasBeenSet = true; m_eventBatchingCondition = std::forward<EventBatchingConditionT>(value); }
164 template<typename EventBatchingConditionT = EventBatchingCondition>
165 Trigger& WithEventBatchingCondition(EventBatchingConditionT&& value) { SetEventBatchingCondition(std::forward<EventBatchingConditionT>(value)); return *this;}
167 private:
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 Aws::String m_workflowName;
173 bool m_workflowNameHasBeenSet = false;
174
175 Aws::String m_id;
176 bool m_idHasBeenSet = false;
177
179 bool m_typeHasBeenSet = false;
180
182 bool m_stateHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 Aws::String m_schedule;
188 bool m_scheduleHasBeenSet = false;
189
190 Aws::Vector<Action> m_actions;
191 bool m_actionsHasBeenSet = false;
192
193 Predicate m_predicate;
194 bool m_predicateHasBeenSet = false;
195
196 EventBatchingCondition m_eventBatchingCondition;
197 bool m_eventBatchingConditionHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace Glue
202} // namespace Aws
void SetPredicate(PredicateT &&value)
Definition Trigger.h:150
bool DescriptionHasBeenSet() const
Definition Trigger.h:107
Trigger & WithPredicate(PredicateT &&value)
Definition Trigger.h:152
void SetId(IdT &&value)
Definition Trigger.h:77
const Aws::String & GetDescription() const
Definition Trigger.h:106
void SetEventBatchingCondition(EventBatchingConditionT &&value)
Definition Trigger.h:163
bool IdHasBeenSet() const
Definition Trigger.h:75
void SetSchedule(ScheduleT &&value)
Definition Trigger.h:124
Trigger & WithName(NameT &&value)
Definition Trigger.h:55
void SetType(TriggerType value)
Definition Trigger.h:88
void SetWorkflowName(WorkflowNameT &&value)
Definition Trigger.h:65
Trigger & WithState(TriggerState value)
Definition Trigger.h:99
const Aws::String & GetWorkflowName() const
Definition Trigger.h:62
const Aws::String & GetSchedule() const
Definition Trigger.h:121
Trigger & WithDescription(DescriptionT &&value)
Definition Trigger.h:111
Trigger & AddActions(ActionsT &&value)
Definition Trigger.h:140
Trigger & WithActions(ActionsT &&value)
Definition Trigger.h:138
Trigger & WithWorkflowName(WorkflowNameT &&value)
Definition Trigger.h:67
bool TypeHasBeenSet() const
Definition Trigger.h:87
TriggerState GetState() const
Definition Trigger.h:96
bool ScheduleHasBeenSet() const
Definition Trigger.h:122
AWS_GLUE_API Trigger & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Action > & GetActions() const
Definition Trigger.h:133
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventBatchingConditionHasBeenSet() const
Definition Trigger.h:161
const Aws::String & GetId() const
Definition Trigger.h:74
void SetDescription(DescriptionT &&value)
Definition Trigger.h:109
Trigger & WithSchedule(ScheduleT &&value)
Definition Trigger.h:126
bool NameHasBeenSet() const
Definition Trigger.h:51
const Predicate & GetPredicate() const
Definition Trigger.h:147
bool PredicateHasBeenSet() const
Definition Trigger.h:148
AWS_GLUE_API Trigger()=default
AWS_GLUE_API Trigger(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Trigger.h:53
void SetActions(ActionsT &&value)
Definition Trigger.h:136
bool StateHasBeenSet() const
Definition Trigger.h:97
Trigger & WithEventBatchingCondition(EventBatchingConditionT &&value)
Definition Trigger.h:165
bool ActionsHasBeenSet() const
Definition Trigger.h:134
TriggerType GetType() const
Definition Trigger.h:86
const Aws::String & GetName() const
Definition Trigger.h:50
const EventBatchingCondition & GetEventBatchingCondition() const
Definition Trigger.h:160
Trigger & WithId(IdT &&value)
Definition Trigger.h:79
bool WorkflowNameHasBeenSet() const
Definition Trigger.h:63
void SetState(TriggerState value)
Definition Trigger.h:98
Trigger & WithType(TriggerType value)
Definition Trigger.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue