AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
OrganizationEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/health/Health_EXPORTS.h>
11#include <aws/health/model/EventActionability.h>
12#include <aws/health/model/EventPersona.h>
13#include <aws/health/model/EventScopeCode.h>
14#include <aws/health/model/EventStatusCode.h>
15#include <aws/health/model/EventTypeCategory.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Health {
27namespace Model {
28
37 public:
38 AWS_HEALTH_API OrganizationEvent() = default;
41 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 template <typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) {
56 m_arnHasBeenSet = true;
57 m_arn = std::forward<ArnT>(value);
58 }
59 template <typename ArnT = Aws::String>
60 OrganizationEvent& WithArn(ArnT&& value) {
61 SetArn(std::forward<ArnT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetService() const { return m_service; }
72 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
73 template <typename ServiceT = Aws::String>
74 void SetService(ServiceT&& value) {
75 m_serviceHasBeenSet = true;
76 m_service = std::forward<ServiceT>(value);
77 }
78 template <typename ServiceT = Aws::String>
79 OrganizationEvent& WithService(ServiceT&& value) {
80 SetService(std::forward<ServiceT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::String& GetEventTypeCode() const { return m_eventTypeCode; }
92 inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
93 template <typename EventTypeCodeT = Aws::String>
94 void SetEventTypeCode(EventTypeCodeT&& value) {
95 m_eventTypeCodeHasBeenSet = true;
96 m_eventTypeCode = std::forward<EventTypeCodeT>(value);
97 }
98 template <typename EventTypeCodeT = Aws::String>
99 OrganizationEvent& WithEventTypeCode(EventTypeCodeT&& value) {
100 SetEventTypeCode(std::forward<EventTypeCodeT>(value));
101 return *this;
102 }
104
106
111 inline EventTypeCategory GetEventTypeCategory() const { return m_eventTypeCategory; }
112 inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
114 m_eventTypeCategoryHasBeenSet = true;
115 m_eventTypeCategory = value;
116 }
119 return *this;
120 }
122
124
138 inline EventScopeCode GetEventScopeCode() const { return m_eventScopeCode; }
139 inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
141 m_eventScopeCodeHasBeenSet = true;
142 m_eventScopeCode = value;
143 }
145 SetEventScopeCode(value);
146 return *this;
147 }
149
151
154 inline const Aws::String& GetRegion() const { return m_region; }
155 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
156 template <typename RegionT = Aws::String>
157 void SetRegion(RegionT&& value) {
158 m_regionHasBeenSet = true;
159 m_region = std::forward<RegionT>(value);
160 }
161 template <typename RegionT = Aws::String>
162 OrganizationEvent& WithRegion(RegionT&& value) {
163 SetRegion(std::forward<RegionT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
173 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
174 template <typename StartTimeT = Aws::Utils::DateTime>
175 void SetStartTime(StartTimeT&& value) {
176 m_startTimeHasBeenSet = true;
177 m_startTime = std::forward<StartTimeT>(value);
178 }
179 template <typename StartTimeT = Aws::Utils::DateTime>
180 OrganizationEvent& WithStartTime(StartTimeT&& value) {
181 SetStartTime(std::forward<StartTimeT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
191 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
192 template <typename EndTimeT = Aws::Utils::DateTime>
193 void SetEndTime(EndTimeT&& value) {
194 m_endTimeHasBeenSet = true;
195 m_endTime = std::forward<EndTimeT>(value);
196 }
197 template <typename EndTimeT = Aws::Utils::DateTime>
198 OrganizationEvent& WithEndTime(EndTimeT&& value) {
199 SetEndTime(std::forward<EndTimeT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
209 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
210 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
211 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
212 m_lastUpdatedTimeHasBeenSet = true;
213 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
214 }
215 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
216 OrganizationEvent& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
217 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
218 return *this;
219 }
221
223
227 inline EventStatusCode GetStatusCode() const { return m_statusCode; }
228 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
229 inline void SetStatusCode(EventStatusCode value) {
230 m_statusCodeHasBeenSet = true;
231 m_statusCode = value;
232 }
234 SetStatusCode(value);
235 return *this;
236 }
238
240
250 inline EventActionability GetActionability() const { return m_actionability; }
251 inline bool ActionabilityHasBeenSet() const { return m_actionabilityHasBeenSet; }
253 m_actionabilityHasBeenSet = true;
254 m_actionability = value;
255 }
257 SetActionability(value);
258 return *this;
259 }
261
263
269 inline const Aws::Vector<EventPersona>& GetPersonas() const { return m_personas; }
270 inline bool PersonasHasBeenSet() const { return m_personasHasBeenSet; }
271 template <typename PersonasT = Aws::Vector<EventPersona>>
272 void SetPersonas(PersonasT&& value) {
273 m_personasHasBeenSet = true;
274 m_personas = std::forward<PersonasT>(value);
275 }
276 template <typename PersonasT = Aws::Vector<EventPersona>>
277 OrganizationEvent& WithPersonas(PersonasT&& value) {
278 SetPersonas(std::forward<PersonasT>(value));
279 return *this;
280 }
282 m_personasHasBeenSet = true;
283 m_personas.push_back(value);
284 return *this;
285 }
287 private:
288 Aws::String m_arn;
289
290 Aws::String m_service;
291
292 Aws::String m_eventTypeCode;
293
295
296 EventScopeCode m_eventScopeCode{EventScopeCode::NOT_SET};
297
298 Aws::String m_region;
299
300 Aws::Utils::DateTime m_startTime{};
301
302 Aws::Utils::DateTime m_endTime{};
303
304 Aws::Utils::DateTime m_lastUpdatedTime{};
305
307
309
310 Aws::Vector<EventPersona> m_personas;
311 bool m_arnHasBeenSet = false;
312 bool m_serviceHasBeenSet = false;
313 bool m_eventTypeCodeHasBeenSet = false;
314 bool m_eventTypeCategoryHasBeenSet = false;
315 bool m_eventScopeCodeHasBeenSet = false;
316 bool m_regionHasBeenSet = false;
317 bool m_startTimeHasBeenSet = false;
318 bool m_endTimeHasBeenSet = false;
319 bool m_lastUpdatedTimeHasBeenSet = false;
320 bool m_statusCodeHasBeenSet = false;
321 bool m_actionabilityHasBeenSet = false;
322 bool m_personasHasBeenSet = false;
323};
324
325} // namespace Model
326} // namespace Health
327} // namespace Aws
void SetEventTypeCategory(EventTypeCategory value)
OrganizationEvent & WithActionability(EventActionability value)
AWS_HEALTH_API OrganizationEvent()=default
OrganizationEvent & WithEventTypeCode(EventTypeCodeT &&value)
EventActionability GetActionability() const
const Aws::String & GetService() const
OrganizationEvent & WithEventScopeCode(EventScopeCode value)
OrganizationEvent & WithService(ServiceT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_HEALTH_API OrganizationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationEvent & AddPersonas(EventPersona value)
OrganizationEvent & WithPersonas(PersonasT &&value)
const Aws::Vector< EventPersona > & GetPersonas() const
const Aws::String & GetEventTypeCode() const
const Aws::String & GetArn() const
OrganizationEvent & WithEndTime(EndTimeT &&value)
void SetStatusCode(EventStatusCode value)
const Aws::Utils::DateTime & GetStartTime() const
OrganizationEvent & WithArn(ArnT &&value)
OrganizationEvent & WithRegion(RegionT &&value)
AWS_HEALTH_API OrganizationEvent(Aws::Utils::Json::JsonView jsonValue)
void SetEventScopeCode(EventScopeCode value)
OrganizationEvent & WithEventTypeCategory(EventTypeCategory value)
const Aws::String & GetRegion() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
OrganizationEvent & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetEventTypeCode(EventTypeCodeT &&value)
EventTypeCategory GetEventTypeCategory() const
OrganizationEvent & WithStartTime(StartTimeT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
void SetActionability(EventActionability value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationEvent & WithStatusCode(EventStatusCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue