AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/RuleState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchEvents
23{
24namespace Model
25{
26
33 class Rule
34 {
35 public:
36 AWS_CLOUDWATCHEVENTS_API Rule();
37 AWS_CLOUDWATCHEVENTS_API Rule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVENTS_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Rule& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Rule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Rule& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetArn() const{ return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
63 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
64 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 inline Rule& WithArn(const Aws::String& value) { SetArn(value); return *this;}
66 inline Rule& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
67 inline Rule& WithArn(const char* value) { SetArn(value); return *this;}
69
71
76 inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
77 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
78 inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
79 inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
80 inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
81 inline Rule& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
82 inline Rule& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
83 inline Rule& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
85
87
90 inline const RuleState& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const RuleState& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(RuleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
94 inline Rule& WithState(const RuleState& value) { SetState(value); return *this;}
95 inline Rule& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetDescription() const{ return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
105 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
106 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 inline Rule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 inline Rule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
109 inline Rule& WithDescription(const char* value) { SetDescription(value); return *this;}
111
113
119 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
120 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
121 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
122 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
123 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
124 inline Rule& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
125 inline Rule& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
126 inline Rule& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
128
130
138 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
139 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
140 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
141 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
142 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
143 inline Rule& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
144 inline Rule& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
145 inline Rule& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
147
149
154 inline const Aws::String& GetManagedBy() const{ return m_managedBy; }
155 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
156 inline void SetManagedBy(const Aws::String& value) { m_managedByHasBeenSet = true; m_managedBy = value; }
157 inline void SetManagedBy(Aws::String&& value) { m_managedByHasBeenSet = true; m_managedBy = std::move(value); }
158 inline void SetManagedBy(const char* value) { m_managedByHasBeenSet = true; m_managedBy.assign(value); }
159 inline Rule& WithManagedBy(const Aws::String& value) { SetManagedBy(value); return *this;}
160 inline Rule& WithManagedBy(Aws::String&& value) { SetManagedBy(std::move(value)); return *this;}
161 inline Rule& WithManagedBy(const char* value) { SetManagedBy(value); return *this;}
163
165
169 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
170 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
171 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
172 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
173 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
174 inline Rule& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
175 inline Rule& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
176 inline Rule& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
178 private:
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_arn;
184 bool m_arnHasBeenSet = false;
185
186 Aws::String m_eventPattern;
187 bool m_eventPatternHasBeenSet = false;
188
189 RuleState m_state;
190 bool m_stateHasBeenSet = false;
191
192 Aws::String m_description;
193 bool m_descriptionHasBeenSet = false;
194
195 Aws::String m_scheduleExpression;
196 bool m_scheduleExpressionHasBeenSet = false;
197
198 Aws::String m_roleArn;
199 bool m_roleArnHasBeenSet = false;
200
201 Aws::String m_managedBy;
202 bool m_managedByHasBeenSet = false;
203
204 Aws::String m_eventBusName;
205 bool m_eventBusNameHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace CloudWatchEvents
210} // namespace Aws
void SetManagedBy(const Aws::String &value)
Definition Rule.h:156
Rule & WithDescription(const Aws::String &value)
Definition Rule.h:107
Rule & WithDescription(Aws::String &&value)
Definition Rule.h:108
const Aws::String & GetArn() const
Definition Rule.h:60
Rule & WithManagedBy(const Aws::String &value)
Definition Rule.h:159
Rule & WithScheduleExpression(const Aws::String &value)
Definition Rule.h:124
void SetManagedBy(Aws::String &&value)
Definition Rule.h:157
void SetEventBusName(Aws::String &&value)
Definition Rule.h:172
const Aws::String & GetEventPattern() const
Definition Rule.h:76
Rule & WithArn(Aws::String &&value)
Definition Rule.h:66
void SetEventPattern(const char *value)
Definition Rule.h:80
Rule & WithRoleArn(const char *value)
Definition Rule.h:145
Rule & WithState(const RuleState &value)
Definition Rule.h:94
Rule & WithEventPattern(const Aws::String &value)
Definition Rule.h:81
void SetDescription(Aws::String &&value)
Definition Rule.h:105
AWS_CLOUDWATCHEVENTS_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(RuleState &&value)
Definition Rule.h:93
void SetRoleArn(const Aws::String &value)
Definition Rule.h:140
void SetEventBusName(const Aws::String &value)
Definition Rule.h:171
void SetManagedBy(const char *value)
Definition Rule.h:158
void SetScheduleExpression(const Aws::String &value)
Definition Rule.h:121
Rule & WithArn(const char *value)
Definition Rule.h:67
Rule & WithDescription(const char *value)
Definition Rule.h:109
void SetDescription(const Aws::String &value)
Definition Rule.h:104
bool DescriptionHasBeenSet() const
Definition Rule.h:103
const Aws::String & GetScheduleExpression() const
Definition Rule.h:119
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & WithScheduleExpression(const char *value)
Definition Rule.h:126
Rule & WithEventBusName(const char *value)
Definition Rule.h:176
void SetName(const Aws::String &value)
Definition Rule.h:48
void SetName(const char *value)
Definition Rule.h:50
Rule & WithRoleArn(const Aws::String &value)
Definition Rule.h:143
void SetArn(const Aws::String &value)
Definition Rule.h:62
void SetRoleArn(Aws::String &&value)
Definition Rule.h:141
void SetScheduleExpression(const char *value)
Definition Rule.h:123
Rule & WithRoleArn(Aws::String &&value)
Definition Rule.h:144
bool ScheduleExpressionHasBeenSet() const
Definition Rule.h:120
void SetName(Aws::String &&value)
Definition Rule.h:49
void SetArn(Aws::String &&value)
Definition Rule.h:63
void SetEventBusName(const char *value)
Definition Rule.h:173
void SetArn(const char *value)
Definition Rule.h:64
void SetDescription(const char *value)
Definition Rule.h:106
bool EventPatternHasBeenSet() const
Definition Rule.h:77
void SetState(const RuleState &value)
Definition Rule.h:92
const Aws::String & GetEventBusName() const
Definition Rule.h:169
AWS_CLOUDWATCHEVENTS_API Rule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetManagedBy() const
Definition Rule.h:154
Rule & WithManagedBy(Aws::String &&value)
Definition Rule.h:160
Rule & WithScheduleExpression(Aws::String &&value)
Definition Rule.h:125
void SetEventPattern(Aws::String &&value)
Definition Rule.h:79
void SetScheduleExpression(Aws::String &&value)
Definition Rule.h:122
Rule & WithEventBusName(const Aws::String &value)
Definition Rule.h:174
Rule & WithArn(const Aws::String &value)
Definition Rule.h:65
const Aws::String & GetDescription() const
Definition Rule.h:102
Rule & WithName(const char *value)
Definition Rule.h:53
void SetRoleArn(const char *value)
Definition Rule.h:142
void SetEventPattern(const Aws::String &value)
Definition Rule.h:78
const RuleState & GetState() const
Definition Rule.h:90
Rule & WithEventPattern(Aws::String &&value)
Definition Rule.h:82
Rule & WithState(RuleState &&value)
Definition Rule.h:95
Rule & WithName(const Aws::String &value)
Definition Rule.h:51
AWS_CLOUDWATCHEVENTS_API Rule()
Rule & WithName(Aws::String &&value)
Definition Rule.h:52
const Aws::String & GetRoleArn() const
Definition Rule.h:138
Rule & WithEventBusName(Aws::String &&value)
Definition Rule.h:175
bool EventBusNameHasBeenSet() const
Definition Rule.h:170
Rule & WithEventPattern(const char *value)
Definition Rule.h:83
const Aws::String & GetName() const
Definition Rule.h:46
Rule & WithManagedBy(const char *value)
Definition Rule.h:161
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue