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/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/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 EventBridge
23{
24namespace Model
25{
26
33 class Rule
34 {
35 public:
36 AWS_EVENTBRIDGE_API Rule();
37 AWS_EVENTBRIDGE_API Rule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_EVENTBRIDGE_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_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
111 inline const RuleState& GetState() const{ return m_state; }
112 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
113 inline void SetState(const RuleState& value) { m_stateHasBeenSet = true; m_state = value; }
114 inline void SetState(RuleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
115 inline Rule& WithState(const RuleState& value) { SetState(value); return *this;}
116 inline Rule& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetDescription() const{ return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
127 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
128 inline Rule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
129 inline Rule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
130 inline Rule& WithDescription(const char* value) { SetDescription(value); return *this;}
132
134
140 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
141 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
142 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
143 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
144 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
145 inline Rule& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
146 inline Rule& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
147 inline Rule& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
149
151
159 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
160 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
161 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
162 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
163 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
164 inline Rule& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
165 inline Rule& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
166 inline Rule& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
168
170
175 inline const Aws::String& GetManagedBy() const{ return m_managedBy; }
176 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
177 inline void SetManagedBy(const Aws::String& value) { m_managedByHasBeenSet = true; m_managedBy = value; }
178 inline void SetManagedBy(Aws::String&& value) { m_managedByHasBeenSet = true; m_managedBy = std::move(value); }
179 inline void SetManagedBy(const char* value) { m_managedByHasBeenSet = true; m_managedBy.assign(value); }
180 inline Rule& WithManagedBy(const Aws::String& value) { SetManagedBy(value); return *this;}
181 inline Rule& WithManagedBy(Aws::String&& value) { SetManagedBy(std::move(value)); return *this;}
182 inline Rule& WithManagedBy(const char* value) { SetManagedBy(value); return *this;}
184
186
190 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
191 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
192 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
193 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
194 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
195 inline Rule& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
196 inline Rule& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
197 inline Rule& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
199 private:
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
204 Aws::String m_arn;
205 bool m_arnHasBeenSet = false;
206
207 Aws::String m_eventPattern;
208 bool m_eventPatternHasBeenSet = false;
209
210 RuleState m_state;
211 bool m_stateHasBeenSet = false;
212
213 Aws::String m_description;
214 bool m_descriptionHasBeenSet = false;
215
216 Aws::String m_scheduleExpression;
217 bool m_scheduleExpressionHasBeenSet = false;
218
219 Aws::String m_roleArn;
220 bool m_roleArnHasBeenSet = false;
221
222 Aws::String m_managedBy;
223 bool m_managedByHasBeenSet = false;
224
225 Aws::String m_eventBusName;
226 bool m_eventBusNameHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace EventBridge
231} // namespace Aws
bool NameHasBeenSet() const
Definition Rule.h:47
const RuleState & GetState() const
Definition Rule.h:111
bool ArnHasBeenSet() const
Definition Rule.h:61
bool EventBusNameHasBeenSet() const
Definition Rule.h:191
Rule & WithDescription(const Aws::String &value)
Definition Rule.h:128
Rule & WithArn(const char *value)
Definition Rule.h:67
void SetRoleArn(const Aws::String &value)
Definition Rule.h:161
Rule & WithManagedBy(const char *value)
Definition Rule.h:182
Rule & WithDescription(const char *value)
Definition Rule.h:130
Rule & WithState(RuleState &&value)
Definition Rule.h:116
void SetScheduleExpression(const char *value)
Definition Rule.h:144
Rule & WithArn(Aws::String &&value)
Definition Rule.h:66
void SetRoleArn(const char *value)
Definition Rule.h:163
void SetEventPattern(Aws::String &&value)
Definition Rule.h:79
Rule & WithScheduleExpression(const char *value)
Definition Rule.h:147
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetManagedBy() const
Definition Rule.h:175
void SetEventPattern(const Aws::String &value)
Definition Rule.h:78
Rule & WithEventPattern(const char *value)
Definition Rule.h:83
Rule & WithManagedBy(const Aws::String &value)
Definition Rule.h:180
Rule & WithArn(const Aws::String &value)
Definition Rule.h:65
Rule & WithEventBusName(const Aws::String &value)
Definition Rule.h:195
void SetName(Aws::String &&value)
Definition Rule.h:49
void SetEventBusName(const char *value)
Definition Rule.h:194
void SetArn(Aws::String &&value)
Definition Rule.h:63
void SetEventPattern(const char *value)
Definition Rule.h:80
Rule & WithEventBusName(const char *value)
Definition Rule.h:197
bool DescriptionHasBeenSet() const
Definition Rule.h:124
Rule & WithScheduleExpression(const Aws::String &value)
Definition Rule.h:145
void SetRoleArn(Aws::String &&value)
Definition Rule.h:162
void SetManagedBy(const char *value)
Definition Rule.h:179
void SetName(const char *value)
Definition Rule.h:50
const Aws::String & GetDescription() const
Definition Rule.h:123
void SetManagedBy(Aws::String &&value)
Definition Rule.h:178
void SetScheduleExpression(Aws::String &&value)
Definition Rule.h:143
Rule & WithScheduleExpression(Aws::String &&value)
Definition Rule.h:146
bool RoleArnHasBeenSet() const
Definition Rule.h:160
Rule & WithRoleArn(Aws::String &&value)
Definition Rule.h:165
void SetDescription(const Aws::String &value)
Definition Rule.h:125
void SetDescription(const char *value)
Definition Rule.h:127
const Aws::String & GetScheduleExpression() const
Definition Rule.h:140
Rule & WithState(const RuleState &value)
Definition Rule.h:115
bool ManagedByHasBeenSet() const
Definition Rule.h:176
Rule & WithRoleArn(const Aws::String &value)
Definition Rule.h:164
void SetArn(const char *value)
Definition Rule.h:64
AWS_EVENTBRIDGE_API Rule()
Rule & WithEventPattern(Aws::String &&value)
Definition Rule.h:82
bool StateHasBeenSet() const
Definition Rule.h:112
AWS_EVENTBRIDGE_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & WithRoleArn(const char *value)
Definition Rule.h:166
void SetState(RuleState &&value)
Definition Rule.h:114
Rule & WithDescription(Aws::String &&value)
Definition Rule.h:129
void SetEventBusName(Aws::String &&value)
Definition Rule.h:193
Rule & WithEventPattern(const Aws::String &value)
Definition Rule.h:81
void SetArn(const Aws::String &value)
Definition Rule.h:62
Rule & WithName(Aws::String &&value)
Definition Rule.h:52
bool ScheduleExpressionHasBeenSet() const
Definition Rule.h:141
const Aws::String & GetArn() const
Definition Rule.h:60
const Aws::String & GetEventBusName() const
Definition Rule.h:190
void SetManagedBy(const Aws::String &value)
Definition Rule.h:177
Rule & WithName(const char *value)
Definition Rule.h:53
void SetEventBusName(const Aws::String &value)
Definition Rule.h:192
bool EventPatternHasBeenSet() const
Definition Rule.h:77
const Aws::String & GetName() const
Definition Rule.h:46
Rule & WithName(const Aws::String &value)
Definition Rule.h:51
void SetState(const RuleState &value)
Definition Rule.h:113
void SetName(const Aws::String &value)
Definition Rule.h:48
const Aws::String & GetEventPattern() const
Definition Rule.h:76
AWS_EVENTBRIDGE_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(Aws::String &&value)
Definition Rule.h:126
Rule & WithEventBusName(Aws::String &&value)
Definition Rule.h:196
Rule & WithManagedBy(Aws::String &&value)
Definition Rule.h:181
void SetScheduleExpression(const Aws::String &value)
Definition Rule.h:142
const Aws::String & GetRoleArn() const
Definition Rule.h:159
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue