AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ActionSummary.h>
9#include <aws/connect/model/EventSourceName.h>
10#include <aws/connect/model/RuleCapabilityTier.h>
11#include <aws/connect/model/RulePublishStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect {
26namespace Model {
27
35 public:
36 AWS_CONNECT_API RuleSummary() = default;
37 AWS_CONNECT_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 RuleSummary& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetRuleId() const { return m_ruleId; }
64 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
65 template <typename RuleIdT = Aws::String>
66 void SetRuleId(RuleIdT&& value) {
67 m_ruleIdHasBeenSet = true;
68 m_ruleId = std::forward<RuleIdT>(value);
69 }
70 template <typename RuleIdT = Aws::String>
71 RuleSummary& WithRuleId(RuleIdT&& value) {
72 SetRuleId(std::forward<RuleIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
82 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
83 template <typename RuleArnT = Aws::String>
84 void SetRuleArn(RuleArnT&& value) {
85 m_ruleArnHasBeenSet = true;
86 m_ruleArn = std::forward<RuleArnT>(value);
87 }
88 template <typename RuleArnT = Aws::String>
89 RuleSummary& WithRuleArn(RuleArnT&& value) {
90 SetRuleArn(std::forward<RuleArnT>(value));
91 return *this;
92 }
94
96
99 inline EventSourceName GetEventSourceName() const { return m_eventSourceName; }
100 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
102 m_eventSourceNameHasBeenSet = true;
103 m_eventSourceName = value;
104 }
106 SetEventSourceName(value);
107 return *this;
108 }
110
112
115 inline RulePublishStatus GetPublishStatus() const { return m_publishStatus; }
116 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
118 m_publishStatusHasBeenSet = true;
119 m_publishStatus = value;
120 }
122 SetPublishStatus(value);
123 return *this;
124 }
126
128
132 inline const Aws::Vector<RuleCapabilityTier>& GetRuleCapabilityTiers() const { return m_ruleCapabilityTiers; }
133 inline bool RuleCapabilityTiersHasBeenSet() const { return m_ruleCapabilityTiersHasBeenSet; }
134 template <typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
135 void SetRuleCapabilityTiers(RuleCapabilityTiersT&& value) {
136 m_ruleCapabilityTiersHasBeenSet = true;
137 m_ruleCapabilityTiers = std::forward<RuleCapabilityTiersT>(value);
138 }
139 template <typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
140 RuleSummary& WithRuleCapabilityTiers(RuleCapabilityTiersT&& value) {
141 SetRuleCapabilityTiers(std::forward<RuleCapabilityTiersT>(value));
142 return *this;
143 }
145 m_ruleCapabilityTiersHasBeenSet = true;
146 m_ruleCapabilityTiers.push_back(value);
147 return *this;
148 }
150
152
155 inline const Aws::Vector<ActionSummary>& GetActionSummaries() const { return m_actionSummaries; }
156 inline bool ActionSummariesHasBeenSet() const { return m_actionSummariesHasBeenSet; }
157 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
158 void SetActionSummaries(ActionSummariesT&& value) {
159 m_actionSummariesHasBeenSet = true;
160 m_actionSummaries = std::forward<ActionSummariesT>(value);
161 }
162 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
163 RuleSummary& WithActionSummaries(ActionSummariesT&& value) {
164 SetActionSummaries(std::forward<ActionSummariesT>(value));
165 return *this;
166 }
167 template <typename ActionSummariesT = ActionSummary>
168 RuleSummary& AddActionSummaries(ActionSummariesT&& value) {
169 m_actionSummariesHasBeenSet = true;
170 m_actionSummaries.emplace_back(std::forward<ActionSummariesT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
180 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
181 template <typename CreatedTimeT = Aws::Utils::DateTime>
182 void SetCreatedTime(CreatedTimeT&& value) {
183 m_createdTimeHasBeenSet = true;
184 m_createdTime = std::forward<CreatedTimeT>(value);
185 }
186 template <typename CreatedTimeT = Aws::Utils::DateTime>
187 RuleSummary& WithCreatedTime(CreatedTimeT&& value) {
188 SetCreatedTime(std::forward<CreatedTimeT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
198 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
199 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
200 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
201 m_lastUpdatedTimeHasBeenSet = true;
202 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
203 }
204 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
205 RuleSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
206 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_name;
212
213 Aws::String m_ruleId;
214
215 Aws::String m_ruleArn;
216
217 EventSourceName m_eventSourceName{EventSourceName::NOT_SET};
218
220
221 Aws::Vector<RuleCapabilityTier> m_ruleCapabilityTiers;
222
223 Aws::Vector<ActionSummary> m_actionSummaries;
224
225 Aws::Utils::DateTime m_createdTime{};
226
227 Aws::Utils::DateTime m_lastUpdatedTime{};
228 bool m_nameHasBeenSet = false;
229 bool m_ruleIdHasBeenSet = false;
230 bool m_ruleArnHasBeenSet = false;
231 bool m_eventSourceNameHasBeenSet = false;
232 bool m_publishStatusHasBeenSet = false;
233 bool m_ruleCapabilityTiersHasBeenSet = false;
234 bool m_actionSummariesHasBeenSet = false;
235 bool m_createdTimeHasBeenSet = false;
236 bool m_lastUpdatedTimeHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace Connect
241} // namespace Aws
void SetCreatedTime(CreatedTimeT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API RuleSummary()=default
AWS_CONNECT_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
EventSourceName GetEventSourceName() const
Definition RuleSummary.h:99
void SetEventSourceName(EventSourceName value)
void SetPublishStatus(RulePublishStatus value)
RuleSummary & WithRuleCapabilityTiers(RuleCapabilityTiersT &&value)
RulePublishStatus GetPublishStatus() const
const Aws::Vector< RuleCapabilityTier > & GetRuleCapabilityTiers() const
RuleSummary & WithRuleArn(RuleArnT &&value)
Definition RuleSummary.h:89
const Aws::String & GetRuleArn() const
Definition RuleSummary.h:81
RuleSummary & WithRuleId(RuleIdT &&value)
Definition RuleSummary.h:71
void SetRuleArn(RuleArnT &&value)
Definition RuleSummary.h:84
RuleSummary & WithName(NameT &&value)
Definition RuleSummary.h:53
RuleSummary & AddRuleCapabilityTiers(RuleCapabilityTier value)
const Aws::Utils::DateTime & GetCreatedTime() const
void SetName(NameT &&value)
Definition RuleSummary.h:48
const Aws::String & GetName() const
Definition RuleSummary.h:45
RuleSummary & WithPublishStatus(RulePublishStatus value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
RuleSummary & WithEventSourceName(EventSourceName value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
RuleSummary & AddActionSummaries(ActionSummariesT &&value)
RuleSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetActionSummaries(ActionSummariesT &&value)
RuleSummary & WithActionSummaries(ActionSummariesT &&value)
void SetRuleId(RuleIdT &&value)
Definition RuleSummary.h:66
void SetRuleCapabilityTiers(RuleCapabilityTiersT &&value)
AWS_CONNECT_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ActionSummary > & GetActionSummaries() const
const Aws::String & GetRuleId() const
Definition RuleSummary.h:63
RuleSummary & WithCreatedTime(CreatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue