AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
RuleSearchSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ActionSummary.h>
9#include <aws/connect/model/RuleCapabilityTier.h>
10#include <aws/connect/model/RulePublishStatus.h>
11#include <aws/connect/model/RuleTriggerEventSource.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Connect {
27namespace Model {
28
36 public:
37 AWS_CONNECT_API RuleSearchSummary() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 RuleSearchSummary& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetRuleId() const { return m_ruleId; }
65 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
66 template <typename RuleIdT = Aws::String>
67 void SetRuleId(RuleIdT&& value) {
68 m_ruleIdHasBeenSet = true;
69 m_ruleId = std::forward<RuleIdT>(value);
70 }
71 template <typename RuleIdT = Aws::String>
72 RuleSearchSummary& WithRuleId(RuleIdT&& value) {
73 SetRuleId(std::forward<RuleIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
83 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
84 template <typename RuleArnT = Aws::String>
85 void SetRuleArn(RuleArnT&& value) {
86 m_ruleArnHasBeenSet = true;
87 m_ruleArn = std::forward<RuleArnT>(value);
88 }
89 template <typename RuleArnT = Aws::String>
90 RuleSearchSummary& WithRuleArn(RuleArnT&& value) {
91 SetRuleArn(std::forward<RuleArnT>(value));
92 return *this;
93 }
95
97
100 inline const RuleTriggerEventSource& GetTriggerEventSource() const { return m_triggerEventSource; }
101 inline bool TriggerEventSourceHasBeenSet() const { return m_triggerEventSourceHasBeenSet; }
102 template <typename TriggerEventSourceT = RuleTriggerEventSource>
103 void SetTriggerEventSource(TriggerEventSourceT&& value) {
104 m_triggerEventSourceHasBeenSet = true;
105 m_triggerEventSource = std::forward<TriggerEventSourceT>(value);
106 }
107 template <typename TriggerEventSourceT = RuleTriggerEventSource>
108 RuleSearchSummary& WithTriggerEventSource(TriggerEventSourceT&& value) {
109 SetTriggerEventSource(std::forward<TriggerEventSourceT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<ActionSummary>& GetActionSummaries() const { return m_actionSummaries; }
119 inline bool ActionSummariesHasBeenSet() const { return m_actionSummariesHasBeenSet; }
120 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
121 void SetActionSummaries(ActionSummariesT&& value) {
122 m_actionSummariesHasBeenSet = true;
123 m_actionSummaries = std::forward<ActionSummariesT>(value);
124 }
125 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
126 RuleSearchSummary& WithActionSummaries(ActionSummariesT&& value) {
127 SetActionSummaries(std::forward<ActionSummariesT>(value));
128 return *this;
129 }
130 template <typename ActionSummariesT = ActionSummary>
131 RuleSearchSummary& AddActionSummaries(ActionSummariesT&& value) {
132 m_actionSummariesHasBeenSet = true;
133 m_actionSummaries.emplace_back(std::forward<ActionSummariesT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::Vector<RuleCapabilityTier>& GetRuleCapabilityTiers() const { return m_ruleCapabilityTiers; }
144 inline bool RuleCapabilityTiersHasBeenSet() const { return m_ruleCapabilityTiersHasBeenSet; }
145 template <typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
146 void SetRuleCapabilityTiers(RuleCapabilityTiersT&& value) {
147 m_ruleCapabilityTiersHasBeenSet = true;
148 m_ruleCapabilityTiers = std::forward<RuleCapabilityTiersT>(value);
149 }
150 template <typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
151 RuleSearchSummary& WithRuleCapabilityTiers(RuleCapabilityTiersT&& value) {
152 SetRuleCapabilityTiers(std::forward<RuleCapabilityTiersT>(value));
153 return *this;
154 }
156 m_ruleCapabilityTiersHasBeenSet = true;
157 m_ruleCapabilityTiers.push_back(value);
158 return *this;
159 }
161
163
166 inline RulePublishStatus GetPublishStatus() const { return m_publishStatus; }
167 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
169 m_publishStatusHasBeenSet = true;
170 m_publishStatus = value;
171 }
173 SetPublishStatus(value);
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
183 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
184 template <typename CreatedTimeT = Aws::Utils::DateTime>
185 void SetCreatedTime(CreatedTimeT&& value) {
186 m_createdTimeHasBeenSet = true;
187 m_createdTime = std::forward<CreatedTimeT>(value);
188 }
189 template <typename CreatedTimeT = Aws::Utils::DateTime>
190 RuleSearchSummary& WithCreatedTime(CreatedTimeT&& value) {
191 SetCreatedTime(std::forward<CreatedTimeT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
201 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
202 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
203 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
204 m_lastUpdatedTimeHasBeenSet = true;
205 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
206 }
207 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
208 RuleSearchSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
209 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
219 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
220 template <typename LastUpdatedByT = Aws::String>
221 void SetLastUpdatedBy(LastUpdatedByT&& value) {
222 m_lastUpdatedByHasBeenSet = true;
223 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
224 }
225 template <typename LastUpdatedByT = Aws::String>
226 RuleSearchSummary& WithLastUpdatedBy(LastUpdatedByT&& value) {
227 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
228 return *this;
229 }
231
233
237 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
238 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
239 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
240 void SetTags(TagsT&& value) {
241 m_tagsHasBeenSet = true;
242 m_tags = std::forward<TagsT>(value);
243 }
244 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
245 RuleSearchSummary& WithTags(TagsT&& value) {
246 SetTags(std::forward<TagsT>(value));
247 return *this;
248 }
249 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
250 RuleSearchSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
251 m_tagsHasBeenSet = true;
252 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_name;
258
259 Aws::String m_ruleId;
260
261 Aws::String m_ruleArn;
262
263 RuleTriggerEventSource m_triggerEventSource;
264
265 Aws::Vector<ActionSummary> m_actionSummaries;
266
267 Aws::Vector<RuleCapabilityTier> m_ruleCapabilityTiers;
268
270
271 Aws::Utils::DateTime m_createdTime{};
272
273 Aws::Utils::DateTime m_lastUpdatedTime{};
274
275 Aws::String m_lastUpdatedBy;
276
278 bool m_nameHasBeenSet = false;
279 bool m_ruleIdHasBeenSet = false;
280 bool m_ruleArnHasBeenSet = false;
281 bool m_triggerEventSourceHasBeenSet = false;
282 bool m_actionSummariesHasBeenSet = false;
283 bool m_ruleCapabilityTiersHasBeenSet = false;
284 bool m_publishStatusHasBeenSet = false;
285 bool m_createdTimeHasBeenSet = false;
286 bool m_lastUpdatedTimeHasBeenSet = false;
287 bool m_lastUpdatedByHasBeenSet = false;
288 bool m_tagsHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace Connect
293} // namespace Aws
RuleSearchSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
RuleSearchSummary & WithRuleArn(RuleArnT &&value)
RuleSearchSummary & WithRuleCapabilityTiers(RuleCapabilityTiersT &&value)
RuleSearchSummary & WithCreatedTime(CreatedTimeT &&value)
RuleSearchSummary & WithPublishStatus(RulePublishStatus value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API RuleSearchSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTriggerEventSource(TriggerEventSourceT &&value)
void SetActionSummaries(ActionSummariesT &&value)
RuleSearchSummary & WithActionSummaries(ActionSummariesT &&value)
RuleSearchSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const RuleTriggerEventSource & GetTriggerEventSource() const
RuleSearchSummary & WithRuleId(RuleIdT &&value)
void SetPublishStatus(RulePublishStatus value)
const Aws::String & GetName() const
const Aws::Vector< RuleCapabilityTier > & GetRuleCapabilityTiers() const
RuleSearchSummary & WithTags(TagsT &&value)
AWS_CONNECT_API RuleSearchSummary()=default
RuleSearchSummary & AddRuleCapabilityTiers(RuleCapabilityTier value)
const Aws::String & GetRuleArn() const
RuleSearchSummary & WithLastUpdatedBy(LastUpdatedByT &&value)
RuleSearchSummary & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
const Aws::Vector< ActionSummary > & GetActionSummaries() const
RuleSearchSummary & WithTriggerEventSource(TriggerEventSourceT &&value)
const Aws::String & GetLastUpdatedBy() const
RulePublishStatus GetPublishStatus() const
AWS_CONNECT_API RuleSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRuleCapabilityTiers(RuleCapabilityTiersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetCreatedTime(CreatedTimeT &&value)
void SetLastUpdatedBy(LastUpdatedByT &&value)
const Aws::String & GetRuleId() const
const Aws::Utils::DateTime & GetCreatedTime() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
RuleSearchSummary & AddActionSummaries(ActionSummariesT &&value)
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