AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetInternetEventResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
11#include <aws/internetmonitor/model/ClientLocation.h>
12#include <aws/internetmonitor/model/InternetEventStatus.h>
13#include <aws/internetmonitor/model/InternetEventType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace InternetMonitor {
27namespace Model {
29 public:
30 AWS_INTERNETMONITOR_API GetInternetEventResult() = default;
33
35
38 inline const Aws::String& GetEventId() const { return m_eventId; }
39 template <typename EventIdT = Aws::String>
40 void SetEventId(EventIdT&& value) {
41 m_eventIdHasBeenSet = true;
42 m_eventId = std::forward<EventIdT>(value);
43 }
44 template <typename EventIdT = Aws::String>
46 SetEventId(std::forward<EventIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEventArn() const { return m_eventArn; }
56 template <typename EventArnT = Aws::String>
57 void SetEventArn(EventArnT&& value) {
58 m_eventArnHasBeenSet = true;
59 m_eventArn = std::forward<EventArnT>(value);
60 }
61 template <typename EventArnT = Aws::String>
63 SetEventArn(std::forward<EventArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
73 template <typename StartedAtT = Aws::Utils::DateTime>
74 void SetStartedAt(StartedAtT&& value) {
75 m_startedAtHasBeenSet = true;
76 m_startedAt = std::forward<StartedAtT>(value);
77 }
78 template <typename StartedAtT = Aws::Utils::DateTime>
80 SetStartedAt(std::forward<StartedAtT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
91 template <typename EndedAtT = Aws::Utils::DateTime>
92 void SetEndedAt(EndedAtT&& value) {
93 m_endedAtHasBeenSet = true;
94 m_endedAt = std::forward<EndedAtT>(value);
95 }
96 template <typename EndedAtT = Aws::Utils::DateTime>
98 SetEndedAt(std::forward<EndedAtT>(value));
99 return *this;
100 }
102
104
108 inline const ClientLocation& GetClientLocation() const { return m_clientLocation; }
109 template <typename ClientLocationT = ClientLocation>
110 void SetClientLocation(ClientLocationT&& value) {
111 m_clientLocationHasBeenSet = true;
112 m_clientLocation = std::forward<ClientLocationT>(value);
113 }
114 template <typename ClientLocationT = ClientLocation>
115 GetInternetEventResult& WithClientLocation(ClientLocationT&& value) {
116 SetClientLocation(std::forward<ClientLocationT>(value));
117 return *this;
118 }
120
122
125 inline InternetEventType GetEventType() const { return m_eventType; }
126 inline void SetEventType(InternetEventType value) {
127 m_eventTypeHasBeenSet = true;
128 m_eventType = value;
129 }
131 SetEventType(value);
132 return *this;
133 }
135
137
140 inline InternetEventStatus GetEventStatus() const { return m_eventStatus; }
142 m_eventStatusHasBeenSet = true;
143 m_eventStatus = value;
144 }
146 SetEventStatus(value);
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
166
167 private:
168 Aws::String m_eventId;
169
170 Aws::String m_eventArn;
171
172 Aws::Utils::DateTime m_startedAt{};
173
174 Aws::Utils::DateTime m_endedAt{};
175
176 ClientLocation m_clientLocation;
177
179
181
182 Aws::String m_requestId;
183 Aws::Http::HttpResponseCode m_HttpResponseCode;
184 bool m_eventIdHasBeenSet = false;
185 bool m_eventArnHasBeenSet = false;
186 bool m_startedAtHasBeenSet = false;
187 bool m_endedAtHasBeenSet = false;
188 bool m_clientLocationHasBeenSet = false;
189 bool m_eventTypeHasBeenSet = false;
190 bool m_eventStatusHasBeenSet = false;
191 bool m_requestIdHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace InternetMonitor
196} // namespace Aws
AWS_INTERNETMONITOR_API GetInternetEventResult()=default
AWS_INTERNETMONITOR_API GetInternetEventResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInternetEventResult & WithEventId(EventIdT &&value)
GetInternetEventResult & WithEventArn(EventArnT &&value)
GetInternetEventResult & WithEventStatus(InternetEventStatus value)
GetInternetEventResult & WithRequestId(RequestIdT &&value)
GetInternetEventResult & WithStartedAt(StartedAtT &&value)
GetInternetEventResult & WithEventType(InternetEventType value)
AWS_INTERNETMONITOR_API GetInternetEventResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInternetEventResult & WithEndedAt(EndedAtT &&value)
GetInternetEventResult & WithClientLocation(ClientLocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue