AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Trigger.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/Action.h>
11#include <aws/glue/model/EventBatchingCondition.h>
12#include <aws/glue/model/Predicate.h>
13#include <aws/glue/model/TriggerState.h>
14#include <aws/glue/model/TriggerType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue {
26namespace Model {
27
33class Trigger {
34 public:
35 AWS_GLUE_API Trigger() = default;
36 AWS_GLUE_API Trigger(Aws::Utils::Json::JsonView jsonValue);
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 Trigger& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
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) {
66 m_workflowNameHasBeenSet = true;
67 m_workflowName = std::forward<WorkflowNameT>(value);
68 }
69 template <typename WorkflowNameT = Aws::String>
70 Trigger& WithWorkflowName(WorkflowNameT&& value) {
71 SetWorkflowName(std::forward<WorkflowNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetId() const { return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 template <typename IdT = Aws::String>
83 void SetId(IdT&& value) {
84 m_idHasBeenSet = true;
85 m_id = std::forward<IdT>(value);
86 }
87 template <typename IdT = Aws::String>
88 Trigger& WithId(IdT&& value) {
89 SetId(std::forward<IdT>(value));
90 return *this;
91 }
93
95
98 inline TriggerType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(TriggerType value) {
101 m_typeHasBeenSet = true;
102 m_type = value;
103 }
104 inline Trigger& WithType(TriggerType value) {
105 SetType(value);
106 return *this;
107 }
109
111
114 inline TriggerState GetState() const { return m_state; }
115 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
116 inline void SetState(TriggerState value) {
117 m_stateHasBeenSet = true;
118 m_state = value;
119 }
121 SetState(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDescription() const { return m_description; }
131 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
132 template <typename DescriptionT = Aws::String>
133 void SetDescription(DescriptionT&& value) {
134 m_descriptionHasBeenSet = true;
135 m_description = std::forward<DescriptionT>(value);
136 }
137 template <typename DescriptionT = Aws::String>
138 Trigger& WithDescription(DescriptionT&& value) {
139 SetDescription(std::forward<DescriptionT>(value));
140 return *this;
141 }
143
145
151 inline const Aws::String& GetSchedule() const { return m_schedule; }
152 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
153 template <typename ScheduleT = Aws::String>
154 void SetSchedule(ScheduleT&& value) {
155 m_scheduleHasBeenSet = true;
156 m_schedule = std::forward<ScheduleT>(value);
157 }
158 template <typename ScheduleT = Aws::String>
159 Trigger& WithSchedule(ScheduleT&& value) {
160 SetSchedule(std::forward<ScheduleT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
170 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
171 template <typename ActionsT = Aws::Vector<Action>>
172 void SetActions(ActionsT&& value) {
173 m_actionsHasBeenSet = true;
174 m_actions = std::forward<ActionsT>(value);
175 }
176 template <typename ActionsT = Aws::Vector<Action>>
177 Trigger& WithActions(ActionsT&& value) {
178 SetActions(std::forward<ActionsT>(value));
179 return *this;
180 }
181 template <typename ActionsT = Action>
182 Trigger& AddActions(ActionsT&& value) {
183 m_actionsHasBeenSet = true;
184 m_actions.emplace_back(std::forward<ActionsT>(value));
185 return *this;
186 }
188
190
193 inline const Predicate& GetPredicate() const { return m_predicate; }
194 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
195 template <typename PredicateT = Predicate>
196 void SetPredicate(PredicateT&& value) {
197 m_predicateHasBeenSet = true;
198 m_predicate = std::forward<PredicateT>(value);
199 }
200 template <typename PredicateT = Predicate>
201 Trigger& WithPredicate(PredicateT&& value) {
202 SetPredicate(std::forward<PredicateT>(value));
203 return *this;
204 }
206
208
212 inline const EventBatchingCondition& GetEventBatchingCondition() const { return m_eventBatchingCondition; }
213 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
214 template <typename EventBatchingConditionT = EventBatchingCondition>
215 void SetEventBatchingCondition(EventBatchingConditionT&& value) {
216 m_eventBatchingConditionHasBeenSet = true;
217 m_eventBatchingCondition = std::forward<EventBatchingConditionT>(value);
218 }
219 template <typename EventBatchingConditionT = EventBatchingCondition>
220 Trigger& WithEventBatchingCondition(EventBatchingConditionT&& value) {
221 SetEventBatchingCondition(std::forward<EventBatchingConditionT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_name;
227
228 Aws::String m_workflowName;
229
230 Aws::String m_id;
231
233
235
236 Aws::String m_description;
237
238 Aws::String m_schedule;
239
240 Aws::Vector<Action> m_actions;
241
242 Predicate m_predicate;
243
244 EventBatchingCondition m_eventBatchingCondition;
245 bool m_nameHasBeenSet = false;
246 bool m_workflowNameHasBeenSet = false;
247 bool m_idHasBeenSet = false;
248 bool m_typeHasBeenSet = false;
249 bool m_stateHasBeenSet = false;
250 bool m_descriptionHasBeenSet = false;
251 bool m_scheduleHasBeenSet = false;
252 bool m_actionsHasBeenSet = false;
253 bool m_predicateHasBeenSet = false;
254 bool m_eventBatchingConditionHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace Glue
259} // namespace Aws
void SetPredicate(PredicateT &&value)
Definition Trigger.h:196
bool DescriptionHasBeenSet() const
Definition Trigger.h:131
Trigger & WithPredicate(PredicateT &&value)
Definition Trigger.h:201
void SetId(IdT &&value)
Definition Trigger.h:83
const Aws::String & GetDescription() const
Definition Trigger.h:130
void SetEventBatchingCondition(EventBatchingConditionT &&value)
Definition Trigger.h:215
bool IdHasBeenSet() const
Definition Trigger.h:81
void SetSchedule(ScheduleT &&value)
Definition Trigger.h:154
Trigger & WithName(NameT &&value)
Definition Trigger.h:52
void SetType(TriggerType value)
Definition Trigger.h:100
void SetWorkflowName(WorkflowNameT &&value)
Definition Trigger.h:65
Trigger & WithState(TriggerState value)
Definition Trigger.h:120
const Aws::String & GetWorkflowName() const
Definition Trigger.h:62
const Aws::String & GetSchedule() const
Definition Trigger.h:151
Trigger & WithDescription(DescriptionT &&value)
Definition Trigger.h:138
Trigger & AddActions(ActionsT &&value)
Definition Trigger.h:182
Trigger & WithActions(ActionsT &&value)
Definition Trigger.h:177
Trigger & WithWorkflowName(WorkflowNameT &&value)
Definition Trigger.h:70
bool TypeHasBeenSet() const
Definition Trigger.h:99
TriggerState GetState() const
Definition Trigger.h:114
bool ScheduleHasBeenSet() const
Definition Trigger.h:152
AWS_GLUE_API Trigger & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Action > & GetActions() const
Definition Trigger.h:169
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventBatchingConditionHasBeenSet() const
Definition Trigger.h:213
const Aws::String & GetId() const
Definition Trigger.h:80
void SetDescription(DescriptionT &&value)
Definition Trigger.h:133
Trigger & WithSchedule(ScheduleT &&value)
Definition Trigger.h:159
bool NameHasBeenSet() const
Definition Trigger.h:45
const Predicate & GetPredicate() const
Definition Trigger.h:193
bool PredicateHasBeenSet() const
Definition Trigger.h:194
AWS_GLUE_API Trigger()=default
AWS_GLUE_API Trigger(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Trigger.h:47
void SetActions(ActionsT &&value)
Definition Trigger.h:172
bool StateHasBeenSet() const
Definition Trigger.h:115
Trigger & WithEventBatchingCondition(EventBatchingConditionT &&value)
Definition Trigger.h:220
bool ActionsHasBeenSet() const
Definition Trigger.h:170
TriggerType GetType() const
Definition Trigger.h:98
const Aws::String & GetName() const
Definition Trigger.h:44
const EventBatchingCondition & GetEventBatchingCondition() const
Definition Trigger.h:212
Trigger & WithId(IdT &&value)
Definition Trigger.h:88
bool WorkflowNameHasBeenSet() const
Definition Trigger.h:63
void SetState(TriggerState value)
Definition Trigger.h:116
Trigger & WithType(TriggerType value)
Definition Trigger.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue