AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
70 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
71 inline Event& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline Event& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline Event& WithArn(const char* value) { SetArn(value); return *this;}
75
77
81 inline const Aws::String& GetService() const{ return m_service; }
82 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
83 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
84 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
85 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
86 inline Event& WithService(const Aws::String& value) { SetService(value); return *this;}
87 inline Event& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
88 inline Event& WithService(const char* value) { SetService(value); return *this;}
90
92
97 inline const Aws::String& GetEventTypeCode() const{ return m_eventTypeCode; }
98 inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
99 inline void SetEventTypeCode(const Aws::String& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = value; }
100 inline void SetEventTypeCode(Aws::String&& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = std::move(value); }
101 inline void SetEventTypeCode(const char* value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode.assign(value); }
102 inline Event& WithEventTypeCode(const Aws::String& value) { SetEventTypeCode(value); return *this;}
103 inline Event& WithEventTypeCode(Aws::String&& value) { SetEventTypeCode(std::move(value)); return *this;}
104 inline Event& WithEventTypeCode(const char* value) { SetEventTypeCode(value); return *this;}
106
108
113 inline const EventTypeCategory& GetEventTypeCategory() const{ return m_eventTypeCategory; }
114 inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
115 inline void SetEventTypeCategory(const EventTypeCategory& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = value; }
116 inline void SetEventTypeCategory(EventTypeCategory&& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = std::move(value); }
117 inline Event& WithEventTypeCategory(const EventTypeCategory& value) { SetEventTypeCategory(value); return *this;}
118 inline Event& WithEventTypeCategory(EventTypeCategory&& value) { SetEventTypeCategory(std::move(value)); return *this;}
120
122
125 inline const Aws::String& GetRegion() const{ return m_region; }
126 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
127 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
128 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
129 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
130 inline Event& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
131 inline Event& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
132 inline Event& WithRegion(const char* value) { SetRegion(value); return *this;}
134
136
140 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
141 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
142 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
143 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
144 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
145 inline Event& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
146 inline Event& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
147 inline Event& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
149
151
154 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
155 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
156 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
157 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
158 inline Event& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
159 inline Event& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
161
163
166 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
167 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
168 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
169 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
170 inline Event& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
171 inline Event& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
173
175
178 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
179 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
180 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
181 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
182 inline Event& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
183 inline Event& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
185
187
191 inline const EventStatusCode& GetStatusCode() const{ return m_statusCode; }
192 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
193 inline void SetStatusCode(const EventStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
194 inline void SetStatusCode(EventStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
195 inline Event& WithStatusCode(const EventStatusCode& value) { SetStatusCode(value); return *this;}
196 inline Event& WithStatusCode(EventStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
198
200
214 inline const EventScopeCode& GetEventScopeCode() const{ return m_eventScopeCode; }
215 inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
216 inline void SetEventScopeCode(const EventScopeCode& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = value; }
217 inline void SetEventScopeCode(EventScopeCode&& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = std::move(value); }
218 inline Event& WithEventScopeCode(const EventScopeCode& value) { SetEventScopeCode(value); return *this;}
219 inline Event& WithEventScopeCode(EventScopeCode&& value) { SetEventScopeCode(std::move(value)); return *this;}
221 private:
222
223 Aws::String m_arn;
224 bool m_arnHasBeenSet = false;
225
226 Aws::String m_service;
227 bool m_serviceHasBeenSet = false;
228
229 Aws::String m_eventTypeCode;
230 bool m_eventTypeCodeHasBeenSet = false;
231
232 EventTypeCategory m_eventTypeCategory;
233 bool m_eventTypeCategoryHasBeenSet = false;
234
235 Aws::String m_region;
236 bool m_regionHasBeenSet = false;
237
238 Aws::String m_availabilityZone;
239 bool m_availabilityZoneHasBeenSet = false;
240
241 Aws::Utils::DateTime m_startTime;
242 bool m_startTimeHasBeenSet = false;
243
244 Aws::Utils::DateTime m_endTime;
245 bool m_endTimeHasBeenSet = false;
246
247 Aws::Utils::DateTime m_lastUpdatedTime;
248 bool m_lastUpdatedTimeHasBeenSet = false;
249
250 EventStatusCode m_statusCode;
251 bool m_statusCodeHasBeenSet = false;
252
253 EventScopeCode m_eventScopeCode;
254 bool m_eventScopeCodeHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace Health
259} // namespace Aws
Event & WithService(Aws::String &&value)
Definition Event.h:87
AWS_HEALTH_API Event()
void SetEventTypeCategory(const EventTypeCategory &value)
Definition Event.h:115
void SetService(const Aws::String &value)
Definition Event.h:83
Event & WithService(const Aws::String &value)
Definition Event.h:86
bool EventTypeCategoryHasBeenSet() const
Definition Event.h:114
void SetAvailabilityZone(Aws::String &&value)
Definition Event.h:143
void SetService(Aws::String &&value)
Definition Event.h:84
Event & WithArn(Aws::String &&value)
Definition Event.h:72
void SetStatusCode(EventStatusCode &&value)
Definition Event.h:194
void SetAvailabilityZone(const char *value)
Definition Event.h:144
bool EventTypeCodeHasBeenSet() const
Definition Event.h:98
const Aws::String & GetRegion() const
Definition Event.h:125
void SetRegion(Aws::String &&value)
Definition Event.h:128
Event & WithEventTypeCode(const Aws::String &value)
Definition Event.h:102
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Event.h:169
const EventTypeCategory & GetEventTypeCategory() const
Definition Event.h:113
Event & WithEndTime(Aws::Utils::DateTime &&value)
Definition Event.h:171
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Event.h:168
bool EndTimeHasBeenSet() const
Definition Event.h:167
Event & WithRegion(const Aws::String &value)
Definition Event.h:130
bool StartTimeHasBeenSet() const
Definition Event.h:155
const Aws::String & GetArn() const
Definition Event.h:66
AWS_HEALTH_API Event(Aws::Utils::Json::JsonView jsonValue)
const EventScopeCode & GetEventScopeCode() const
Definition Event.h:214
Event & WithStatusCode(EventStatusCode &&value)
Definition Event.h:196
Event & WithAvailabilityZone(const Aws::String &value)
Definition Event.h:145
void SetEventTypeCode(Aws::String &&value)
Definition Event.h:100
const Aws::Utils::DateTime & GetStartTime() const
Definition Event.h:154
bool RegionHasBeenSet() const
Definition Event.h:126
bool LastUpdatedTimeHasBeenSet() const
Definition Event.h:179
void SetRegion(const Aws::String &value)
Definition Event.h:127
void SetEventTypeCode(const char *value)
Definition Event.h:101
void SetAvailabilityZone(const Aws::String &value)
Definition Event.h:142
Event & WithEventTypeCode(Aws::String &&value)
Definition Event.h:103
const Aws::String & GetService() const
Definition Event.h:81
const Aws::String & GetAvailabilityZone() const
Definition Event.h:140
bool AvailabilityZoneHasBeenSet() const
Definition Event.h:141
const Aws::Utils::DateTime & GetEndTime() const
Definition Event.h:166
Event & WithService(const char *value)
Definition Event.h:88
bool EventScopeCodeHasBeenSet() const
Definition Event.h:215
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Event.h:178
void SetArn(Aws::String &&value)
Definition Event.h:69
const EventStatusCode & GetStatusCode() const
Definition Event.h:191
void SetArn(const Aws::String &value)
Definition Event.h:68
Event & WithStatusCode(const EventStatusCode &value)
Definition Event.h:195
Event & WithStartTime(Aws::Utils::DateTime &&value)
Definition Event.h:159
Event & WithStartTime(const Aws::Utils::DateTime &value)
Definition Event.h:158
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventScopeCode(EventScopeCode &&value)
Definition Event.h:217
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Event.h:156
Event & WithArn(const char *value)
Definition Event.h:73
Event & WithEventScopeCode(const EventScopeCode &value)
Definition Event.h:218
Event & WithEventTypeCode(const char *value)
Definition Event.h:104
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Event.h:180
Event & WithRegion(Aws::String &&value)
Definition Event.h:131
const Aws::String & GetEventTypeCode() const
Definition Event.h:97
AWS_HEALTH_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ArnHasBeenSet() const
Definition Event.h:67
void SetService(const char *value)
Definition Event.h:85
Event & WithArn(const Aws::String &value)
Definition Event.h:71
Event & WithEventTypeCategory(const EventTypeCategory &value)
Definition Event.h:117
void SetStatusCode(const EventStatusCode &value)
Definition Event.h:193
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Event.h:157
Event & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Event.h:183
Event & WithAvailabilityZone(const char *value)
Definition Event.h:147
Event & WithEndTime(const Aws::Utils::DateTime &value)
Definition Event.h:170
void SetEventTypeCode(const Aws::String &value)
Definition Event.h:99
void SetEventScopeCode(const EventScopeCode &value)
Definition Event.h:216
bool ServiceHasBeenSet() const
Definition Event.h:82
void SetEventTypeCategory(EventTypeCategory &&value)
Definition Event.h:116
Event & WithRegion(const char *value)
Definition Event.h:132
bool StatusCodeHasBeenSet() const
Definition Event.h:192
Event & WithEventScopeCode(EventScopeCode &&value)
Definition Event.h:219
void SetRegion(const char *value)
Definition Event.h:129
Event & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Event.h:182
void SetArn(const char *value)
Definition Event.h:70
Event & WithAvailabilityZone(Aws::String &&value)
Definition Event.h:146
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Event.h:181
Event & WithEventTypeCategory(EventTypeCategory &&value)
Definition Event.h:118
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue