AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
56 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
57 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
58 inline InternetEventSummary& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
59 inline InternetEventSummary& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
60 inline InternetEventSummary& WithEventId(const char* value) { SetEventId(value); return *this;}
62
64
67 inline const Aws::String& GetEventArn() const{ return m_eventArn; }
68 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
69 inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
70 inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
71 inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
72 inline InternetEventSummary& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
73 inline InternetEventSummary& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
74 inline InternetEventSummary& WithEventArn(const char* value) { SetEventArn(value); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
82 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
83 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
84 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
85 inline InternetEventSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
86 inline InternetEventSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
95 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
96 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
97 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
98 inline InternetEventSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
99 inline InternetEventSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
101
103
107 inline const ClientLocation& GetClientLocation() const{ return m_clientLocation; }
108 inline bool ClientLocationHasBeenSet() const { return m_clientLocationHasBeenSet; }
109 inline void SetClientLocation(const ClientLocation& value) { m_clientLocationHasBeenSet = true; m_clientLocation = value; }
110 inline void SetClientLocation(ClientLocation&& value) { m_clientLocationHasBeenSet = true; m_clientLocation = std::move(value); }
111 inline InternetEventSummary& WithClientLocation(const ClientLocation& value) { SetClientLocation(value); return *this;}
112 inline InternetEventSummary& WithClientLocation(ClientLocation&& value) { SetClientLocation(std::move(value)); return *this;}
114
116
119 inline const InternetEventType& GetEventType() const{ return m_eventType; }
120 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
121 inline void SetEventType(const InternetEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
122 inline void SetEventType(InternetEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
123 inline InternetEventSummary& WithEventType(const InternetEventType& value) { SetEventType(value); return *this;}
124 inline InternetEventSummary& WithEventType(InternetEventType&& value) { SetEventType(std::move(value)); return *this;}
126
128
131 inline const InternetEventStatus& GetEventStatus() const{ return m_eventStatus; }
132 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
133 inline void SetEventStatus(const InternetEventStatus& value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
134 inline void SetEventStatus(InternetEventStatus&& value) { m_eventStatusHasBeenSet = true; m_eventStatus = std::move(value); }
135 inline InternetEventSummary& WithEventStatus(const InternetEventStatus& value) { SetEventStatus(value); return *this;}
136 inline InternetEventSummary& WithEventStatus(InternetEventStatus&& value) { SetEventStatus(std::move(value)); return *this;}
138 private:
139
140 Aws::String m_eventId;
141 bool m_eventIdHasBeenSet = false;
142
143 Aws::String m_eventArn;
144 bool m_eventArnHasBeenSet = false;
145
146 Aws::Utils::DateTime m_startedAt;
147 bool m_startedAtHasBeenSet = false;
148
149 Aws::Utils::DateTime m_endedAt;
150 bool m_endedAtHasBeenSet = false;
151
152 ClientLocation m_clientLocation;
153 bool m_clientLocationHasBeenSet = false;
154
155 InternetEventType m_eventType;
156 bool m_eventTypeHasBeenSet = false;
157
158 InternetEventStatus m_eventStatus;
159 bool m_eventStatusHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace InternetMonitor
164} // namespace Aws
void SetEventStatus(const InternetEventStatus &value)
InternetEventSummary & WithEventId(const char *value)
InternetEventSummary & WithEndedAt(const Aws::Utils::DateTime &value)
InternetEventSummary & WithClientLocation(ClientLocation &&value)
InternetEventSummary & WithEventId(Aws::String &&value)
InternetEventSummary & WithEventArn(Aws::String &&value)
InternetEventSummary & WithEventType(const InternetEventType &value)
InternetEventSummary & WithEventStatus(InternetEventStatus &&value)
AWS_INTERNETMONITOR_API InternetEventSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndedAt() const
const InternetEventStatus & GetEventStatus() const
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
InternetEventSummary & WithEventStatus(const InternetEventStatus &value)
InternetEventSummary & WithEventArn(const char *value)
AWS_INTERNETMONITOR_API InternetEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InternetEventSummary & WithStartedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartedAt() const
InternetEventSummary & WithStartedAt(Aws::Utils::DateTime &&value)
void SetEndedAt(const Aws::Utils::DateTime &value)
void SetEventType(const InternetEventType &value)
void SetStartedAt(const Aws::Utils::DateTime &value)
InternetEventSummary & WithEventArn(const Aws::String &value)
InternetEventSummary & WithClientLocation(const ClientLocation &value)
InternetEventSummary & WithEventId(const Aws::String &value)
InternetEventSummary & WithEventType(InternetEventType &&value)
InternetEventSummary & WithEndedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue