AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InternetEventSummary.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/internetmonitor/model/ClientLocation.h>
11#include <aws/internetmonitor/model/InternetEventType.h>
12#include <aws/internetmonitor/model/InternetEventStatus.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 InternetMonitor
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_INTERNETMONITOR_API InternetEventSummary() = default;
44 AWS_INTERNETMONITOR_API InternetEventSummary(Aws::Utils::Json::JsonView jsonValue);
45 AWS_INTERNETMONITOR_API InternetEventSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetEventId() const { return m_eventId; }
54 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
55 template<typename EventIdT = Aws::String>
56 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
57 template<typename EventIdT = Aws::String>
58 InternetEventSummary& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
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) { m_eventArnHasBeenSet = true; m_eventArn = std::forward<EventArnT>(value); }
69 template<typename EventArnT = Aws::String>
70 InternetEventSummary& WithEventArn(EventArnT&& value) { SetEventArn(std::forward<EventArnT>(value)); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
78 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
79 template<typename StartedAtT = Aws::Utils::DateTime>
80 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
81 template<typename StartedAtT = Aws::Utils::DateTime>
82 InternetEventSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
91 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
92 template<typename EndedAtT = Aws::Utils::DateTime>
93 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
94 template<typename EndedAtT = Aws::Utils::DateTime>
95 InternetEventSummary& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
97
99
103 inline const ClientLocation& GetClientLocation() const { return m_clientLocation; }
104 inline bool ClientLocationHasBeenSet() const { return m_clientLocationHasBeenSet; }
105 template<typename ClientLocationT = ClientLocation>
106 void SetClientLocation(ClientLocationT&& value) { m_clientLocationHasBeenSet = true; m_clientLocation = std::forward<ClientLocationT>(value); }
107 template<typename ClientLocationT = ClientLocation>
108 InternetEventSummary& WithClientLocation(ClientLocationT&& value) { SetClientLocation(std::forward<ClientLocationT>(value)); return *this;}
110
112
115 inline InternetEventType GetEventType() const { return m_eventType; }
116 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
117 inline void SetEventType(InternetEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
118 inline InternetEventSummary& WithEventType(InternetEventType value) { SetEventType(value); return *this;}
120
122
125 inline InternetEventStatus GetEventStatus() const { return m_eventStatus; }
126 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
127 inline void SetEventStatus(InternetEventStatus value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
130 private:
131
132 Aws::String m_eventId;
133 bool m_eventIdHasBeenSet = false;
134
135 Aws::String m_eventArn;
136 bool m_eventArnHasBeenSet = false;
137
138 Aws::Utils::DateTime m_startedAt{};
139 bool m_startedAtHasBeenSet = false;
140
141 Aws::Utils::DateTime m_endedAt{};
142 bool m_endedAtHasBeenSet = false;
143
144 ClientLocation m_clientLocation;
145 bool m_clientLocationHasBeenSet = false;
146
148 bool m_eventTypeHasBeenSet = false;
149
151 bool m_eventStatusHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace InternetMonitor
156} // 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