AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedNotificationEventOverview.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/notifications/model/ManagedNotificationEventSummary.h>
11#include <aws/notifications/model/AggregationEventType.h>
12#include <aws/notifications/model/AggregationSummary.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Notifications
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_NOTIFICATIONS_API ManagedNotificationEventOverview() = default;
43 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 ManagedNotificationEventOverview& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_managedNotificationConfigurationArnHasBeenSet = true; m_managedNotificationConfigurationArn = std::forward<ManagedNotificationConfigurationArnT>(value); }
67 template<typename ManagedNotificationConfigurationArnT = Aws::String>
68 ManagedNotificationEventOverview& WithManagedNotificationConfigurationArn(ManagedNotificationConfigurationArnT&& value) { SetManagedNotificationConfigurationArn(std::forward<ManagedNotificationConfigurationArnT>(value)); return *this;}
70
72
75 inline const Aws::String& GetRelatedAccount() const { return m_relatedAccount; }
76 inline bool RelatedAccountHasBeenSet() const { return m_relatedAccountHasBeenSet; }
77 template<typename RelatedAccountT = Aws::String>
78 void SetRelatedAccount(RelatedAccountT&& value) { m_relatedAccountHasBeenSet = true; m_relatedAccount = std::forward<RelatedAccountT>(value); }
79 template<typename RelatedAccountT = Aws::String>
80 ManagedNotificationEventOverview& WithRelatedAccount(RelatedAccountT&& value) { SetRelatedAccount(std::forward<RelatedAccountT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
88 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
89 template<typename CreationTimeT = Aws::Utils::DateTime>
90 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
91 template<typename CreationTimeT = Aws::Utils::DateTime>
92 ManagedNotificationEventOverview& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
94
96
97 inline const ManagedNotificationEventSummary& GetNotificationEvent() const { return m_notificationEvent; }
98 inline bool NotificationEventHasBeenSet() const { return m_notificationEventHasBeenSet; }
99 template<typename NotificationEventT = ManagedNotificationEventSummary>
100 void SetNotificationEvent(NotificationEventT&& value) { m_notificationEventHasBeenSet = true; m_notificationEvent = std::forward<NotificationEventT>(value); }
101 template<typename NotificationEventT = ManagedNotificationEventSummary>
102 ManagedNotificationEventOverview& WithNotificationEvent(NotificationEventT&& value) { SetNotificationEvent(std::forward<NotificationEventT>(value)); return *this;}
104
106
116 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
117 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
118 inline void SetAggregationEventType(AggregationEventType value) { m_aggregationEventTypeHasBeenSet = true; m_aggregationEventType = value; }
121
123
127 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
128 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
129 template<typename OrganizationalUnitIdT = Aws::String>
130 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value); }
131 template<typename OrganizationalUnitIdT = Aws::String>
132 ManagedNotificationEventOverview& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) { SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value)); return *this;}
134
136
137 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
138 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
139 template<typename AggregationSummaryT = AggregationSummary>
140 void SetAggregationSummary(AggregationSummaryT&& value) { m_aggregationSummaryHasBeenSet = true; m_aggregationSummary = std::forward<AggregationSummaryT>(value); }
141 template<typename AggregationSummaryT = AggregationSummary>
142 ManagedNotificationEventOverview& WithAggregationSummary(AggregationSummaryT&& value) { SetAggregationSummary(std::forward<AggregationSummaryT>(value)); return *this;}
144
146
150 inline const Aws::Vector<Aws::String>& GetAggregatedNotificationRegions() const { return m_aggregatedNotificationRegions; }
151 inline bool AggregatedNotificationRegionsHasBeenSet() const { return m_aggregatedNotificationRegionsHasBeenSet; }
152 template<typename AggregatedNotificationRegionsT = Aws::Vector<Aws::String>>
153 void SetAggregatedNotificationRegions(AggregatedNotificationRegionsT&& value) { m_aggregatedNotificationRegionsHasBeenSet = true; m_aggregatedNotificationRegions = std::forward<AggregatedNotificationRegionsT>(value); }
154 template<typename AggregatedNotificationRegionsT = Aws::Vector<Aws::String>>
155 ManagedNotificationEventOverview& WithAggregatedNotificationRegions(AggregatedNotificationRegionsT&& value) { SetAggregatedNotificationRegions(std::forward<AggregatedNotificationRegionsT>(value)); return *this;}
156 template<typename AggregatedNotificationRegionsT = Aws::String>
157 ManagedNotificationEventOverview& AddAggregatedNotificationRegions(AggregatedNotificationRegionsT&& value) { m_aggregatedNotificationRegionsHasBeenSet = true; m_aggregatedNotificationRegions.emplace_back(std::forward<AggregatedNotificationRegionsT>(value)); return *this; }
159 private:
160
161 Aws::String m_arn;
162 bool m_arnHasBeenSet = false;
163
164 Aws::String m_managedNotificationConfigurationArn;
165 bool m_managedNotificationConfigurationArnHasBeenSet = false;
166
167 Aws::String m_relatedAccount;
168 bool m_relatedAccountHasBeenSet = false;
169
170 Aws::Utils::DateTime m_creationTime{};
171 bool m_creationTimeHasBeenSet = false;
172
173 ManagedNotificationEventSummary m_notificationEvent;
174 bool m_notificationEventHasBeenSet = false;
175
177 bool m_aggregationEventTypeHasBeenSet = false;
178
179 Aws::String m_organizationalUnitId;
180 bool m_organizationalUnitIdHasBeenSet = false;
181
182 AggregationSummary m_aggregationSummary;
183 bool m_aggregationSummaryHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_aggregatedNotificationRegions;
186 bool m_aggregatedNotificationRegionsHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace Notifications
191} // namespace Aws
AWS_NOTIFICATIONS_API ManagedNotificationEventOverview & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedNotificationEventOverview & WithAggregatedNotificationRegions(AggregatedNotificationRegionsT &&value)
ManagedNotificationEventOverview & WithAggregationEventType(AggregationEventType value)
const ManagedNotificationEventSummary & GetNotificationEvent() const
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