AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/health/model/EventTypeCategory.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/health/model/EventStatusCode.h>
12#include <aws/health/model/EventScopeCode.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 Health
26{
27namespace Model
28{
29
48 class Event
49 {
50 public:
51 AWS_HEALTH_API Event() = default;
52 AWS_HEALTH_API Event(Aws::Utils::Json::JsonView jsonValue);
53 AWS_HEALTH_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
66 inline const Aws::String& GetArn() const { return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 template<typename ArnT = Aws::String>
69 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
70 template<typename ArnT = Aws::String>
71 Event& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
73
75
79 inline const Aws::String& GetService() const { return m_service; }
80 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
81 template<typename ServiceT = Aws::String>
82 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
83 template<typename ServiceT = Aws::String>
84 Event& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
86
88
93 inline const Aws::String& GetEventTypeCode() const { return m_eventTypeCode; }
94 inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
95 template<typename EventTypeCodeT = Aws::String>
96 void SetEventTypeCode(EventTypeCodeT&& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = std::forward<EventTypeCodeT>(value); }
97 template<typename EventTypeCodeT = Aws::String>
98 Event& WithEventTypeCode(EventTypeCodeT&& value) { SetEventTypeCode(std::forward<EventTypeCodeT>(value)); return *this;}
100
102
107 inline EventTypeCategory GetEventTypeCategory() const { return m_eventTypeCategory; }
108 inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
109 inline void SetEventTypeCategory(EventTypeCategory value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = value; }
112
114
117 inline const Aws::String& GetRegion() const { return m_region; }
118 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
119 template<typename RegionT = Aws::String>
120 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
121 template<typename RegionT = Aws::String>
122 Event& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
124
126
130 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
131 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
132 template<typename AvailabilityZoneT = Aws::String>
133 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
134 template<typename AvailabilityZoneT = Aws::String>
135 Event& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
143 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
144 template<typename StartTimeT = Aws::Utils::DateTime>
145 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
146 template<typename StartTimeT = Aws::Utils::DateTime>
147 Event& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
149
151
154 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
155 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
156 template<typename EndTimeT = Aws::Utils::DateTime>
157 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
158 template<typename EndTimeT = Aws::Utils::DateTime>
159 Event& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
161
163
166 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
167 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
168 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
169 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
170 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
171 Event& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
173
175
179 inline EventStatusCode GetStatusCode() const { return m_statusCode; }
180 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
181 inline void SetStatusCode(EventStatusCode value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
182 inline Event& WithStatusCode(EventStatusCode value) { SetStatusCode(value); return *this;}
184
186
200 inline EventScopeCode GetEventScopeCode() const { return m_eventScopeCode; }
201 inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
202 inline void SetEventScopeCode(EventScopeCode value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = value; }
203 inline Event& WithEventScopeCode(EventScopeCode value) { SetEventScopeCode(value); return *this;}
205 private:
206
207 Aws::String m_arn;
208 bool m_arnHasBeenSet = false;
209
210 Aws::String m_service;
211 bool m_serviceHasBeenSet = false;
212
213 Aws::String m_eventTypeCode;
214 bool m_eventTypeCodeHasBeenSet = false;
215
217 bool m_eventTypeCategoryHasBeenSet = false;
218
219 Aws::String m_region;
220 bool m_regionHasBeenSet = false;
221
222 Aws::String m_availabilityZone;
223 bool m_availabilityZoneHasBeenSet = false;
224
225 Aws::Utils::DateTime m_startTime{};
226 bool m_startTimeHasBeenSet = false;
227
228 Aws::Utils::DateTime m_endTime{};
229 bool m_endTimeHasBeenSet = false;
230
231 Aws::Utils::DateTime m_lastUpdatedTime{};
232 bool m_lastUpdatedTimeHasBeenSet = false;
233
235 bool m_statusCodeHasBeenSet = false;
236
237 EventScopeCode m_eventScopeCode{EventScopeCode::NOT_SET};
238 bool m_eventScopeCodeHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace Health
243} // namespace Aws
Event & WithArn(ArnT &&value)
Definition Event.h:71
Event & WithStatusCode(EventStatusCode value)
Definition Event.h:182
void SetRegion(RegionT &&value)
Definition Event.h:120
bool EventTypeCategoryHasBeenSet() const
Definition Event.h:108
Event & WithRegion(RegionT &&value)
Definition Event.h:122
void SetStartTime(StartTimeT &&value)
Definition Event.h:145
bool EventTypeCodeHasBeenSet() const
Definition Event.h:94
void SetService(ServiceT &&value)
Definition Event.h:82
const Aws::String & GetRegion() const
Definition Event.h:117
AWS_HEALTH_API Event()=default
void SetEventTypeCategory(EventTypeCategory value)
Definition Event.h:109
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Event.h:169
bool EndTimeHasBeenSet() const
Definition Event.h:155
bool StartTimeHasBeenSet() const
Definition Event.h:143
const Aws::String & GetArn() const
Definition Event.h:66
AWS_HEALTH_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventTypeCategory(EventTypeCategory value)
Definition Event.h:110
void SetEventScopeCode(EventScopeCode value)
Definition Event.h:202
Event & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Event.h:135
const Aws::Utils::DateTime & GetStartTime() const
Definition Event.h:142
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Event.h:133
bool RegionHasBeenSet() const
Definition Event.h:118
bool LastUpdatedTimeHasBeenSet() const
Definition Event.h:167
void SetEventTypeCode(EventTypeCodeT &&value)
Definition Event.h:96
EventStatusCode GetStatusCode() const
Definition Event.h:179
const Aws::String & GetService() const
Definition Event.h:79
void SetEndTime(EndTimeT &&value)
Definition Event.h:157
const Aws::String & GetAvailabilityZone() const
Definition Event.h:130
Event & WithEndTime(EndTimeT &&value)
Definition Event.h:159
bool AvailabilityZoneHasBeenSet() const
Definition Event.h:131
Event & WithEventTypeCode(EventTypeCodeT &&value)
Definition Event.h:98
const Aws::Utils::DateTime & GetEndTime() const
Definition Event.h:154
EventScopeCode GetEventScopeCode() const
Definition Event.h:200
bool EventScopeCodeHasBeenSet() const
Definition Event.h:201
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Event.h:166
void SetArn(ArnT &&value)
Definition Event.h:69
Event & WithEventScopeCode(EventScopeCode value)
Definition Event.h:203
Event & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Event.h:171
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
EventTypeCategory GetEventTypeCategory() const
Definition Event.h:107
void SetStatusCode(EventStatusCode value)
Definition Event.h:181
const Aws::String & GetEventTypeCode() const
Definition Event.h:93
AWS_HEALTH_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ArnHasBeenSet() const
Definition Event.h:67
bool ServiceHasBeenSet() const
Definition Event.h:80
bool StatusCodeHasBeenSet() const
Definition Event.h:180
Event & WithStartTime(StartTimeT &&value)
Definition Event.h:147
Event & WithService(ServiceT &&value)
Definition Event.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue