AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateTriggerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetWorkflowName() const { return m_workflowName; }
60 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
61 template<typename WorkflowNameT = Aws::String>
62 void SetWorkflowName(WorkflowNameT&& value) { m_workflowNameHasBeenSet = true; m_workflowName = std::forward<WorkflowNameT>(value); }
63 template<typename WorkflowNameT = Aws::String>
64 CreateTriggerRequest& WithWorkflowName(WorkflowNameT&& value) { SetWorkflowName(std::forward<WorkflowNameT>(value)); return *this;}
66
68
71 inline TriggerType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(TriggerType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline CreateTriggerRequest& WithType(TriggerType value) { SetType(value); return *this;}
76
78
85 inline const Aws::String& GetSchedule() const { return m_schedule; }
86 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
87 template<typename ScheduleT = Aws::String>
88 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
89 template<typename ScheduleT = Aws::String>
90 CreateTriggerRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
92
94
98 inline const Predicate& GetPredicate() const { return m_predicate; }
99 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
100 template<typename PredicateT = Predicate>
101 void SetPredicate(PredicateT&& value) { m_predicateHasBeenSet = true; m_predicate = std::forward<PredicateT>(value); }
102 template<typename PredicateT = Predicate>
103 CreateTriggerRequest& WithPredicate(PredicateT&& value) { SetPredicate(std::forward<PredicateT>(value)); return *this;}
105
107
110 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
111 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
112 template<typename ActionsT = Aws::Vector<Action>>
113 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
114 template<typename ActionsT = Aws::Vector<Action>>
115 CreateTriggerRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
116 template<typename ActionsT = Action>
117 CreateTriggerRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
119
121
124 inline const Aws::String& GetDescription() const { return m_description; }
125 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
126 template<typename DescriptionT = Aws::String>
127 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
128 template<typename DescriptionT = Aws::String>
129 CreateTriggerRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
131
133
138 inline bool GetStartOnCreation() const { return m_startOnCreation; }
139 inline bool StartOnCreationHasBeenSet() const { return m_startOnCreationHasBeenSet; }
140 inline void SetStartOnCreation(bool value) { m_startOnCreationHasBeenSet = true; m_startOnCreation = value; }
141 inline CreateTriggerRequest& WithStartOnCreation(bool value) { SetStartOnCreation(value); return *this;}
143
145
151 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
155 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 CreateTriggerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
157 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
158 CreateTriggerRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
159 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
160 }
162
164
168 inline const EventBatchingCondition& GetEventBatchingCondition() const { return m_eventBatchingCondition; }
169 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
170 template<typename EventBatchingConditionT = EventBatchingCondition>
171 void SetEventBatchingCondition(EventBatchingConditionT&& value) { m_eventBatchingConditionHasBeenSet = true; m_eventBatchingCondition = std::forward<EventBatchingConditionT>(value); }
172 template<typename EventBatchingConditionT = EventBatchingCondition>
173 CreateTriggerRequest& WithEventBatchingCondition(EventBatchingConditionT&& value) { SetEventBatchingCondition(std::forward<EventBatchingConditionT>(value)); return *this;}
175 private:
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_workflowName;
181 bool m_workflowNameHasBeenSet = false;
182
184 bool m_typeHasBeenSet = false;
185
186 Aws::String m_schedule;
187 bool m_scheduleHasBeenSet = false;
188
189 Predicate m_predicate;
190 bool m_predicateHasBeenSet = false;
191
192 Aws::Vector<Action> m_actions;
193 bool m_actionsHasBeenSet = false;
194
195 Aws::String m_description;
196 bool m_descriptionHasBeenSet = false;
197
198 bool m_startOnCreation{false};
199 bool m_startOnCreationHasBeenSet = false;
200
202 bool m_tagsHasBeenSet = false;
203
204 EventBatchingCondition m_eventBatchingCondition;
205 bool m_eventBatchingConditionHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace Glue
210} // 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