AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ManagedNotificationEventOverview.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/notifications/Notifications_EXPORTS.h>
11#include <aws/notifications/model/AggregationEventType.h>
12#include <aws/notifications/model/AggregationSummary.h>
13#include <aws/notifications/model/ManagedNotificationEventSummary.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Notifications {
25namespace Model {
26
34 public:
35 AWS_NOTIFICATIONS_API ManagedNotificationEventOverview() = default;
38 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetManagedNotificationConfigurationArn() const { return m_managedNotificationConfigurationArn; }
64 inline bool ManagedNotificationConfigurationArnHasBeenSet() const { return m_managedNotificationConfigurationArnHasBeenSet; }
65 template <typename ManagedNotificationConfigurationArnT = Aws::String>
66 void SetManagedNotificationConfigurationArn(ManagedNotificationConfigurationArnT&& value) {
67 m_managedNotificationConfigurationArnHasBeenSet = true;
68 m_managedNotificationConfigurationArn = std::forward<ManagedNotificationConfigurationArnT>(value);
69 }
70 template <typename ManagedNotificationConfigurationArnT = Aws::String>
71 ManagedNotificationEventOverview& WithManagedNotificationConfigurationArn(ManagedNotificationConfigurationArnT&& value) {
72 SetManagedNotificationConfigurationArn(std::forward<ManagedNotificationConfigurationArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetRelatedAccount() const { return m_relatedAccount; }
82 inline bool RelatedAccountHasBeenSet() const { return m_relatedAccountHasBeenSet; }
83 template <typename RelatedAccountT = Aws::String>
84 void SetRelatedAccount(RelatedAccountT&& value) {
85 m_relatedAccountHasBeenSet = true;
86 m_relatedAccount = std::forward<RelatedAccountT>(value);
87 }
88 template <typename RelatedAccountT = Aws::String>
90 SetRelatedAccount(std::forward<RelatedAccountT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
100 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
101 template <typename CreationTimeT = Aws::Utils::DateTime>
102 void SetCreationTime(CreationTimeT&& value) {
103 m_creationTimeHasBeenSet = true;
104 m_creationTime = std::forward<CreationTimeT>(value);
105 }
106 template <typename CreationTimeT = Aws::Utils::DateTime>
108 SetCreationTime(std::forward<CreationTimeT>(value));
109 return *this;
110 }
112
114
117 inline const ManagedNotificationEventSummary& GetNotificationEvent() const { return m_notificationEvent; }
118 inline bool NotificationEventHasBeenSet() const { return m_notificationEventHasBeenSet; }
119 template <typename NotificationEventT = ManagedNotificationEventSummary>
120 void SetNotificationEvent(NotificationEventT&& value) {
121 m_notificationEventHasBeenSet = true;
122 m_notificationEvent = std::forward<NotificationEventT>(value);
123 }
124 template <typename NotificationEventT = ManagedNotificationEventSummary>
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
159 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
160 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
161 template <typename OrganizationalUnitIdT = Aws::String>
162 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
163 m_organizationalUnitIdHasBeenSet = true;
164 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
165 }
166 template <typename OrganizationalUnitIdT = Aws::String>
168 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
169 return *this;
170 }
172
174
175 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
176 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
177 template <typename AggregationSummaryT = AggregationSummary>
178 void SetAggregationSummary(AggregationSummaryT&& value) {
179 m_aggregationSummaryHasBeenSet = true;
180 m_aggregationSummary = std::forward<AggregationSummaryT>(value);
181 }
182 template <typename AggregationSummaryT = AggregationSummary>
184 SetAggregationSummary(std::forward<AggregationSummaryT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::Vector<Aws::String>& GetAggregatedNotificationRegions() const { return m_aggregatedNotificationRegions; }
195 inline bool AggregatedNotificationRegionsHasBeenSet() const { return m_aggregatedNotificationRegionsHasBeenSet; }
196 template <typename AggregatedNotificationRegionsT = Aws::Vector<Aws::String>>
197 void SetAggregatedNotificationRegions(AggregatedNotificationRegionsT&& value) {
198 m_aggregatedNotificationRegionsHasBeenSet = true;
199 m_aggregatedNotificationRegions = std::forward<AggregatedNotificationRegionsT>(value);
200 }
201 template <typename AggregatedNotificationRegionsT = Aws::Vector<Aws::String>>
203 SetAggregatedNotificationRegions(std::forward<AggregatedNotificationRegionsT>(value));
204 return *this;
205 }
206 template <typename AggregatedNotificationRegionsT = Aws::String>
208 m_aggregatedNotificationRegionsHasBeenSet = true;
209 m_aggregatedNotificationRegions.emplace_back(std::forward<AggregatedNotificationRegionsT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_arn;
215
216 Aws::String m_managedNotificationConfigurationArn;
217
218 Aws::String m_relatedAccount;
219
220 Aws::Utils::DateTime m_creationTime{};
221
222 ManagedNotificationEventSummary m_notificationEvent;
223
225
226 Aws::String m_organizationalUnitId;
227
228 AggregationSummary m_aggregationSummary;
229
230 Aws::Vector<Aws::String> m_aggregatedNotificationRegions;
231 bool m_arnHasBeenSet = false;
232 bool m_managedNotificationConfigurationArnHasBeenSet = false;
233 bool m_relatedAccountHasBeenSet = false;
234 bool m_creationTimeHasBeenSet = false;
235 bool m_notificationEventHasBeenSet = false;
236 bool m_aggregationEventTypeHasBeenSet = false;
237 bool m_organizationalUnitIdHasBeenSet = false;
238 bool m_aggregationSummaryHasBeenSet = false;
239 bool m_aggregatedNotificationRegionsHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace Notifications
244} // namespace Aws
AWS_NOTIFICATIONS_API ManagedNotificationEventOverview & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedNotificationEventOverview & WithAggregatedNotificationRegions(AggregatedNotificationRegionsT &&value)
ManagedNotificationEventOverview & WithAggregationEventType(AggregationEventType value)
void SetAggregatedNotificationRegions(AggregatedNotificationRegionsT &&value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedNotificationEventOverview & WithAggregationSummary(AggregationSummaryT &&value)
ManagedNotificationEventOverview & WithCreationTime(CreationTimeT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationEventOverview()=default
ManagedNotificationEventOverview & WithNotificationEvent(NotificationEventT &&value)
ManagedNotificationEventOverview & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
void SetManagedNotificationConfigurationArn(ManagedNotificationConfigurationArnT &&value)
ManagedNotificationEventOverview & AddAggregatedNotificationRegions(AggregatedNotificationRegionsT &&value)
ManagedNotificationEventOverview & WithManagedNotificationConfigurationArn(ManagedNotificationConfigurationArnT &&value)
ManagedNotificationEventOverview & WithRelatedAccount(RelatedAccountT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationEventOverview(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue