AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline Trigger& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline Trigger& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline Trigger& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetWorkflowName() const{ return m_workflowName; }
65 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
66 inline void SetWorkflowName(const Aws::String& value) { m_workflowNameHasBeenSet = true; m_workflowName = value; }
67 inline void SetWorkflowName(Aws::String&& value) { m_workflowNameHasBeenSet = true; m_workflowName = std::move(value); }
68 inline void SetWorkflowName(const char* value) { m_workflowNameHasBeenSet = true; m_workflowName.assign(value); }
69 inline Trigger& WithWorkflowName(const Aws::String& value) { SetWorkflowName(value); return *this;}
70 inline Trigger& WithWorkflowName(Aws::String&& value) { SetWorkflowName(std::move(value)); return *this;}
71 inline Trigger& WithWorkflowName(const char* value) { SetWorkflowName(value); return *this;}
73
75
78 inline const Aws::String& GetId() const{ return m_id; }
79 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
80 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
81 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
82 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
83 inline Trigger& WithId(const Aws::String& value) { SetId(value); return *this;}
84 inline Trigger& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
85 inline Trigger& WithId(const char* value) { SetId(value); return *this;}
87
89
92 inline const TriggerType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const TriggerType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(TriggerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline Trigger& WithType(const TriggerType& value) { SetType(value); return *this;}
97 inline Trigger& WithType(TriggerType&& value) { SetType(std::move(value)); return *this;}
99
101
104 inline const TriggerState& GetState() const{ return m_state; }
105 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
106 inline void SetState(const TriggerState& value) { m_stateHasBeenSet = true; m_state = value; }
107 inline void SetState(TriggerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
108 inline Trigger& WithState(const TriggerState& value) { SetState(value); return *this;}
109 inline Trigger& WithState(TriggerState&& value) { SetState(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetDescription() const{ return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
119 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
120 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121 inline Trigger& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
122 inline Trigger& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
123 inline Trigger& WithDescription(const char* value) { SetDescription(value); return *this;}
125
127
133 inline const Aws::String& GetSchedule() const{ return m_schedule; }
134 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
135 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
136 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
137 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
138 inline Trigger& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
139 inline Trigger& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
140 inline Trigger& WithSchedule(const char* value) { SetSchedule(value); return *this;}
142
144
147 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
148 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
149 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
150 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
151 inline Trigger& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
152 inline Trigger& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
153 inline Trigger& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
154 inline Trigger& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
156
158
161 inline const Predicate& GetPredicate() const{ return m_predicate; }
162 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
163 inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
164 inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
165 inline Trigger& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
166 inline Trigger& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
168
170
174 inline const EventBatchingCondition& GetEventBatchingCondition() const{ return m_eventBatchingCondition; }
175 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
176 inline void SetEventBatchingCondition(const EventBatchingCondition& value) { m_eventBatchingConditionHasBeenSet = true; m_eventBatchingCondition = value; }
177 inline void SetEventBatchingCondition(EventBatchingCondition&& value) { m_eventBatchingConditionHasBeenSet = true; m_eventBatchingCondition = std::move(value); }
179 inline Trigger& WithEventBatchingCondition(EventBatchingCondition&& value) { SetEventBatchingCondition(std::move(value)); return *this;}
181 private:
182
183 Aws::String m_name;
184 bool m_nameHasBeenSet = false;
185
186 Aws::String m_workflowName;
187 bool m_workflowNameHasBeenSet = false;
188
189 Aws::String m_id;
190 bool m_idHasBeenSet = false;
191
192 TriggerType m_type;
193 bool m_typeHasBeenSet = false;
194
195 TriggerState m_state;
196 bool m_stateHasBeenSet = false;
197
198 Aws::String m_description;
199 bool m_descriptionHasBeenSet = false;
200
201 Aws::String m_schedule;
202 bool m_scheduleHasBeenSet = false;
203
204 Aws::Vector<Action> m_actions;
205 bool m_actionsHasBeenSet = false;
206
207 Predicate m_predicate;
208 bool m_predicateHasBeenSet = false;
209
210 EventBatchingCondition m_eventBatchingCondition;
211 bool m_eventBatchingConditionHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Glue
216} // namespace Aws
void SetActions(Aws::Vector< Action > &&value)
Definition Trigger.h:150
Trigger & WithWorkflowName(const Aws::String &value)
Definition Trigger.h:69
bool DescriptionHasBeenSet() const
Definition Trigger.h:117
Trigger & WithId(const Aws::String &value)
Definition Trigger.h:83
Trigger & WithName(const Aws::String &value)
Definition Trigger.h:55
Trigger & WithName(const char *value)
Definition Trigger.h:57
void SetPredicate(Predicate &&value)
Definition Trigger.h:164
void SetState(TriggerState &&value)
Definition Trigger.h:107
const Aws::String & GetDescription() const
Definition Trigger.h:116
Trigger & WithId(const char *value)
Definition Trigger.h:85
void SetSchedule(Aws::String &&value)
Definition Trigger.h:136
void SetWorkflowName(const Aws::String &value)
Definition Trigger.h:66
void SetDescription(const Aws::String &value)
Definition Trigger.h:118
void SetWorkflowName(Aws::String &&value)
Definition Trigger.h:67
Trigger & WithDescription(const char *value)
Definition Trigger.h:123
bool IdHasBeenSet() const
Definition Trigger.h:79
Trigger & WithType(const TriggerType &value)
Definition Trigger.h:96
Trigger & WithState(const TriggerState &value)
Definition Trigger.h:108
void SetId(Aws::String &&value)
Definition Trigger.h:81
const TriggerState & GetState() const
Definition Trigger.h:104
void SetName(const char *value)
Definition Trigger.h:54
const Aws::String & GetWorkflowName() const
Definition Trigger.h:64
void SetName(Aws::String &&value)
Definition Trigger.h:53
const Aws::String & GetSchedule() const
Definition Trigger.h:133
Trigger & WithActions(Aws::Vector< Action > &&value)
Definition Trigger.h:152
void SetType(TriggerType &&value)
Definition Trigger.h:95
Trigger & WithWorkflowName(const char *value)
Definition Trigger.h:71
bool TypeHasBeenSet() const
Definition Trigger.h:93
Trigger & WithDescription(const Aws::String &value)
Definition Trigger.h:121
Trigger & WithDescription(Aws::String &&value)
Definition Trigger.h:122
Trigger & WithPredicate(const Predicate &value)
Definition Trigger.h:165
void SetActions(const Aws::Vector< Action > &value)
Definition Trigger.h:149
bool ScheduleHasBeenSet() const
Definition Trigger.h:134
void SetSchedule(const Aws::String &value)
Definition Trigger.h:135
void SetState(const TriggerState &value)
Definition Trigger.h:106
Trigger & WithPredicate(Predicate &&value)
Definition Trigger.h:166
Trigger & AddActions(Action &&value)
Definition Trigger.h:154
void SetName(const Aws::String &value)
Definition Trigger.h:52
AWS_GLUE_API Trigger & operator=(Aws::Utils::Json::JsonView jsonValue)
const TriggerType & GetType() const
Definition Trigger.h:92
void SetType(const TriggerType &value)
Definition Trigger.h:94
Trigger & WithEventBatchingCondition(EventBatchingCondition &&value)
Definition Trigger.h:179
const Aws::Vector< Action > & GetActions() const
Definition Trigger.h:147
void SetSchedule(const char *value)
Definition Trigger.h:137
Trigger & AddActions(const Action &value)
Definition Trigger.h:153
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventBatchingConditionHasBeenSet() const
Definition Trigger.h:175
Trigger & WithSchedule(Aws::String &&value)
Definition Trigger.h:139
const Aws::String & GetId() const
Definition Trigger.h:78
void SetPredicate(const Predicate &value)
Definition Trigger.h:163
Trigger & WithId(Aws::String &&value)
Definition Trigger.h:84
void SetDescription(Aws::String &&value)
Definition Trigger.h:119
void SetWorkflowName(const char *value)
Definition Trigger.h:68
Trigger & WithEventBatchingCondition(const EventBatchingCondition &value)
Definition Trigger.h:178
Trigger & WithType(TriggerType &&value)
Definition Trigger.h:97
void SetEventBatchingCondition(EventBatchingCondition &&value)
Definition Trigger.h:177
Trigger & WithState(TriggerState &&value)
Definition Trigger.h:109
bool NameHasBeenSet() const
Definition Trigger.h:51
const Predicate & GetPredicate() const
Definition Trigger.h:161
Trigger & WithSchedule(const char *value)
Definition Trigger.h:140
bool PredicateHasBeenSet() const
Definition Trigger.h:162
Trigger & WithWorkflowName(Aws::String &&value)
Definition Trigger.h:70
AWS_GLUE_API Trigger(Aws::Utils::Json::JsonView jsonValue)
Trigger & WithName(Aws::String &&value)
Definition Trigger.h:56
bool StateHasBeenSet() const
Definition Trigger.h:105
Trigger & WithSchedule(const Aws::String &value)
Definition Trigger.h:138
void SetId(const Aws::String &value)
Definition Trigger.h:80
void SetDescription(const char *value)
Definition Trigger.h:120
bool ActionsHasBeenSet() const
Definition Trigger.h:148
const Aws::String & GetName() const
Definition Trigger.h:50
const EventBatchingCondition & GetEventBatchingCondition() const
Definition Trigger.h:174
void SetEventBatchingCondition(const EventBatchingCondition &value)
Definition Trigger.h:176
bool WorkflowNameHasBeenSet() const
Definition Trigger.h:65
Trigger & WithActions(const Aws::Vector< Action > &value)
Definition Trigger.h:151
void SetId(const char *value)
Definition Trigger.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue