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/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/RuleTriggerEventSource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/RulePublishStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/connect/model/RuleAction.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Connect
28{
29namespace Model
30{
31
37 class Rule
38 {
39 public:
40 AWS_CONNECT_API Rule();
41 AWS_CONNECT_API Rule(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline Rule& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline Rule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline Rule& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
65 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
66 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
67 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
68 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
69 inline Rule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
70 inline Rule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
71 inline Rule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
73
75
78 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
79 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
80 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
81 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
82 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
83 inline Rule& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
84 inline Rule& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
85 inline Rule& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
87
89
92 inline const RuleTriggerEventSource& GetTriggerEventSource() const{ return m_triggerEventSource; }
93 inline bool TriggerEventSourceHasBeenSet() const { return m_triggerEventSourceHasBeenSet; }
94 inline void SetTriggerEventSource(const RuleTriggerEventSource& value) { m_triggerEventSourceHasBeenSet = true; m_triggerEventSource = value; }
95 inline void SetTriggerEventSource(RuleTriggerEventSource&& value) { m_triggerEventSourceHasBeenSet = true; m_triggerEventSource = std::move(value); }
96 inline Rule& WithTriggerEventSource(const RuleTriggerEventSource& value) { SetTriggerEventSource(value); return *this;}
97 inline Rule& WithTriggerEventSource(RuleTriggerEventSource&& value) { SetTriggerEventSource(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetFunction() const{ return m_function; }
105 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
106 inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; }
107 inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); }
108 inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); }
109 inline Rule& WithFunction(const Aws::String& value) { SetFunction(value); return *this;}
110 inline Rule& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;}
111 inline Rule& WithFunction(const char* value) { SetFunction(value); return *this;}
113
115
118 inline const Aws::Vector<RuleAction>& GetActions() const{ return m_actions; }
119 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
120 inline void SetActions(const Aws::Vector<RuleAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
121 inline void SetActions(Aws::Vector<RuleAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
122 inline Rule& WithActions(const Aws::Vector<RuleAction>& value) { SetActions(value); return *this;}
123 inline Rule& WithActions(Aws::Vector<RuleAction>&& value) { SetActions(std::move(value)); return *this;}
124 inline Rule& AddActions(const RuleAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
125 inline Rule& AddActions(RuleAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
127
129
132 inline const RulePublishStatus& GetPublishStatus() const{ return m_publishStatus; }
133 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
134 inline void SetPublishStatus(const RulePublishStatus& value) { m_publishStatusHasBeenSet = true; m_publishStatus = value; }
135 inline void SetPublishStatus(RulePublishStatus&& value) { m_publishStatusHasBeenSet = true; m_publishStatus = std::move(value); }
136 inline Rule& WithPublishStatus(const RulePublishStatus& value) { SetPublishStatus(value); return *this;}
137 inline Rule& WithPublishStatus(RulePublishStatus&& value) { SetPublishStatus(std::move(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
145 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
146 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
147 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
148 inline Rule& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
149 inline Rule& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
157 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
158 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
159 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
160 inline Rule& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
161 inline Rule& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
163
165
168 inline const Aws::String& GetLastUpdatedBy() const{ return m_lastUpdatedBy; }
169 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
170 inline void SetLastUpdatedBy(const Aws::String& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = value; }
171 inline void SetLastUpdatedBy(Aws::String&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::move(value); }
172 inline void SetLastUpdatedBy(const char* value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy.assign(value); }
173 inline Rule& WithLastUpdatedBy(const Aws::String& value) { SetLastUpdatedBy(value); return *this;}
174 inline Rule& WithLastUpdatedBy(Aws::String&& value) { SetLastUpdatedBy(std::move(value)); return *this;}
175 inline Rule& WithLastUpdatedBy(const char* value) { SetLastUpdatedBy(value); return *this;}
177
179
183 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
186 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 inline Rule& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
188 inline Rule& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
189 inline Rule& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
190 inline Rule& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
191 inline Rule& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
192 inline Rule& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
193 inline Rule& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
194 inline Rule& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
195 inline Rule& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
197 private:
198
199 Aws::String m_name;
200 bool m_nameHasBeenSet = false;
201
202 Aws::String m_ruleId;
203 bool m_ruleIdHasBeenSet = false;
204
205 Aws::String m_ruleArn;
206 bool m_ruleArnHasBeenSet = false;
207
208 RuleTriggerEventSource m_triggerEventSource;
209 bool m_triggerEventSourceHasBeenSet = false;
210
211 Aws::String m_function;
212 bool m_functionHasBeenSet = false;
213
214 Aws::Vector<RuleAction> m_actions;
215 bool m_actionsHasBeenSet = false;
216
217 RulePublishStatus m_publishStatus;
218 bool m_publishStatusHasBeenSet = false;
219
220 Aws::Utils::DateTime m_createdTime;
221 bool m_createdTimeHasBeenSet = false;
222
223 Aws::Utils::DateTime m_lastUpdatedTime;
224 bool m_lastUpdatedTimeHasBeenSet = false;
225
226 Aws::String m_lastUpdatedBy;
227 bool m_lastUpdatedByHasBeenSet = false;
228
230 bool m_tagsHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace Connect
235} // namespace Aws
Rule & WithLastUpdatedBy(const char *value)
Definition Rule.h:175
AWS_CONNECT_API Rule()
const Aws::Vector< RuleAction > & GetActions() const
Definition Rule.h:118
bool PublishStatusHasBeenSet() const
Definition Rule.h:133
void SetLastUpdatedBy(const Aws::String &value)
Definition Rule.h:170
Rule & WithRuleArn(const Aws::String &value)
Definition Rule.h:83
bool TriggerEventSourceHasBeenSet() const
Definition Rule.h:93
bool CreatedTimeHasBeenSet() const
Definition Rule.h:145
const Aws::String & GetFunction() const
Definition Rule.h:104
Rule & WithName(const Aws::String &value)
Definition Rule.h:55
bool FunctionHasBeenSet() const
Definition Rule.h:105
Rule & AddTags(Aws::String &&key, const char *value)
Definition Rule.h:194
Rule & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition Rule.h:149
const RuleTriggerEventSource & GetTriggerEventSource() const
Definition Rule.h:92
void SetFunction(const Aws::String &value)
Definition Rule.h:106
void SetRuleArn(const char *value)
Definition Rule.h:82
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition Rule.h:147
void SetRuleArn(Aws::String &&value)
Definition Rule.h:81
void SetName(Aws::String &&value)
Definition Rule.h:53
Rule & WithRuleId(const char *value)
Definition Rule.h:71
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Rule.h:144
Rule & WithTriggerEventSource(RuleTriggerEventSource &&value)
Definition Rule.h:97
Rule & AddTags(Aws::String &&key, Aws::String &&value)
Definition Rule.h:192
bool NameHasBeenSet() const
Definition Rule.h:51
bool TagsHasBeenSet() const
Definition Rule.h:184
Rule & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Rule.h:187
Rule & WithPublishStatus(const RulePublishStatus &value)
Definition Rule.h:136
Rule & WithFunction(const Aws::String &value)
Definition Rule.h:109
void SetActions(const Aws::Vector< RuleAction > &value)
Definition Rule.h:120
AWS_CONNECT_API Rule(Aws::Utils::Json::JsonView jsonValue)
Rule & WithRuleArn(Aws::String &&value)
Definition Rule.h:84
Rule & WithLastUpdatedBy(Aws::String &&value)
Definition Rule.h:174
void SetRuleId(const Aws::String &value)
Definition Rule.h:66
Rule & WithRuleArn(const char *value)
Definition Rule.h:85
bool LastUpdatedTimeHasBeenSet() const
Definition Rule.h:157
bool LastUpdatedByHasBeenSet() const
Definition Rule.h:169
Rule & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Rule.h:188
const Aws::String & GetLastUpdatedBy() const
Definition Rule.h:168
const Aws::String & GetRuleArn() const
Definition Rule.h:78
Rule & WithActions(const Aws::Vector< RuleAction > &value)
Definition Rule.h:122
void SetName(const Aws::String &value)
Definition Rule.h:52
Rule & AddTags(const char *key, Aws::String &&value)
Definition Rule.h:193
Rule & WithActions(Aws::Vector< RuleAction > &&value)
Definition Rule.h:123
Rule & WithPublishStatus(RulePublishStatus &&value)
Definition Rule.h:137
Rule & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition Rule.h:148
Rule & WithLastUpdatedBy(const Aws::String &value)
Definition Rule.h:173
void SetActions(Aws::Vector< RuleAction > &&value)
Definition Rule.h:121
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & WithFunction(const char *value)
Definition Rule.h:111
void SetRuleId(Aws::String &&value)
Definition Rule.h:67
Rule & WithTriggerEventSource(const RuleTriggerEventSource &value)
Definition Rule.h:96
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Rule.h:156
void SetFunction(Aws::String &&value)
Definition Rule.h:107
Rule & AddActions(RuleAction &&value)
Definition Rule.h:125
Rule & AddActions(const RuleAction &value)
Definition Rule.h:124
Rule & AddTags(const Aws::String &key, Aws::String &&value)
Definition Rule.h:191
void SetName(const char *value)
Definition Rule.h:54
void SetLastUpdatedBy(const char *value)
Definition Rule.h:172
Rule & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Rule.h:161
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Rule.h:185
void SetTriggerEventSource(const RuleTriggerEventSource &value)
Definition Rule.h:94
Rule & AddTags(const char *key, const char *value)
Definition Rule.h:195
Rule & WithRuleId(const Aws::String &value)
Definition Rule.h:69
Rule & WithName(const char *value)
Definition Rule.h:57
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Rule.h:158
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition Rule.h:146
void SetFunction(const char *value)
Definition Rule.h:108
Rule & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Rule.h:160
void SetRuleId(const char *value)
Definition Rule.h:68
Rule & AddTags(Aws::String &&key, const Aws::String &value)
Definition Rule.h:190
void SetPublishStatus(const RulePublishStatus &value)
Definition Rule.h:134
Rule & AddTags(const Aws::String &key, const Aws::String &value)
Definition Rule.h:189
bool ActionsHasBeenSet() const
Definition Rule.h:119
Rule & WithRuleId(Aws::String &&value)
Definition Rule.h:70
AWS_CONNECT_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRuleArn(const Aws::String &value)
Definition Rule.h:80
bool RuleIdHasBeenSet() const
Definition Rule.h:65
const Aws::String & GetRuleId() const
Definition Rule.h:64
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Rule.h:186
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Rule.h:183
Rule & WithName(Aws::String &&value)
Definition Rule.h:56
void SetTriggerEventSource(RuleTriggerEventSource &&value)
Definition Rule.h:95
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Rule.h:159
void SetPublishStatus(RulePublishStatus &&value)
Definition Rule.h:135
bool RuleArnHasBeenSet() const
Definition Rule.h:79
const Aws::String & GetName() const
Definition Rule.h:50
const RulePublishStatus & GetPublishStatus() const
Definition Rule.h:132
Rule & WithFunction(Aws::String &&value)
Definition Rule.h:110
void SetLastUpdatedBy(Aws::String &&value)
Definition Rule.h:171
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
Aws::Utils::Json::JsonValue JsonValue