AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TriggerUpdate.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/Predicate.h>
11#include <aws/glue/model/EventBatchingCondition.h>
12#include <aws/glue/model/Action.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_GLUE_API TriggerUpdate() = default;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 TriggerUpdate& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 TriggerUpdate& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
77 inline const Aws::String& GetSchedule() const { return m_schedule; }
78 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
79 template<typename ScheduleT = Aws::String>
80 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
81 template<typename ScheduleT = Aws::String>
82 TriggerUpdate& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
84
86
89 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
90 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
91 template<typename ActionsT = Aws::Vector<Action>>
92 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
93 template<typename ActionsT = Aws::Vector<Action>>
94 TriggerUpdate& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
95 template<typename ActionsT = Action>
96 TriggerUpdate& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
98
100
103 inline const Predicate& GetPredicate() const { return m_predicate; }
104 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
105 template<typename PredicateT = Predicate>
106 void SetPredicate(PredicateT&& value) { m_predicateHasBeenSet = true; m_predicate = std::forward<PredicateT>(value); }
107 template<typename PredicateT = Predicate>
108 TriggerUpdate& WithPredicate(PredicateT&& value) { SetPredicate(std::forward<PredicateT>(value)); return *this;}
110
112
116 inline const EventBatchingCondition& GetEventBatchingCondition() const { return m_eventBatchingCondition; }
117 inline bool EventBatchingConditionHasBeenSet() const { return m_eventBatchingConditionHasBeenSet; }
118 template<typename EventBatchingConditionT = EventBatchingCondition>
119 void SetEventBatchingCondition(EventBatchingConditionT&& value) { m_eventBatchingConditionHasBeenSet = true; m_eventBatchingCondition = std::forward<EventBatchingConditionT>(value); }
120 template<typename EventBatchingConditionT = EventBatchingCondition>
121 TriggerUpdate& WithEventBatchingCondition(EventBatchingConditionT&& value) { SetEventBatchingCondition(std::forward<EventBatchingConditionT>(value)); return *this;}
123 private:
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::String m_schedule;
132 bool m_scheduleHasBeenSet = false;
133
134 Aws::Vector<Action> m_actions;
135 bool m_actionsHasBeenSet = false;
136
137 Predicate m_predicate;
138 bool m_predicateHasBeenSet = false;
139
140 EventBatchingCondition m_eventBatchingCondition;
141 bool m_eventBatchingConditionHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Glue
146} // 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