AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/RulePublishStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
26
34 public:
35 AWS_CONNECT_API RuleSummary() = default;
36 AWS_CONNECT_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 RuleSummary& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetRuleId() const { return m_ruleId; }
63 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
64 template <typename RuleIdT = Aws::String>
65 void SetRuleId(RuleIdT&& value) {
66 m_ruleIdHasBeenSet = true;
67 m_ruleId = std::forward<RuleIdT>(value);
68 }
69 template <typename RuleIdT = Aws::String>
70 RuleSummary& WithRuleId(RuleIdT&& value) {
71 SetRuleId(std::forward<RuleIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
81 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
82 template <typename RuleArnT = Aws::String>
83 void SetRuleArn(RuleArnT&& value) {
84 m_ruleArnHasBeenSet = true;
85 m_ruleArn = std::forward<RuleArnT>(value);
86 }
87 template <typename RuleArnT = Aws::String>
88 RuleSummary& WithRuleArn(RuleArnT&& value) {
89 SetRuleArn(std::forward<RuleArnT>(value));
90 return *this;
91 }
93
95
98 inline EventSourceName GetEventSourceName() const { return m_eventSourceName; }
99 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
101 m_eventSourceNameHasBeenSet = true;
102 m_eventSourceName = value;
103 }
105 SetEventSourceName(value);
106 return *this;
107 }
109
111
114 inline RulePublishStatus GetPublishStatus() const { return m_publishStatus; }
115 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
117 m_publishStatusHasBeenSet = true;
118 m_publishStatus = value;
119 }
121 SetPublishStatus(value);
122 return *this;
123 }
125
127
130 inline const Aws::Vector<ActionSummary>& GetActionSummaries() const { return m_actionSummaries; }
131 inline bool ActionSummariesHasBeenSet() const { return m_actionSummariesHasBeenSet; }
132 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
133 void SetActionSummaries(ActionSummariesT&& value) {
134 m_actionSummariesHasBeenSet = true;
135 m_actionSummaries = std::forward<ActionSummariesT>(value);
136 }
137 template <typename ActionSummariesT = Aws::Vector<ActionSummary>>
138 RuleSummary& WithActionSummaries(ActionSummariesT&& value) {
139 SetActionSummaries(std::forward<ActionSummariesT>(value));
140 return *this;
141 }
142 template <typename ActionSummariesT = ActionSummary>
143 RuleSummary& AddActionSummaries(ActionSummariesT&& value) {
144 m_actionSummariesHasBeenSet = true;
145 m_actionSummaries.emplace_back(std::forward<ActionSummariesT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
155 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
156 template <typename CreatedTimeT = Aws::Utils::DateTime>
157 void SetCreatedTime(CreatedTimeT&& value) {
158 m_createdTimeHasBeenSet = true;
159 m_createdTime = std::forward<CreatedTimeT>(value);
160 }
161 template <typename CreatedTimeT = Aws::Utils::DateTime>
162 RuleSummary& WithCreatedTime(CreatedTimeT&& value) {
163 SetCreatedTime(std::forward<CreatedTimeT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
173 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
174 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
175 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
176 m_lastUpdatedTimeHasBeenSet = true;
177 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
178 }
179 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
180 RuleSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
181 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_name;
187
188 Aws::String m_ruleId;
189
190 Aws::String m_ruleArn;
191
192 EventSourceName m_eventSourceName{EventSourceName::NOT_SET};
193
195
196 Aws::Vector<ActionSummary> m_actionSummaries;
197
198 Aws::Utils::DateTime m_createdTime{};
199
200 Aws::Utils::DateTime m_lastUpdatedTime{};
201 bool m_nameHasBeenSet = false;
202 bool m_ruleIdHasBeenSet = false;
203 bool m_ruleArnHasBeenSet = false;
204 bool m_eventSourceNameHasBeenSet = false;
205 bool m_publishStatusHasBeenSet = false;
206 bool m_actionSummariesHasBeenSet = false;
207 bool m_createdTimeHasBeenSet = false;
208 bool m_lastUpdatedTimeHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace Connect
213} // 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:98
void SetEventSourceName(EventSourceName value)
void SetPublishStatus(RulePublishStatus value)
RulePublishStatus GetPublishStatus() const
RuleSummary & WithRuleArn(RuleArnT &&value)
Definition RuleSummary.h:88
const Aws::String & GetRuleArn() const
Definition RuleSummary.h:80
RuleSummary & WithRuleId(RuleIdT &&value)
Definition RuleSummary.h:70
void SetRuleArn(RuleArnT &&value)
Definition RuleSummary.h:83
RuleSummary & WithName(NameT &&value)
Definition RuleSummary.h:52
const Aws::Utils::DateTime & GetCreatedTime() const
void SetName(NameT &&value)
Definition RuleSummary.h:47
const Aws::String & GetName() const
Definition RuleSummary.h:44
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:65
AWS_CONNECT_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ActionSummary > & GetActionSummaries() const
const Aws::String & GetRuleId() const
Definition RuleSummary.h:62
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