AWS SDK for C++  1.8.71
AWS SDK for C++
CreateTriggerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/glue/GlueRequest.h>
14 #include <aws/glue/model/Action.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Glue
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateTrigger"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline CreateTriggerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline CreateTriggerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline CreateTriggerRequest& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetWorkflowName() const{ return m_workflowName; }
87 
91  inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
92 
96  inline void SetWorkflowName(const Aws::String& value) { m_workflowNameHasBeenSet = true; m_workflowName = value; }
97 
101  inline void SetWorkflowName(Aws::String&& value) { m_workflowNameHasBeenSet = true; m_workflowName = std::move(value); }
102 
106  inline void SetWorkflowName(const char* value) { m_workflowNameHasBeenSet = true; m_workflowName.assign(value); }
107 
111  inline CreateTriggerRequest& WithWorkflowName(const Aws::String& value) { SetWorkflowName(value); return *this;}
112 
116  inline CreateTriggerRequest& WithWorkflowName(Aws::String&& value) { SetWorkflowName(std::move(value)); return *this;}
117 
121  inline CreateTriggerRequest& WithWorkflowName(const char* value) { SetWorkflowName(value); return *this;}
122 
123 
127  inline const TriggerType& GetType() const{ return m_type; }
128 
132  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
133 
137  inline void SetType(const TriggerType& value) { m_typeHasBeenSet = true; m_type = value; }
138 
142  inline void SetType(TriggerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
143 
147  inline CreateTriggerRequest& WithType(const TriggerType& value) { SetType(value); return *this;}
148 
152  inline CreateTriggerRequest& WithType(TriggerType&& value) { SetType(std::move(value)); return *this;}
153 
154 
162  inline const Aws::String& GetSchedule() const{ return m_schedule; }
163 
171  inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
172 
180  inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
181 
189  inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
190 
198  inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
199 
207  inline CreateTriggerRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
208 
216  inline CreateTriggerRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
217 
225  inline CreateTriggerRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
226 
227 
232  inline const Predicate& GetPredicate() const{ return m_predicate; }
233 
238  inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
239 
244  inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
245 
250  inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
251 
256  inline CreateTriggerRequest& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
257 
262  inline CreateTriggerRequest& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
263 
264 
268  inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
269 
273  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
274 
278  inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
279 
283  inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
284 
288  inline CreateTriggerRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
289 
293  inline CreateTriggerRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
294 
298  inline CreateTriggerRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
299 
303  inline CreateTriggerRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
304 
305 
309  inline const Aws::String& GetDescription() const{ return m_description; }
310 
314  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
315 
319  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
320 
324  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
325 
329  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
330 
334  inline CreateTriggerRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
335 
339  inline CreateTriggerRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
340 
344  inline CreateTriggerRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
345 
346 
352  inline bool GetStartOnCreation() const{ return m_startOnCreation; }
353 
359  inline bool StartOnCreationHasBeenSet() const { return m_startOnCreationHasBeenSet; }
360 
366  inline void SetStartOnCreation(bool value) { m_startOnCreationHasBeenSet = true; m_startOnCreation = value; }
367 
373  inline CreateTriggerRequest& WithStartOnCreation(bool value) { SetStartOnCreation(value); return *this;}
374 
375 
382  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
383 
390  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
391 
398  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
399 
406  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
407 
414  inline CreateTriggerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
415 
422  inline CreateTriggerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
423 
430  inline CreateTriggerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
431 
438  inline CreateTriggerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
439 
446  inline CreateTriggerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
447 
454  inline CreateTriggerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
455 
462  inline CreateTriggerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
463 
470  inline CreateTriggerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
471 
478  inline CreateTriggerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
479 
480  private:
481 
482  Aws::String m_name;
483  bool m_nameHasBeenSet;
484 
485  Aws::String m_workflowName;
486  bool m_workflowNameHasBeenSet;
487 
488  TriggerType m_type;
489  bool m_typeHasBeenSet;
490 
491  Aws::String m_schedule;
492  bool m_scheduleHasBeenSet;
493 
494  Predicate m_predicate;
495  bool m_predicateHasBeenSet;
496 
497  Aws::Vector<Action> m_actions;
498  bool m_actionsHasBeenSet;
499 
500  Aws::String m_description;
501  bool m_descriptionHasBeenSet;
502 
503  bool m_startOnCreation;
504  bool m_startOnCreationHasBeenSet;
505 
507  bool m_tagsHasBeenSet;
508  };
509 
510 } // namespace Model
511 } // namespace Glue
512 } // namespace Aws
CreateTriggerRequest & WithActions(Aws::Vector< Action > &&value)
CreateTriggerRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateTriggerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTriggerRequest & WithPredicate(const Predicate &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTriggerRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateTriggerRequest & AddTags(const char *key, const char *value)
CreateTriggerRequest & WithWorkflowName(const char *value)
CreateTriggerRequest & WithWorkflowName(const Aws::String &value)
void SetActions(const Aws::Vector< Action > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateTriggerRequest & WithWorkflowName(Aws::String &&value)
CreateTriggerRequest & WithName(const char *value)
void SetName(const Aws::String &value)
CreateTriggerRequest & WithSchedule(Aws::String &&value)
CreateTriggerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTriggerRequest & WithStartOnCreation(bool value)
CreateTriggerRequest & WithType(TriggerType &&value)
CreateTriggerRequest & AddActions(Action &&value)
const Aws::String & GetWorkflowName() const
void SetType(const TriggerType &value)
const Aws::Vector< Action > & GetActions() const
CreateTriggerRequest & WithType(const TriggerType &value)
#define AWS_GLUE_API
Definition: Glue_EXPORTS.h:28
CreateTriggerRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateTriggerRequest & WithDescription(const char *value)
void SetWorkflowName(const Aws::String &value)
CreateTriggerRequest & WithSchedule(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTriggerRequest & WithName(Aws::String &&value)
CreateTriggerRequest & AddTags(const char *key, Aws::String &&value)
CreateTriggerRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateTriggerRequest & WithActions(const Aws::Vector< Action > &value)
CreateTriggerRequest & WithSchedule(const Aws::String &value)
CreateTriggerRequest & WithPredicate(Predicate &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetActions(Aws::Vector< Action > &&value)
void SetSchedule(const Aws::String &value)
CreateTriggerRequest & WithDescription(Aws::String &&value)
CreateTriggerRequest & WithName(const Aws::String &value)
CreateTriggerRequest & AddTags(Aws::String &&key, const char *value)
CreateTriggerRequest & AddActions(const Action &value)
CreateTriggerRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetDescription(const Aws::String &value)
void SetPredicate(const Predicate &value)
const Aws::String & GetDescription() const