AWS SDK for C++

AWS SDK for C++ Version 1.11.760

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/http/HttpResponse.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 {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace CodeStarNotifications {
30namespace Model {
32 public:
33 AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult() = default;
35 AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult& operator=(
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<EventTypeSummary>& GetEventTypes() const { return m_eventTypes; }
77 template <typename EventTypesT = Aws::Vector<EventTypeSummary>>
78 void SetEventTypes(EventTypesT&& value) {
79 m_eventTypesHasBeenSet = true;
80 m_eventTypes = std::forward<EventTypesT>(value);
81 }
82 template <typename EventTypesT = Aws::Vector<EventTypeSummary>>
84 SetEventTypes(std::forward<EventTypesT>(value));
85 return *this;
86 }
87 template <typename EventTypesT = EventTypeSummary>
89 m_eventTypesHasBeenSet = true;
90 m_eventTypes.emplace_back(std::forward<EventTypesT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetResource() const { return m_resource; }
101 template <typename ResourceT = Aws::String>
102 void SetResource(ResourceT&& value) {
103 m_resourceHasBeenSet = true;
104 m_resource = std::forward<ResourceT>(value);
105 }
106 template <typename ResourceT = Aws::String>
108 SetResource(std::forward<ResourceT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::Vector<TargetSummary>& GetTargets() const { return m_targets; }
120 template <typename TargetsT = Aws::Vector<TargetSummary>>
121 void SetTargets(TargetsT&& value) {
122 m_targetsHasBeenSet = true;
123 m_targets = std::forward<TargetsT>(value);
124 }
125 template <typename TargetsT = Aws::Vector<TargetSummary>>
127 SetTargets(std::forward<TargetsT>(value));
128 return *this;
129 }
130 template <typename TargetsT = TargetSummary>
132 m_targetsHasBeenSet = true;
133 m_targets.emplace_back(std::forward<TargetsT>(value));
134 return *this;
135 }
137
139
146 inline DetailType GetDetailType() const { return m_detailType; }
147 inline void SetDetailType(DetailType value) {
148 m_detailTypeHasBeenSet = true;
149 m_detailType = value;
150 }
152 SetDetailType(value);
153 return *this;
154 }
156
158
161 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
162 template <typename CreatedByT = Aws::String>
163 void SetCreatedBy(CreatedByT&& value) {
164 m_createdByHasBeenSet = true;
165 m_createdBy = std::forward<CreatedByT>(value);
166 }
167 template <typename CreatedByT = Aws::String>
169 SetCreatedBy(std::forward<CreatedByT>(value));
170 return *this;
171 }
173
175
179 inline NotificationRuleStatus GetStatus() const { return m_status; }
181 m_statusHasBeenSet = true;
182 m_status = value;
183 }
185 SetStatus(value);
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
195 template <typename CreatedTimestampT = Aws::Utils::DateTime>
196 void SetCreatedTimestamp(CreatedTimestampT&& value) {
197 m_createdTimestampHasBeenSet = true;
198 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
199 }
200 template <typename CreatedTimestampT = Aws::Utils::DateTime>
202 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
213 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
214 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
215 m_lastModifiedTimestampHasBeenSet = true;
216 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
217 }
218 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
220 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
230 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
231 void SetTags(TagsT&& value) {
232 m_tagsHasBeenSet = true;
233 m_tags = std::forward<TagsT>(value);
234 }
235 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
237 SetTags(std::forward<TagsT>(value));
238 return *this;
239 }
240 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
241 DescribeNotificationRuleResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
242 m_tagsHasBeenSet = true;
243 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
244 return *this;
245 }
247
249
250 inline const Aws::String& GetRequestId() const { return m_requestId; }
251 template <typename RequestIdT = Aws::String>
252 void SetRequestId(RequestIdT&& value) {
253 m_requestIdHasBeenSet = true;
254 m_requestId = std::forward<RequestIdT>(value);
255 }
256 template <typename RequestIdT = Aws::String>
258 SetRequestId(std::forward<RequestIdT>(value));
259 return *this;
260 }
262 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
263
264 private:
265 Aws::String m_arn;
266
267 Aws::String m_name;
268
270
271 Aws::String m_resource;
272
274
275 DetailType m_detailType{DetailType::NOT_SET};
276
277 Aws::String m_createdBy;
278
280
281 Aws::Utils::DateTime m_createdTimestamp{};
282
283 Aws::Utils::DateTime m_lastModifiedTimestamp{};
284
286
287 Aws::String m_requestId;
288 Aws::Http::HttpResponseCode m_HttpResponseCode;
289 bool m_arnHasBeenSet = false;
290 bool m_nameHasBeenSet = false;
291 bool m_eventTypesHasBeenSet = false;
292 bool m_resourceHasBeenSet = false;
293 bool m_targetsHasBeenSet = false;
294 bool m_detailTypeHasBeenSet = false;
295 bool m_createdByHasBeenSet = false;
296 bool m_statusHasBeenSet = false;
297 bool m_createdTimestampHasBeenSet = false;
298 bool m_lastModifiedTimestampHasBeenSet = false;
299 bool m_tagsHasBeenSet = false;
300 bool m_requestIdHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace CodeStarNotifications
305} // 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