AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTriggerRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/TriggerType.h>
11#include <aws/glue/model/Predicate.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/glue/model/EventBatchingCondition.h>
15#include <aws/glue/model/Action.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Glue
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_GLUE_API CreateTriggerRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateTrigger"; }
37
38 AWS_GLUE_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateTriggerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateTriggerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateTriggerRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetWorkflowName() const{ return m_workflowName; }
62 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
63 inline void SetWorkflowName(const Aws::String& value) { m_workflowNameHasBeenSet = true; m_workflowName = value; }
64 inline void SetWorkflowName(Aws::String&& value) { m_workflowNameHasBeenSet = true; m_workflowName = std::move(value); }
65 inline void SetWorkflowName(const char* value) { m_workflowNameHasBeenSet = true; m_workflowName.assign(value); }
66 inline CreateTriggerRequest& WithWorkflowName(const Aws::String& value) { SetWorkflowName(value); return *this;}
67 inline CreateTriggerRequest& WithWorkflowName(Aws::String&& value) { SetWorkflowName(std::move(value)); return *this;}
68 inline CreateTriggerRequest& WithWorkflowName(const char* value) { SetWorkflowName(value); return *this;}
70
72
75 inline const TriggerType& GetType() const{ return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(const TriggerType& value) { m_typeHasBeenSet = true; m_type = value; }
78 inline void SetType(TriggerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 inline CreateTriggerRequest& WithType(const TriggerType& value) { SetType(value); return *this;}
80 inline CreateTriggerRequest& WithType(TriggerType&& value) { SetType(std::move(value)); return *this;}
82
84
91 inline const Aws::String& GetSchedule() const{ return m_schedule; }
92 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
93 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
94 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
95 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
96 inline CreateTriggerRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
97 inline CreateTriggerRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
98 inline CreateTriggerRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
100
102
106 inline const Predicate& GetPredicate() const{ return m_predicate; }
107 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
108 inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
109 inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
110 inline CreateTriggerRequest& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
111 inline CreateTriggerRequest& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
113
115
118 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
119 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
120 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
121 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
122 inline CreateTriggerRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
123 inline CreateTriggerRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
124 inline CreateTriggerRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
125 inline CreateTriggerRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
127
129
132 inline const Aws::String& GetDescription() const{ return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
135 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
136 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
137 inline CreateTriggerRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
138 inline CreateTriggerRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
139 inline CreateTriggerRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
141
143
148 inline bool GetStartOnCreation() const{ return m_startOnCreation; }
149 inline bool StartOnCreationHasBeenSet() const { return m_startOnCreationHasBeenSet; }
150 inline void SetStartOnCreation(bool value) { m_startOnCreationHasBeenSet = true; m_startOnCreation = value; }
151 inline CreateTriggerRequest& WithStartOnCreation(bool value) { SetStartOnCreation(value); return *this;}
153
155
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
164 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
165 inline CreateTriggerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
166 inline CreateTriggerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
167 inline CreateTriggerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
168 inline CreateTriggerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
169 inline CreateTriggerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
170 inline CreateTriggerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
171 inline CreateTriggerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
172 inline CreateTriggerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
173 inline CreateTriggerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
175
177
181 inline const EventBatchingCondition& GetEventBatchingCondition() const{ return m_eventBatchingCondition; }
182 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
183 inline void SetEventBatchingCondition(const EventBatchingCondition& value) { m_eventBatchingConditionHasBeenSet = true; m_eventBatchingCondition = value; }
184 inline void SetEventBatchingCondition(EventBatchingCondition&& value) { m_eventBatchingConditionHasBeenSet = true; m_eventBatchingCondition = std::move(value); }
188 private:
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 Aws::String m_workflowName;
194 bool m_workflowNameHasBeenSet = false;
195
196 TriggerType m_type;
197 bool m_typeHasBeenSet = false;
198
199 Aws::String m_schedule;
200 bool m_scheduleHasBeenSet = false;
201
202 Predicate m_predicate;
203 bool m_predicateHasBeenSet = false;
204
205 Aws::Vector<Action> m_actions;
206 bool m_actionsHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
211 bool m_startOnCreation;
212 bool m_startOnCreationHasBeenSet = false;
213
215 bool m_tagsHasBeenSet = false;
216
217 EventBatchingCondition m_eventBatchingCondition;
218 bool m_eventBatchingConditionHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace Glue
223} // namespace Aws
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTriggerRequest & AddTags(const char *key, Aws::String &&value)
void SetWorkflowName(const Aws::String &value)
CreateTriggerRequest & WithSchedule(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateTriggerRequest & WithPredicate(const Predicate &value)
void SetActions(const Aws::Vector< Action > &value)
CreateTriggerRequest & WithEventBatchingCondition(EventBatchingCondition &&value)
CreateTriggerRequest & WithDescription(const Aws::String &value)
CreateTriggerRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetPredicate(const Predicate &value)
CreateTriggerRequest & AddTags(const char *key, const char *value)
CreateTriggerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTriggerRequest & WithSchedule(const char *value)
void SetSchedule(const Aws::String &value)
CreateTriggerRequest & WithName(const char *value)
CreateTriggerRequest & WithActions(const Aws::Vector< Action > &value)
AWS_GLUE_API Aws::String SerializePayload() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetWorkflowName() const
CreateTriggerRequest & WithWorkflowName(const char *value)
void SetDescription(const Aws::String &value)
CreateTriggerRequest & WithName(Aws::String &&value)
void SetActions(Aws::Vector< Action > &&value)
CreateTriggerRequest & WithType(TriggerType &&value)
CreateTriggerRequest & WithWorkflowName(Aws::String &&value)
const Aws::Vector< Action > & GetActions() const
CreateTriggerRequest & AddActions(const Action &value)
CreateTriggerRequest & WithSchedule(Aws::String &&value)
CreateTriggerRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateTriggerRequest & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
void SetEventBatchingCondition(const EventBatchingCondition &value)
void SetType(const TriggerType &value)
const EventBatchingCondition & GetEventBatchingCondition() const
CreateTriggerRequest & WithStartOnCreation(bool value)
CreateTriggerRequest & WithEventBatchingCondition(const EventBatchingCondition &value)
CreateTriggerRequest & AddActions(Action &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateTriggerRequest & WithDescription(const char *value)
CreateTriggerRequest & WithType(const TriggerType &value)
CreateTriggerRequest & AddTags(Aws::String &&key, const char *value)
void SetEventBatchingCondition(EventBatchingCondition &&value)
CreateTriggerRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateTriggerRequest & WithActions(Aws::Vector< Action > &&value)
CreateTriggerRequest & WithPredicate(Predicate &&value)
CreateTriggerRequest & WithDescription(Aws::String &&value)
CreateTriggerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTriggerRequest & WithWorkflowName(const Aws::String &value)
CreateTriggerRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &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