AWS SDK for C++

AWS SDK for C++ Version 1.11.887

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/PreEvaluationFilters.h>
10#include <aws/connect/model/RuleCapabilityTier.h>
11#include <aws/connect/model/RulePublishStatus.h>
12#include <aws/connect/model/RuleTriggerEventSource.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Connect {
28namespace Model {
29
37 public:
38 AWS_CONNECT_API RuleSearchSummary() = default;
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 RuleSearchSummary& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetRuleId() const { return m_ruleId; }
66 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
67 template <typename RuleIdT = Aws::String>
68 void SetRuleId(RuleIdT&& value) {
69 m_ruleIdHasBeenSet = true;
70 m_ruleId = std::forward<RuleIdT>(value);
71 }
72 template <typename RuleIdT = Aws::String>
73 RuleSearchSummary& WithRuleId(RuleIdT&& value) {
74 SetRuleId(std::forward<RuleIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
84 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
85 template <typename RuleArnT = Aws::String>
86 void SetRuleArn(RuleArnT&& value) {
87 m_ruleArnHasBeenSet = true;
88 m_ruleArn = std::forward<RuleArnT>(value);
89 }
90 template <typename RuleArnT = Aws::String>
91 RuleSearchSummary& WithRuleArn(RuleArnT&& value) {
92 SetRuleArn(std::forward<RuleArnT>(value));
93 return *this;
94 }
96
98
101 inline const RuleTriggerEventSource& GetTriggerEventSource() const { return m_triggerEventSource; }
102 inline bool TriggerEventSourceHasBeenSet() const { return m_triggerEventSourceHasBeenSet; }
103 template <typename TriggerEventSourceT = RuleTriggerEventSource>
104 void SetTriggerEventSource(TriggerEventSourceT&& value) {
105 m_triggerEventSourceHasBeenSet = true;
106 m_triggerEventSource = std::forward<TriggerEventSourceT>(value);
107 }
108 template <typename TriggerEventSourceT = RuleTriggerEventSource>
109 RuleSearchSummary& WithTriggerEventSource(TriggerEventSourceT&& value) {
110 SetTriggerEventSource(std::forward<TriggerEventSourceT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<ActionSummary>& GetActionSummaries() const { return m_actionSummaries; }
120 inline bool ActionSummariesHasBeenSet() const { return m_actionSummariesHasBeenSet; }
121 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
122 void SetActionSummaries(ActionSummariesT&& value) {
123 m_actionSummariesHasBeenSet = true;
124 m_actionSummaries = std::forward<ActionSummariesT>(value);
125 }
126 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
127 RuleSearchSummary& WithActionSummaries(ActionSummariesT&& value) {
128 SetActionSummaries(std::forward<ActionSummariesT>(value));
129 return *this;
130 }
131 template <typename ActionSummariesT = ActionSummary>
132 RuleSearchSummary& AddActionSummaries(ActionSummariesT&& value) {
133 m_actionSummariesHasBeenSet = true;
134 m_actionSummaries.emplace_back(std::forward<ActionSummariesT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::Vector<RuleCapabilityTier>& GetRuleCapabilityTiers() const { return m_ruleCapabilityTiers; }
145 inline bool RuleCapabilityTiersHasBeenSet() const { return m_ruleCapabilityTiersHasBeenSet; }
146 template <typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
147 void SetRuleCapabilityTiers(RuleCapabilityTiersT&& value) {
148 m_ruleCapabilityTiersHasBeenSet = true;
149 m_ruleCapabilityTiers = std::forward<RuleCapabilityTiersT>(value);
150 }
151 template <typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
152 RuleSearchSummary& WithRuleCapabilityTiers(RuleCapabilityTiersT&& value) {
153 SetRuleCapabilityTiers(std::forward<RuleCapabilityTiersT>(value));
154 return *this;
155 }
157 m_ruleCapabilityTiersHasBeenSet = true;
158 m_ruleCapabilityTiers.push_back(value);
159 return *this;
160 }
162
164
167 inline RulePublishStatus GetPublishStatus() const { return m_publishStatus; }
168 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
170 m_publishStatusHasBeenSet = true;
171 m_publishStatus = value;
172 }
174 SetPublishStatus(value);
175 return *this;
176 }
178
180
187 inline const PreEvaluationFilters& GetPreEvaluationFilters() const { return m_preEvaluationFilters; }
188 inline bool PreEvaluationFiltersHasBeenSet() const { return m_preEvaluationFiltersHasBeenSet; }
189 template <typename PreEvaluationFiltersT = PreEvaluationFilters>
190 void SetPreEvaluationFilters(PreEvaluationFiltersT&& value) {
191 m_preEvaluationFiltersHasBeenSet = true;
192 m_preEvaluationFilters = std::forward<PreEvaluationFiltersT>(value);
193 }
194 template <typename PreEvaluationFiltersT = PreEvaluationFilters>
195 RuleSearchSummary& WithPreEvaluationFilters(PreEvaluationFiltersT&& value) {
196 SetPreEvaluationFilters(std::forward<PreEvaluationFiltersT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
206 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
207 template <typename CreatedTimeT = Aws::Utils::DateTime>
208 void SetCreatedTime(CreatedTimeT&& value) {
209 m_createdTimeHasBeenSet = true;
210 m_createdTime = std::forward<CreatedTimeT>(value);
211 }
212 template <typename CreatedTimeT = Aws::Utils::DateTime>
213 RuleSearchSummary& WithCreatedTime(CreatedTimeT&& value) {
214 SetCreatedTime(std::forward<CreatedTimeT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
224 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
225 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
226 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
227 m_lastUpdatedTimeHasBeenSet = true;
228 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
229 }
230 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
231 RuleSearchSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
232 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
242 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
243 template <typename LastUpdatedByT = Aws::String>
244 void SetLastUpdatedBy(LastUpdatedByT&& value) {
245 m_lastUpdatedByHasBeenSet = true;
246 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
247 }
248 template <typename LastUpdatedByT = Aws::String>
249 RuleSearchSummary& WithLastUpdatedBy(LastUpdatedByT&& value) {
250 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
251 return *this;
252 }
254
256
260 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
261 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
262 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
263 void SetTags(TagsT&& value) {
264 m_tagsHasBeenSet = true;
265 m_tags = std::forward<TagsT>(value);
266 }
267 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 RuleSearchSummary& WithTags(TagsT&& value) {
269 SetTags(std::forward<TagsT>(value));
270 return *this;
271 }
272 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
273 RuleSearchSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
276 return *this;
277 }
279 private:
280 Aws::String m_name;
281
282 Aws::String m_ruleId;
283
284 Aws::String m_ruleArn;
285
286 RuleTriggerEventSource m_triggerEventSource;
287
288 Aws::Vector<ActionSummary> m_actionSummaries;
289
290 Aws::Vector<RuleCapabilityTier> m_ruleCapabilityTiers;
291
293
294 PreEvaluationFilters m_preEvaluationFilters;
295
296 Aws::Utils::DateTime m_createdTime{};
297
298 Aws::Utils::DateTime m_lastUpdatedTime{};
299
300 Aws::String m_lastUpdatedBy;
301
303 bool m_nameHasBeenSet = false;
304 bool m_ruleIdHasBeenSet = false;
305 bool m_ruleArnHasBeenSet = false;
306 bool m_triggerEventSourceHasBeenSet = false;
307 bool m_actionSummariesHasBeenSet = false;
308 bool m_ruleCapabilityTiersHasBeenSet = false;
309 bool m_publishStatusHasBeenSet = false;
310 bool m_preEvaluationFiltersHasBeenSet = false;
311 bool m_createdTimeHasBeenSet = false;
312 bool m_lastUpdatedTimeHasBeenSet = false;
313 bool m_lastUpdatedByHasBeenSet = false;
314 bool m_tagsHasBeenSet = false;
315};
316
317} // namespace Model
318} // namespace Connect
319} // namespace Aws
RuleSearchSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
RuleSearchSummary & WithRuleArn(RuleArnT &&value)
RuleSearchSummary & WithRuleCapabilityTiers(RuleCapabilityTiersT &&value)
RuleSearchSummary & WithCreatedTime(CreatedTimeT &&value)
const PreEvaluationFilters & GetPreEvaluationFilters() const
RuleSearchSummary & WithPublishStatus(RulePublishStatus value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API RuleSearchSummary(Aws::Utils::Json::JsonView jsonValue)
RuleSearchSummary & WithPreEvaluationFilters(PreEvaluationFiltersT &&value)
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)
void SetPreEvaluationFilters(PreEvaluationFiltersT &&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