AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ManagedApiEventSummary.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/EventStatus.h>
9#include <aws/apiportal/model/EventType.h>
10#include <aws/apiportal/model/WafApiSecurityEventDetail.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace APIPortal {
24namespace Model {
25
34 public:
35 AWS_APIPORTAL_API ManagedApiEventSummary() = default;
38 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetEventId() const { return m_eventId; }
45 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
46 template <typename EventIdT = Aws::String>
47 void SetEventId(EventIdT&& value) {
48 m_eventIdHasBeenSet = true;
49 m_eventId = std::forward<EventIdT>(value);
50 }
51 template <typename EventIdT = Aws::String>
53 SetEventId(std::forward<EventIdT>(value));
54 return *this;
55 }
57
59
62 inline EventType GetEventType() const { return m_eventType; }
63 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
64 inline void SetEventType(EventType value) {
65 m_eventTypeHasBeenSet = true;
66 m_eventType = value;
67 }
69 SetEventType(value);
70 return *this;
71 }
73
75
76 inline EventStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(EventStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
93 inline const WafApiSecurityEventDetail& GetWafApiSecurityEventDetail() const { return m_wafApiSecurityEventDetail; }
94 inline bool WafApiSecurityEventDetailHasBeenSet() const { return m_wafApiSecurityEventDetailHasBeenSet; }
95 template <typename WafApiSecurityEventDetailT = WafApiSecurityEventDetail>
96 void SetWafApiSecurityEventDetail(WafApiSecurityEventDetailT&& value) {
97 m_wafApiSecurityEventDetailHasBeenSet = true;
98 m_wafApiSecurityEventDetail = std::forward<WafApiSecurityEventDetailT>(value);
99 }
100 template <typename WafApiSecurityEventDetailT = WafApiSecurityEventDetail>
101 ManagedApiEventSummary& WithWafApiSecurityEventDetail(WafApiSecurityEventDetailT&& value) {
102 SetWafApiSecurityEventDetail(std::forward<WafApiSecurityEventDetailT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
112 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
113 template <typename StartedAtT = Aws::Utils::DateTime>
114 void SetStartedAt(StartedAtT&& value) {
115 m_startedAtHasBeenSet = true;
116 m_startedAt = std::forward<StartedAtT>(value);
117 }
118 template <typename StartedAtT = Aws::Utils::DateTime>
120 SetStartedAt(std::forward<StartedAtT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
130 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
131 template <typename EndedAtT = Aws::Utils::DateTime>
132 void SetEndedAt(EndedAtT&& value) {
133 m_endedAtHasBeenSet = true;
134 m_endedAt = std::forward<EndedAtT>(value);
135 }
136 template <typename EndedAtT = Aws::Utils::DateTime>
138 SetEndedAt(std::forward<EndedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
148 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
149 template <typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) {
151 m_updatedAtHasBeenSet = true;
152 m_updatedAt = std::forward<UpdatedAtT>(value);
153 }
154 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 SetUpdatedAt(std::forward<UpdatedAtT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_eventId;
162
163 EventType m_eventType{EventType::NOT_SET};
164
166
167 WafApiSecurityEventDetail m_wafApiSecurityEventDetail;
168
169 Aws::Utils::DateTime m_startedAt{};
170
171 Aws::Utils::DateTime m_endedAt{};
172
173 Aws::Utils::DateTime m_updatedAt{};
174 bool m_eventIdHasBeenSet = false;
175 bool m_eventTypeHasBeenSet = false;
176 bool m_statusHasBeenSet = false;
177 bool m_wafApiSecurityEventDetailHasBeenSet = false;
178 bool m_startedAtHasBeenSet = false;
179 bool m_endedAtHasBeenSet = false;
180 bool m_updatedAtHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace APIPortal
185} // namespace Aws
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedApiEventSummary & WithWafApiSecurityEventDetail(WafApiSecurityEventDetailT &&value)
ManagedApiEventSummary & WithEndedAt(EndedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const WafApiSecurityEventDetail & GetWafApiSecurityEventDetail() const
AWS_APIPORTAL_API ManagedApiEventSummary()=default
AWS_APIPORTAL_API ManagedApiEventSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetEndedAt() const
ManagedApiEventSummary & WithStatus(EventStatus value)
void SetWafApiSecurityEventDetail(WafApiSecurityEventDetailT &&value)
ManagedApiEventSummary & WithEventType(EventType value)
AWS_APIPORTAL_API ManagedApiEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedApiEventSummary & WithUpdatedAt(UpdatedAtT &&value)
ManagedApiEventSummary & WithStartedAt(StartedAtT &&value)
ManagedApiEventSummary & WithEventId(EventIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue