AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateTriggerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/GlueRequest.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/Action.h>
13#include <aws/glue/model/EventBatchingCondition.h>
14#include <aws/glue/model/Predicate.h>
15#include <aws/glue/model/TriggerType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Glue {
21namespace Model {
22
26 public:
27 AWS_GLUE_API CreateTriggerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTrigger"; }
34
35 AWS_GLUE_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetWorkflowName() const { return m_workflowName; }
62 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
63 template <typename WorkflowNameT = Aws::String>
64 void SetWorkflowName(WorkflowNameT&& value) {
65 m_workflowNameHasBeenSet = true;
66 m_workflowName = std::forward<WorkflowNameT>(value);
67 }
68 template <typename WorkflowNameT = Aws::String>
69 CreateTriggerRequest& WithWorkflowName(WorkflowNameT&& value) {
70 SetWorkflowName(std::forward<WorkflowNameT>(value));
71 return *this;
72 }
74
76
79 inline TriggerType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(TriggerType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
99 inline const Aws::String& GetSchedule() const { return m_schedule; }
100 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
101 template <typename ScheduleT = Aws::String>
102 void SetSchedule(ScheduleT&& value) {
103 m_scheduleHasBeenSet = true;
104 m_schedule = std::forward<ScheduleT>(value);
105 }
106 template <typename ScheduleT = Aws::String>
107 CreateTriggerRequest& WithSchedule(ScheduleT&& value) {
108 SetSchedule(std::forward<ScheduleT>(value));
109 return *this;
110 }
112
114
118 inline const Predicate& GetPredicate() const { return m_predicate; }
119 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
120 template <typename PredicateT = Predicate>
121 void SetPredicate(PredicateT&& value) {
122 m_predicateHasBeenSet = true;
123 m_predicate = std::forward<PredicateT>(value);
124 }
125 template <typename PredicateT = Predicate>
126 CreateTriggerRequest& WithPredicate(PredicateT&& value) {
127 SetPredicate(std::forward<PredicateT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
137 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
138 template <typename ActionsT = Aws::Vector<Action>>
139 void SetActions(ActionsT&& value) {
140 m_actionsHasBeenSet = true;
141 m_actions = std::forward<ActionsT>(value);
142 }
143 template <typename ActionsT = Aws::Vector<Action>>
145 SetActions(std::forward<ActionsT>(value));
146 return *this;
147 }
148 template <typename ActionsT = Action>
149 CreateTriggerRequest& AddActions(ActionsT&& value) {
150 m_actionsHasBeenSet = true;
151 m_actions.emplace_back(std::forward<ActionsT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetDescription() const { return m_description; }
161 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
162 template <typename DescriptionT = Aws::String>
163 void SetDescription(DescriptionT&& value) {
164 m_descriptionHasBeenSet = true;
165 m_description = std::forward<DescriptionT>(value);
166 }
167 template <typename DescriptionT = Aws::String>
168 CreateTriggerRequest& WithDescription(DescriptionT&& value) {
169 SetDescription(std::forward<DescriptionT>(value));
170 return *this;
171 }
173
175
180 inline bool GetStartOnCreation() const { return m_startOnCreation; }
181 inline bool StartOnCreationHasBeenSet() const { return m_startOnCreationHasBeenSet; }
182 inline void SetStartOnCreation(bool value) {
183 m_startOnCreationHasBeenSet = true;
184 m_startOnCreation = value;
185 }
187 SetStartOnCreation(value);
188 return *this;
189 }
191
193
199 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
200 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
201 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
202 void SetTags(TagsT&& value) {
203 m_tagsHasBeenSet = true;
204 m_tags = std::forward<TagsT>(value);
205 }
206 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 SetTags(std::forward<TagsT>(value));
209 return *this;
210 }
211 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
212 CreateTriggerRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
213 m_tagsHasBeenSet = true;
214 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
215 return *this;
216 }
218
220
224 inline const EventBatchingCondition& GetEventBatchingCondition() const { return m_eventBatchingCondition; }
225 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
226 template <typename EventBatchingConditionT = EventBatchingCondition>
227 void SetEventBatchingCondition(EventBatchingConditionT&& value) {
228 m_eventBatchingConditionHasBeenSet = true;
229 m_eventBatchingCondition = std::forward<EventBatchingConditionT>(value);
230 }
231 template <typename EventBatchingConditionT = EventBatchingCondition>
232 CreateTriggerRequest& WithEventBatchingCondition(EventBatchingConditionT&& value) {
233 SetEventBatchingCondition(std::forward<EventBatchingConditionT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_name;
239
240 Aws::String m_workflowName;
241
243
244 Aws::String m_schedule;
245
246 Predicate m_predicate;
247
248 Aws::Vector<Action> m_actions;
249
250 Aws::String m_description;
251
252 bool m_startOnCreation{false};
253
255
256 EventBatchingCondition m_eventBatchingCondition;
257 bool m_nameHasBeenSet = false;
258 bool m_workflowNameHasBeenSet = false;
259 bool m_typeHasBeenSet = false;
260 bool m_scheduleHasBeenSet = false;
261 bool m_predicateHasBeenSet = false;
262 bool m_actionsHasBeenSet = false;
263 bool m_descriptionHasBeenSet = false;
264 bool m_startOnCreationHasBeenSet = false;
265 bool m_tagsHasBeenSet = false;
266 bool m_eventBatchingConditionHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace Glue
271} // namespace Aws
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLUE_API CreateTriggerRequest()=default
CreateTriggerRequest & WithSchedule(ScheduleT &&value)
CreateTriggerRequest & WithType(TriggerType value)
virtual const char * GetServiceRequestName() const override
CreateTriggerRequest & WithActions(ActionsT &&value)
CreateTriggerRequest & WithWorkflowName(WorkflowNameT &&value)
void SetEventBatchingCondition(EventBatchingConditionT &&value)
CreateTriggerRequest & WithDescription(DescriptionT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateTriggerRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetWorkflowName() const
CreateTriggerRequest & WithPredicate(PredicateT &&value)
void SetWorkflowName(WorkflowNameT &&value)
const Aws::Vector< Action > & GetActions() const
CreateTriggerRequest & AddActions(ActionsT &&value)
const EventBatchingCondition & GetEventBatchingCondition() const
CreateTriggerRequest & WithEventBatchingCondition(EventBatchingConditionT &&value)
CreateTriggerRequest & WithStartOnCreation(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateTriggerRequest & WithTags(TagsT &&value)
CreateTriggerRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector