AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
InternetEventSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
10#include <aws/internetmonitor/model/ClientLocation.h>
11#include <aws/internetmonitor/model/InternetEventStatus.h>
12#include <aws/internetmonitor/model/InternetEventType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace InternetMonitor {
24namespace Model {
25
37 public:
38 AWS_INTERNETMONITOR_API InternetEventSummary() = default;
39 AWS_INTERNETMONITOR_API InternetEventSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INTERNETMONITOR_API InternetEventSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetEventId() const { return m_eventId; }
48 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
49 template <typename EventIdT = Aws::String>
50 void SetEventId(EventIdT&& value) {
51 m_eventIdHasBeenSet = true;
52 m_eventId = std::forward<EventIdT>(value);
53 }
54 template <typename EventIdT = Aws::String>
55 InternetEventSummary& WithEventId(EventIdT&& value) {
56 SetEventId(std::forward<EventIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetEventArn() const { return m_eventArn; }
66 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
67 template <typename EventArnT = Aws::String>
68 void SetEventArn(EventArnT&& value) {
69 m_eventArnHasBeenSet = true;
70 m_eventArn = std::forward<EventArnT>(value);
71 }
72 template <typename EventArnT = Aws::String>
73 InternetEventSummary& WithEventArn(EventArnT&& value) {
74 SetEventArn(std::forward<EventArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
84 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
85 template <typename StartedAtT = Aws::Utils::DateTime>
86 void SetStartedAt(StartedAtT&& value) {
87 m_startedAtHasBeenSet = true;
88 m_startedAt = std::forward<StartedAtT>(value);
89 }
90 template <typename StartedAtT = Aws::Utils::DateTime>
91 InternetEventSummary& WithStartedAt(StartedAtT&& value) {
92 SetStartedAt(std::forward<StartedAtT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
103 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
104 template <typename EndedAtT = Aws::Utils::DateTime>
105 void SetEndedAt(EndedAtT&& value) {
106 m_endedAtHasBeenSet = true;
107 m_endedAt = std::forward<EndedAtT>(value);
108 }
109 template <typename EndedAtT = Aws::Utils::DateTime>
111 SetEndedAt(std::forward<EndedAtT>(value));
112 return *this;
113 }
115
117
121 inline const ClientLocation& GetClientLocation() const { return m_clientLocation; }
122 inline bool ClientLocationHasBeenSet() const { return m_clientLocationHasBeenSet; }
123 template <typename ClientLocationT = ClientLocation>
124 void SetClientLocation(ClientLocationT&& value) {
125 m_clientLocationHasBeenSet = true;
126 m_clientLocation = std::forward<ClientLocationT>(value);
127 }
128 template <typename ClientLocationT = ClientLocation>
129 InternetEventSummary& WithClientLocation(ClientLocationT&& value) {
130 SetClientLocation(std::forward<ClientLocationT>(value));
131 return *this;
132 }
134
136
139 inline InternetEventType GetEventType() const { return m_eventType; }
140 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
141 inline void SetEventType(InternetEventType value) {
142 m_eventTypeHasBeenSet = true;
143 m_eventType = value;
144 }
146 SetEventType(value);
147 return *this;
148 }
150
152
155 inline InternetEventStatus GetEventStatus() const { return m_eventStatus; }
156 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
158 m_eventStatusHasBeenSet = true;
159 m_eventStatus = value;
160 }
162 SetEventStatus(value);
163 return *this;
164 }
166 private:
167 Aws::String m_eventId;
168
169 Aws::String m_eventArn;
170
171 Aws::Utils::DateTime m_startedAt{};
172
173 Aws::Utils::DateTime m_endedAt{};
174
175 ClientLocation m_clientLocation;
176
178
180 bool m_eventIdHasBeenSet = false;
181 bool m_eventArnHasBeenSet = false;
182 bool m_startedAtHasBeenSet = false;
183 bool m_endedAtHasBeenSet = false;
184 bool m_clientLocationHasBeenSet = false;
185 bool m_eventTypeHasBeenSet = false;
186 bool m_eventStatusHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace InternetMonitor
191} // namespace Aws
AWS_INTERNETMONITOR_API InternetEventSummary()=default
InternetEventSummary & WithClientLocation(ClientLocationT &&value)
InternetEventSummary & WithEndedAt(EndedAtT &&value)
AWS_INTERNETMONITOR_API InternetEventSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndedAt() const
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
InternetEventSummary & WithEventArn(EventArnT &&value)
InternetEventSummary & WithStartedAt(StartedAtT &&value)
AWS_INTERNETMONITOR_API InternetEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InternetEventSummary & WithEventStatus(InternetEventStatus value)
const Aws::Utils::DateTime & GetStartedAt() const
InternetEventSummary & WithEventType(InternetEventType value)
InternetEventSummary & WithEventId(EventIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue