AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeNotificationRuleResult.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/codestar-notifications/model/DetailType.h>
9#include <aws/codestar-notifications/model/EventTypeSummary.h>
10#include <aws/codestar-notifications/model/NotificationRuleStatus.h>
11#include <aws/codestar-notifications/model/TargetSummary.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 {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CodeStarNotifications {
29namespace Model {
31 public:
32 AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult() = default;
34 AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult& operator=(
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<EventTypeSummary>& GetEventTypes() const { return m_eventTypes; }
76 template <typename EventTypesT = Aws::Vector<EventTypeSummary>>
77 void SetEventTypes(EventTypesT&& value) {
78 m_eventTypesHasBeenSet = true;
79 m_eventTypes = std::forward<EventTypesT>(value);
80 }
81 template <typename EventTypesT = Aws::Vector<EventTypeSummary>>
83 SetEventTypes(std::forward<EventTypesT>(value));
84 return *this;
85 }
86 template <typename EventTypesT = EventTypeSummary>
88 m_eventTypesHasBeenSet = true;
89 m_eventTypes.emplace_back(std::forward<EventTypesT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetResource() const { return m_resource; }
100 template <typename ResourceT = Aws::String>
101 void SetResource(ResourceT&& value) {
102 m_resourceHasBeenSet = true;
103 m_resource = std::forward<ResourceT>(value);
104 }
105 template <typename ResourceT = Aws::String>
107 SetResource(std::forward<ResourceT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::Vector<TargetSummary>& GetTargets() const { return m_targets; }
119 template <typename TargetsT = Aws::Vector<TargetSummary>>
120 void SetTargets(TargetsT&& value) {
121 m_targetsHasBeenSet = true;
122 m_targets = std::forward<TargetsT>(value);
123 }
124 template <typename TargetsT = Aws::Vector<TargetSummary>>
126 SetTargets(std::forward<TargetsT>(value));
127 return *this;
128 }
129 template <typename TargetsT = TargetSummary>
131 m_targetsHasBeenSet = true;
132 m_targets.emplace_back(std::forward<TargetsT>(value));
133 return *this;
134 }
136
138
145 inline DetailType GetDetailType() const { return m_detailType; }
146 inline void SetDetailType(DetailType value) {
147 m_detailTypeHasBeenSet = true;
148 m_detailType = value;
149 }
151 SetDetailType(value);
152 return *this;
153 }
155
157
160 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
161 template <typename CreatedByT = Aws::String>
162 void SetCreatedBy(CreatedByT&& value) {
163 m_createdByHasBeenSet = true;
164 m_createdBy = std::forward<CreatedByT>(value);
165 }
166 template <typename CreatedByT = Aws::String>
168 SetCreatedBy(std::forward<CreatedByT>(value));
169 return *this;
170 }
172
174
178 inline NotificationRuleStatus GetStatus() const { return m_status; }
180 m_statusHasBeenSet = true;
181 m_status = value;
182 }
184 SetStatus(value);
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
194 template <typename CreatedTimestampT = Aws::Utils::DateTime>
195 void SetCreatedTimestamp(CreatedTimestampT&& value) {
196 m_createdTimestampHasBeenSet = true;
197 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
198 }
199 template <typename CreatedTimestampT = Aws::Utils::DateTime>
201 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
212 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
213 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
214 m_lastModifiedTimestampHasBeenSet = true;
215 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
216 }
217 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
219 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
229 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
230 void SetTags(TagsT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags = std::forward<TagsT>(value);
233 }
234 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 SetTags(std::forward<TagsT>(value));
237 return *this;
238 }
239 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
240 DescribeNotificationRuleResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
241 m_tagsHasBeenSet = true;
242 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
243 return *this;
244 }
246
248
249 inline const Aws::String& GetRequestId() const { return m_requestId; }
250 template <typename RequestIdT = Aws::String>
251 void SetRequestId(RequestIdT&& value) {
252 m_requestIdHasBeenSet = true;
253 m_requestId = std::forward<RequestIdT>(value);
254 }
255 template <typename RequestIdT = Aws::String>
257 SetRequestId(std::forward<RequestIdT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_arn;
263
264 Aws::String m_name;
265
267
268 Aws::String m_resource;
269
271
272 DetailType m_detailType{DetailType::NOT_SET};
273
274 Aws::String m_createdBy;
275
277
278 Aws::Utils::DateTime m_createdTimestamp{};
279
280 Aws::Utils::DateTime m_lastModifiedTimestamp{};
281
283
284 Aws::String m_requestId;
285 bool m_arnHasBeenSet = false;
286 bool m_nameHasBeenSet = false;
287 bool m_eventTypesHasBeenSet = false;
288 bool m_resourceHasBeenSet = false;
289 bool m_targetsHasBeenSet = false;
290 bool m_detailTypeHasBeenSet = false;
291 bool m_createdByHasBeenSet = false;
292 bool m_statusHasBeenSet = false;
293 bool m_createdTimestampHasBeenSet = false;
294 bool m_lastModifiedTimestampHasBeenSet = false;
295 bool m_tagsHasBeenSet = false;
296 bool m_requestIdHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace CodeStarNotifications
301} // namespace Aws
DescribeNotificationRuleResult & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult()=default
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeNotificationRuleResult & WithEventTypes(EventTypesT &&value)
DescribeNotificationRuleResult & WithStatus(NotificationRuleStatus value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeNotificationRuleResult & AddEventTypes(EventTypesT &&value)
DescribeNotificationRuleResult & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
DescribeNotificationRuleResult & AddTags(TagsKeyT &&key, TagsValueT &&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