7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/SchemaVersion.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/notifications/model/SourceEventMetadata.h>
11#include <aws/notifications/model/MessageComponents.h>
12#include <aws/notifications/model/NotificationType.h>
13#include <aws/notifications/model/EventStatus.h>
14#include <aws/notifications/model/AggregationEventType.h>
15#include <aws/notifications/model/AggregationSummary.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/notifications/model/TextPartValue.h>
20#include <aws/notifications/model/MediaElement.h>
33namespace Notifications
70 template<
typename IdT = Aws::String>
71 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
72 template<
typename IdT = Aws::String>
82 template<
typename SourceEventMetadataT = SourceEventMetadata>
83 void SetSourceEventMetadata(SourceEventMetadataT&& value) { m_sourceEventMetadataHasBeenSet =
true; m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value); }
84 template<
typename SourceEventMetadataT = SourceEventMetadata>
92 template<
typename MessageComponentsT = MessageComponents>
93 void SetMessageComponents(MessageComponentsT&& value) { m_messageComponentsHasBeenSet =
true; m_messageComponents = std::forward<MessageComponentsT>(value); }
94 template<
typename MessageComponentsT = MessageComponents>
104 template<
typename SourceEventDetailUrlT = Aws::String>
105 void SetSourceEventDetailUrl(SourceEventDetailUrlT&& value) { m_sourceEventDetailUrlHasBeenSet =
true; m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value); }
106 template<
typename SourceEventDetailUrlT = Aws::String>
116 template<
typename SourceEventDetailUrlDisplayTextT = Aws::String>
117 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) { m_sourceEventDetailUrlDisplayTextHasBeenSet =
true; m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value); }
118 template<
typename SourceEventDetailUrlDisplayTextT = Aws::String>
183 template<
typename AggregateNotificationEventArnT = Aws::String>
184 void SetAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) { m_aggregateNotificationEventArnHasBeenSet =
true; m_aggregateNotificationEventArn = std::forward<AggregateNotificationEventArnT>(value); }
185 template<
typename AggregateNotificationEventArnT = Aws::String>
196 template<
typename AggregationSummaryT = AggregationSummary>
197 void SetAggregationSummary(AggregationSummaryT&& value) { m_aggregationSummaryHasBeenSet =
true; m_aggregationSummary = std::forward<AggregationSummaryT>(value); }
198 template<
typename AggregationSummaryT = AggregationSummary>
208 template<
typename StartTimeT = Aws::Utils::DateTime>
209 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
210 template<
typename StartTimeT = Aws::Utils::DateTime>
220 template<
typename EndTimeT = Aws::Utils::DateTime>
221 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet =
true; m_endTime = std::forward<EndTimeT>(value); }
222 template<
typename EndTimeT = Aws::Utils::DateTime>
232 template<
typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
233 void SetTextParts(TextPartsT&& value) { m_textPartsHasBeenSet =
true; m_textParts = std::forward<TextPartsT>(value); }
234 template<
typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
236 template<
typename TextPartsKeyT = Aws::String,
typename TextPartsValueT = TextPartValue>
238 m_textPartsHasBeenSet =
true; m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value));
return *
this;
248 template<
typename MediaT = Aws::Vector<MediaElement>>
249 void SetMedia(MediaT&& value) { m_mediaHasBeenSet =
true; m_media = std::forward<MediaT>(value); }
250 template<
typename MediaT = Aws::Vector<MediaElement>>
252 template<
typename MediaT = MediaElement>
253 NotificationEvent&
AddMedia(MediaT&& value) { m_mediaHasBeenSet =
true; m_media.emplace_back(std::forward<MediaT>(value));
return *
this; }
258 bool m_schemaVersionHasBeenSet =
false;
261 bool m_idHasBeenSet =
false;
263 SourceEventMetadata m_sourceEventMetadata;
264 bool m_sourceEventMetadataHasBeenSet =
false;
266 MessageComponents m_messageComponents;
267 bool m_messageComponentsHasBeenSet =
false;
270 bool m_sourceEventDetailUrlHasBeenSet =
false;
273 bool m_sourceEventDetailUrlDisplayTextHasBeenSet =
false;
276 bool m_notificationTypeHasBeenSet =
false;
279 bool m_eventStatusHasBeenSet =
false;
282 bool m_aggregationEventTypeHasBeenSet =
false;
285 bool m_aggregateNotificationEventArnHasBeenSet =
false;
287 AggregationSummary m_aggregationSummary;
288 bool m_aggregationSummaryHasBeenSet =
false;
291 bool m_startTimeHasBeenSet =
false;
294 bool m_endTimeHasBeenSet =
false;
297 bool m_textPartsHasBeenSet =
false;
300 bool m_mediaHasBeenSet =
false;
AWS_NOTIFICATIONS_API NotificationEvent(Aws::Utils::Json::JsonView jsonValue)
bool MessageComponentsHasBeenSet() const
bool MediaHasBeenSet() const
void SetSchemaVersion(SchemaVersion value)
bool IdHasBeenSet() const
bool SourceEventDetailUrlDisplayTextHasBeenSet() const
bool NotificationTypeHasBeenSet() const
bool EventStatusHasBeenSet() const
bool SourceEventDetailUrlHasBeenSet() const
NotificationEvent & WithId(IdT &&value)
const MessageComponents & GetMessageComponents() const
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationEvent & WithEventStatus(EventStatus value)
bool AggregationEventTypeHasBeenSet() const
bool TextPartsHasBeenSet() const
NotificationEvent & WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
NotificationEvent & WithMedia(MediaT &&value)
const Aws::Utils::DateTime & GetStartTime() const
bool StartTimeHasBeenSet() const
NotificationEvent & WithTextParts(TextPartsT &&value)
const AggregationSummary & GetAggregationSummary() const
NotificationEvent & WithStartTime(StartTimeT &&value)
const Aws::String & GetSourceEventDetailUrlDisplayText() const
void SetAggregationSummary(AggregationSummaryT &&value)
EventStatus GetEventStatus() const
NotificationEvent & WithSchemaVersion(SchemaVersion value)
NotificationEvent & WithAggregationEventType(AggregationEventType value)
void SetAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
bool SchemaVersionHasBeenSet() const
NotificationEvent & WithAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
void SetMessageComponents(MessageComponentsT &&value)
void SetMedia(MediaT &&value)
NotificationEvent & WithNotificationType(NotificationType value)
const Aws::String & GetSourceEventDetailUrl() const
void SetSourceEventMetadata(SourceEventMetadataT &&value)
bool SourceEventMetadataHasBeenSet() const
NotificationEvent & WithEndTime(EndTimeT &&value)
bool AggregateNotificationEventArnHasBeenSet() const
NotificationEvent & WithSourceEventMetadata(SourceEventMetadataT &&value)
void SetNotificationType(NotificationType value)
void SetEventStatus(EventStatus value)
NotificationType GetNotificationType() const
const Aws::Utils::DateTime & GetEndTime() const
NotificationEvent & WithMessageComponents(MessageComponentsT &&value)
const Aws::String & GetAggregateNotificationEventArn() const
bool AggregationSummaryHasBeenSet() const
const Aws::String & GetId() const
void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
AWS_NOTIFICATIONS_API NotificationEvent()=default
AggregationEventType GetAggregationEventType() const
bool EndTimeHasBeenSet() const
SchemaVersion GetSchemaVersion() const
const Aws::Map< Aws::String, TextPartValue > & GetTextParts() const
NotificationEvent & WithAggregationSummary(AggregationSummaryT &&value)
void SetStartTime(StartTimeT &&value)
AWS_NOTIFICATIONS_API NotificationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAggregationEventType(AggregationEventType value)
NotificationEvent & AddTextParts(TextPartsKeyT &&key, TextPartsValueT &&value)
NotificationEvent & AddMedia(MediaT &&value)
NotificationEvent & WithSourceEventDetailUrl(SourceEventDetailUrlT &&value)
void SetTextParts(TextPartsT &&value)
void SetEndTime(EndTimeT &&value)
void SetSourceEventDetailUrl(SourceEventDetailUrlT &&value)
const SourceEventMetadata & GetSourceEventMetadata() const
const Aws::Vector< MediaElement > & GetMedia() const
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