AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
NotificationEventOverview.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notifications/Notifications_EXPORTS.h>
10#include <aws/notifications/model/AggregationEventType.h>
11#include <aws/notifications/model/AggregationSummary.h>
12#include <aws/notifications/model/NotificationEventSummary.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Notifications {
24namespace Model {
25
33 public:
34 AWS_NOTIFICATIONS_API NotificationEventOverview() = default;
35 AWS_NOTIFICATIONS_API NotificationEventOverview(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
62 inline bool NotificationConfigurationArnHasBeenSet() const { return m_notificationConfigurationArnHasBeenSet; }
63 template <typename NotificationConfigurationArnT = Aws::String>
64 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
65 m_notificationConfigurationArnHasBeenSet = true;
66 m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value);
67 }
68 template <typename NotificationConfigurationArnT = Aws::String>
69 NotificationEventOverview& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
70 SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetRelatedAccount() const { return m_relatedAccount; }
80 inline bool RelatedAccountHasBeenSet() const { return m_relatedAccountHasBeenSet; }
81 template <typename RelatedAccountT = Aws::String>
82 void SetRelatedAccount(RelatedAccountT&& value) {
83 m_relatedAccountHasBeenSet = true;
84 m_relatedAccount = std::forward<RelatedAccountT>(value);
85 }
86 template <typename RelatedAccountT = Aws::String>
88 SetRelatedAccount(std::forward<RelatedAccountT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
98 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
99 template <typename CreationTimeT = Aws::Utils::DateTime>
100 void SetCreationTime(CreationTimeT&& value) {
101 m_creationTimeHasBeenSet = true;
102 m_creationTime = std::forward<CreationTimeT>(value);
103 }
104 template <typename CreationTimeT = Aws::Utils::DateTime>
106 SetCreationTime(std::forward<CreationTimeT>(value));
107 return *this;
108 }
110
112
117 inline const NotificationEventSummary& GetNotificationEvent() const { return m_notificationEvent; }
118 inline bool NotificationEventHasBeenSet() const { return m_notificationEventHasBeenSet; }
119 template <typename NotificationEventT = NotificationEventSummary>
120 void SetNotificationEvent(NotificationEventT&& value) {
121 m_notificationEventHasBeenSet = true;
122 m_notificationEvent = std::forward<NotificationEventT>(value);
123 }
124 template <typename NotificationEventT = NotificationEventSummary>
126 SetNotificationEvent(std::forward<NotificationEventT>(value));
127 return *this;
128 }
130
132
142 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
143 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
145 m_aggregationEventTypeHasBeenSet = true;
146 m_aggregationEventType = value;
147 }
150 return *this;
151 }
153
155
158 inline const Aws::String& GetAggregateNotificationEventArn() const { return m_aggregateNotificationEventArn; }
159 inline bool AggregateNotificationEventArnHasBeenSet() const { return m_aggregateNotificationEventArnHasBeenSet; }
160 template <typename AggregateNotificationEventArnT = Aws::String>
161 void SetAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) {
162 m_aggregateNotificationEventArnHasBeenSet = true;
163 m_aggregateNotificationEventArn = std::forward<AggregateNotificationEventArnT>(value);
164 }
165 template <typename AggregateNotificationEventArnT = Aws::String>
166 NotificationEventOverview& WithAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) {
167 SetAggregateNotificationEventArn(std::forward<AggregateNotificationEventArnT>(value));
168 return *this;
169 }
171
173
176 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
177 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
178 template <typename AggregationSummaryT = AggregationSummary>
179 void SetAggregationSummary(AggregationSummaryT&& value) {
180 m_aggregationSummaryHasBeenSet = true;
181 m_aggregationSummary = std::forward<AggregationSummaryT>(value);
182 }
183 template <typename AggregationSummaryT = AggregationSummary>
184 NotificationEventOverview& WithAggregationSummary(AggregationSummaryT&& value) {
185 SetAggregationSummary(std::forward<AggregationSummaryT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
196 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
197 template <typename OrganizationalUnitIdT = Aws::String>
198 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
199 m_organizationalUnitIdHasBeenSet = true;
200 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
201 }
202 template <typename OrganizationalUnitIdT = Aws::String>
203 NotificationEventOverview& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) {
204 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_arn;
210
211 Aws::String m_notificationConfigurationArn;
212
213 Aws::String m_relatedAccount;
214
215 Aws::Utils::DateTime m_creationTime{};
216
217 NotificationEventSummary m_notificationEvent;
218
220
221 Aws::String m_aggregateNotificationEventArn;
222
223 AggregationSummary m_aggregationSummary;
224
225 Aws::String m_organizationalUnitId;
226 bool m_arnHasBeenSet = false;
227 bool m_notificationConfigurationArnHasBeenSet = false;
228 bool m_relatedAccountHasBeenSet = false;
229 bool m_creationTimeHasBeenSet = false;
230 bool m_notificationEventHasBeenSet = false;
231 bool m_aggregationEventTypeHasBeenSet = false;
232 bool m_aggregateNotificationEventArnHasBeenSet = false;
233 bool m_aggregationSummaryHasBeenSet = false;
234 bool m_organizationalUnitIdHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace Notifications
239} // namespace Aws
AWS_NOTIFICATIONS_API NotificationEventOverview & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationEventOverview & WithAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
NotificationEventOverview & WithNotificationEvent(NotificationEventT &&value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NOTIFICATIONS_API NotificationEventOverview()=default
NotificationEventOverview & WithNotificationConfigurationArn(NotificationConfigurationArnT &&value)
NotificationEventOverview & WithAggregationSummary(AggregationSummaryT &&value)
void SetNotificationConfigurationArn(NotificationConfigurationArnT &&value)
NotificationEventOverview & WithAggregationEventType(AggregationEventType value)
NotificationEventOverview & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
NotificationEventOverview & WithCreationTime(CreationTimeT &&value)
const NotificationEventSummary & GetNotificationEvent() const
AWS_NOTIFICATIONS_API NotificationEventOverview(Aws::Utils::Json::JsonView jsonValue)
void SetAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
NotificationEventOverview & WithRelatedAccount(RelatedAccountT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue