AWS SDK for C++

AWS SDK for C++ Version 1.11.713

Loading...
Searching...
No Matches
GetNotificationEventResult.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/NotificationEvent.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Notifications {
24namespace Model {
26 public:
27 AWS_NOTIFICATIONS_API GetNotificationEventResult() = default;
30
32
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
53 template <typename NotificationConfigurationArnT = Aws::String>
54 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
55 m_notificationConfigurationArnHasBeenSet = true;
56 m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value);
57 }
58 template <typename NotificationConfigurationArnT = Aws::String>
59 GetNotificationEventResult& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
60 SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
70 template <typename CreationTimeT = Aws::Utils::DateTime>
71 void SetCreationTime(CreationTimeT&& value) {
72 m_creationTimeHasBeenSet = true;
73 m_creationTime = std::forward<CreationTimeT>(value);
74 }
75 template <typename CreationTimeT = Aws::Utils::DateTime>
77 SetCreationTime(std::forward<CreationTimeT>(value));
78 return *this;
79 }
81
83
86 inline const NotificationEvent& GetContent() const { return m_content; }
87 template <typename ContentT = NotificationEvent>
88 void SetContent(ContentT&& value) {
89 m_contentHasBeenSet = true;
90 m_content = std::forward<ContentT>(value);
91 }
92 template <typename ContentT = NotificationEvent>
94 SetContent(std::forward<ContentT>(value));
95 return *this;
96 }
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template <typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) {
104 m_requestIdHasBeenSet = true;
105 m_requestId = std::forward<RequestIdT>(value);
106 }
107 template <typename RequestIdT = Aws::String>
109 SetRequestId(std::forward<RequestIdT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_arn;
115
116 Aws::String m_notificationConfigurationArn;
117
118 Aws::Utils::DateTime m_creationTime{};
119
120 NotificationEvent m_content;
121
122 Aws::String m_requestId;
123 bool m_arnHasBeenSet = false;
124 bool m_notificationConfigurationArnHasBeenSet = false;
125 bool m_creationTimeHasBeenSet = false;
126 bool m_contentHasBeenSet = false;
127 bool m_requestIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Notifications
132} // namespace Aws
AWS_NOTIFICATIONS_API GetNotificationEventResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetNotificationEventResult & WithContent(ContentT &&value)
AWS_NOTIFICATIONS_API GetNotificationEventResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_NOTIFICATIONS_API GetNotificationEventResult()=default
GetNotificationEventResult & WithRequestId(RequestIdT &&value)
GetNotificationEventResult & WithNotificationConfigurationArn(NotificationConfigurationArnT &&value)
GetNotificationEventResult & WithCreationTime(CreationTimeT &&value)
void SetNotificationConfigurationArn(NotificationConfigurationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue