AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NotificationEventOverview.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/NotificationEventSummary.h>
11#include <aws/notifications/model/AggregationEventType.h>
12#include <aws/notifications/model/AggregationSummary.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Notifications
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_NOTIFICATIONS_API NotificationEventOverview() = default;
40 AWS_NOTIFICATIONS_API NotificationEventOverview(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 NotificationEventOverview& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_notificationConfigurationArnHasBeenSet = true; m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value); }
65 template<typename NotificationConfigurationArnT = Aws::String>
66 NotificationEventOverview& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) { SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value)); return *this;}
68
70
73 inline const Aws::String& GetRelatedAccount() const { return m_relatedAccount; }
74 inline bool RelatedAccountHasBeenSet() const { return m_relatedAccountHasBeenSet; }
75 template<typename RelatedAccountT = Aws::String>
76 void SetRelatedAccount(RelatedAccountT&& value) { m_relatedAccountHasBeenSet = true; m_relatedAccount = std::forward<RelatedAccountT>(value); }
77 template<typename RelatedAccountT = Aws::String>
78 NotificationEventOverview& WithRelatedAccount(RelatedAccountT&& value) { SetRelatedAccount(std::forward<RelatedAccountT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
86 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
87 template<typename CreationTimeT = Aws::Utils::DateTime>
88 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
89 template<typename CreationTimeT = Aws::Utils::DateTime>
90 NotificationEventOverview& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
92
94
99 inline const NotificationEventSummary& GetNotificationEvent() const { return m_notificationEvent; }
100 inline bool NotificationEventHasBeenSet() const { return m_notificationEventHasBeenSet; }
101 template<typename NotificationEventT = NotificationEventSummary>
102 void SetNotificationEvent(NotificationEventT&& value) { m_notificationEventHasBeenSet = true; m_notificationEvent = std::forward<NotificationEventT>(value); }
103 template<typename NotificationEventT = NotificationEventSummary>
104 NotificationEventOverview& WithNotificationEvent(NotificationEventT&& value) { SetNotificationEvent(std::forward<NotificationEventT>(value)); return *this;}
106
108
118 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
119 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
120 inline void SetAggregationEventType(AggregationEventType value) { m_aggregationEventTypeHasBeenSet = true; m_aggregationEventType = value; }
123
125
128 inline const Aws::String& GetAggregateNotificationEventArn() const { return m_aggregateNotificationEventArn; }
129 inline bool AggregateNotificationEventArnHasBeenSet() const { return m_aggregateNotificationEventArnHasBeenSet; }
130 template<typename AggregateNotificationEventArnT = Aws::String>
131 void SetAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) { m_aggregateNotificationEventArnHasBeenSet = true; m_aggregateNotificationEventArn = std::forward<AggregateNotificationEventArnT>(value); }
132 template<typename AggregateNotificationEventArnT = Aws::String>
133 NotificationEventOverview& WithAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) { SetAggregateNotificationEventArn(std::forward<AggregateNotificationEventArnT>(value)); return *this;}
135
137
140 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
141 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
142 template<typename AggregationSummaryT = AggregationSummary>
143 void SetAggregationSummary(AggregationSummaryT&& value) { m_aggregationSummaryHasBeenSet = true; m_aggregationSummary = std::forward<AggregationSummaryT>(value); }
144 template<typename AggregationSummaryT = AggregationSummary>
145 NotificationEventOverview& WithAggregationSummary(AggregationSummaryT&& value) { SetAggregationSummary(std::forward<AggregationSummaryT>(value)); return *this;}
147 private:
148
149 Aws::String m_arn;
150 bool m_arnHasBeenSet = false;
151
152 Aws::String m_notificationConfigurationArn;
153 bool m_notificationConfigurationArnHasBeenSet = false;
154
155 Aws::String m_relatedAccount;
156 bool m_relatedAccountHasBeenSet = false;
157
158 Aws::Utils::DateTime m_creationTime{};
159 bool m_creationTimeHasBeenSet = false;
160
161 NotificationEventSummary m_notificationEvent;
162 bool m_notificationEventHasBeenSet = false;
163
165 bool m_aggregationEventTypeHasBeenSet = false;
166
167 Aws::String m_aggregateNotificationEventArn;
168 bool m_aggregateNotificationEventArnHasBeenSet = false;
169
170 AggregationSummary m_aggregationSummary;
171 bool m_aggregationSummaryHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Notifications
176} // 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 & 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