AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
TriggerUpdate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/Action.h>
11#include <aws/glue/model/EventBatchingCondition.h>
12#include <aws/glue/model/Predicate.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
34 public:
35 AWS_GLUE_API TriggerUpdate() = default;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 TriggerUpdate& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 TriggerUpdate& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetSchedule() const { return m_schedule; }
84 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
85 template <typename ScheduleT = Aws::String>
86 void SetSchedule(ScheduleT&& value) {
87 m_scheduleHasBeenSet = true;
88 m_schedule = std::forward<ScheduleT>(value);
89 }
90 template <typename ScheduleT = Aws::String>
91 TriggerUpdate& WithSchedule(ScheduleT&& value) {
92 SetSchedule(std::forward<ScheduleT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
102 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
103 template <typename ActionsT = Aws::Vector<Action>>
104 void SetActions(ActionsT&& value) {
105 m_actionsHasBeenSet = true;
106 m_actions = std::forward<ActionsT>(value);
107 }
108 template <typename ActionsT = Aws::Vector<Action>>
109 TriggerUpdate& WithActions(ActionsT&& value) {
110 SetActions(std::forward<ActionsT>(value));
111 return *this;
112 }
113 template <typename ActionsT = Action>
114 TriggerUpdate& AddActions(ActionsT&& value) {
115 m_actionsHasBeenSet = true;
116 m_actions.emplace_back(std::forward<ActionsT>(value));
117 return *this;
118 }
120
122
125 inline const Predicate& GetPredicate() const { return m_predicate; }
126 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
127 template <typename PredicateT = Predicate>
128 void SetPredicate(PredicateT&& value) {
129 m_predicateHasBeenSet = true;
130 m_predicate = std::forward<PredicateT>(value);
131 }
132 template <typename PredicateT = Predicate>
133 TriggerUpdate& WithPredicate(PredicateT&& value) {
134 SetPredicate(std::forward<PredicateT>(value));
135 return *this;
136 }
138
140
144 inline const EventBatchingCondition& GetEventBatchingCondition() const { return m_eventBatchingCondition; }
145 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
146 template <typename EventBatchingConditionT = EventBatchingCondition>
147 void SetEventBatchingCondition(EventBatchingConditionT&& value) {
148 m_eventBatchingConditionHasBeenSet = true;
149 m_eventBatchingCondition = std::forward<EventBatchingConditionT>(value);
150 }
151 template <typename EventBatchingConditionT = EventBatchingCondition>
152 TriggerUpdate& WithEventBatchingCondition(EventBatchingConditionT&& value) {
153 SetEventBatchingCondition(std::forward<EventBatchingConditionT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163
164 Aws::String m_schedule;
165 bool m_scheduleHasBeenSet = false;
166
167 Aws::Vector<Action> m_actions;
168 bool m_actionsHasBeenSet = false;
169
170 Predicate m_predicate;
171 bool m_predicateHasBeenSet = false;
172
173 EventBatchingCondition m_eventBatchingCondition;
174 bool m_eventBatchingConditionHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace Glue
179} // namespace Aws
void SetActions(ActionsT &&value)
TriggerUpdate & WithEventBatchingCondition(EventBatchingConditionT &&value)
TriggerUpdate & WithName(NameT &&value)
TriggerUpdate & AddActions(ActionsT &&value)
void SetSchedule(ScheduleT &&value)
bool EventBatchingConditionHasBeenSet() const
const Predicate & GetPredicate() const
AWS_GLUE_API TriggerUpdate()=default
void SetPredicate(PredicateT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetName() const
void SetEventBatchingCondition(EventBatchingConditionT &&value)
const Aws::Vector< Action > & GetActions() const
TriggerUpdate & WithActions(ActionsT &&value)
const EventBatchingCondition & GetEventBatchingCondition() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
TriggerUpdate & WithDescription(DescriptionT &&value)
AWS_GLUE_API TriggerUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
TriggerUpdate & WithPredicate(PredicateT &&value)
TriggerUpdate & WithSchedule(ScheduleT &&value)
AWS_GLUE_API TriggerUpdate(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSchedule() const
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue