AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrganizationEvent.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/health/model/EventScopeCode.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/health/model/EventStatusCode.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
38 {
39 public:
40 AWS_HEALTH_API OrganizationEvent();
43 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
55 inline const Aws::String& GetArn() const{ return m_arn; }
56 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
57 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
58 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
59 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
60 inline OrganizationEvent& WithArn(const Aws::String& value) { SetArn(value); return *this;}
61 inline OrganizationEvent& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
62 inline OrganizationEvent& WithArn(const char* value) { SetArn(value); return *this;}
64
66
70 inline const Aws::String& GetService() const{ return m_service; }
71 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
72 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
73 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
74 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
75 inline OrganizationEvent& WithService(const Aws::String& value) { SetService(value); return *this;}
76 inline OrganizationEvent& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
77 inline OrganizationEvent& WithService(const char* value) { SetService(value); return *this;}
79
81
86 inline const Aws::String& GetEventTypeCode() const{ return m_eventTypeCode; }
87 inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
88 inline void SetEventTypeCode(const Aws::String& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = value; }
89 inline void SetEventTypeCode(Aws::String&& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = std::move(value); }
90 inline void SetEventTypeCode(const char* value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode.assign(value); }
91 inline OrganizationEvent& WithEventTypeCode(const Aws::String& value) { SetEventTypeCode(value); return *this;}
92 inline OrganizationEvent& WithEventTypeCode(Aws::String&& value) { SetEventTypeCode(std::move(value)); return *this;}
93 inline OrganizationEvent& WithEventTypeCode(const char* value) { SetEventTypeCode(value); return *this;}
95
97
102 inline const EventTypeCategory& GetEventTypeCategory() const{ return m_eventTypeCategory; }
103 inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
104 inline void SetEventTypeCategory(const EventTypeCategory& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = value; }
105 inline void SetEventTypeCategory(EventTypeCategory&& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = std::move(value); }
107 inline OrganizationEvent& WithEventTypeCategory(EventTypeCategory&& value) { SetEventTypeCategory(std::move(value)); return *this;}
109
111
125 inline const EventScopeCode& GetEventScopeCode() const{ return m_eventScopeCode; }
126 inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
127 inline void SetEventScopeCode(const EventScopeCode& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = value; }
128 inline void SetEventScopeCode(EventScopeCode&& value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = std::move(value); }
129 inline OrganizationEvent& WithEventScopeCode(const EventScopeCode& value) { SetEventScopeCode(value); return *this;}
130 inline OrganizationEvent& WithEventScopeCode(EventScopeCode&& value) { SetEventScopeCode(std::move(value)); return *this;}
132
134
137 inline const Aws::String& GetRegion() const{ return m_region; }
138 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
139 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
140 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
141 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
142 inline OrganizationEvent& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
143 inline OrganizationEvent& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
144 inline OrganizationEvent& WithRegion(const char* value) { SetRegion(value); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
152 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
153 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
154 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
155 inline OrganizationEvent& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
156 inline OrganizationEvent& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
164 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
165 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
166 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
167 inline OrganizationEvent& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
168 inline OrganizationEvent& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
176 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
177 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
178 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
180 inline OrganizationEvent& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
182
184
188 inline const EventStatusCode& GetStatusCode() const{ return m_statusCode; }
189 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
190 inline void SetStatusCode(const EventStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
191 inline void SetStatusCode(EventStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
192 inline OrganizationEvent& WithStatusCode(const EventStatusCode& value) { SetStatusCode(value); return *this;}
193 inline OrganizationEvent& WithStatusCode(EventStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
195 private:
196
197 Aws::String m_arn;
198 bool m_arnHasBeenSet = false;
199
200 Aws::String m_service;
201 bool m_serviceHasBeenSet = false;
202
203 Aws::String m_eventTypeCode;
204 bool m_eventTypeCodeHasBeenSet = false;
205
206 EventTypeCategory m_eventTypeCategory;
207 bool m_eventTypeCategoryHasBeenSet = false;
208
209 EventScopeCode m_eventScopeCode;
210 bool m_eventScopeCodeHasBeenSet = false;
211
212 Aws::String m_region;
213 bool m_regionHasBeenSet = false;
214
215 Aws::Utils::DateTime m_startTime;
216 bool m_startTimeHasBeenSet = false;
217
218 Aws::Utils::DateTime m_endTime;
219 bool m_endTimeHasBeenSet = false;
220
221 Aws::Utils::DateTime m_lastUpdatedTime;
222 bool m_lastUpdatedTimeHasBeenSet = false;
223
224 EventStatusCode m_statusCode;
225 bool m_statusCodeHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace Health
230} // namespace Aws
void SetStatusCode(const EventStatusCode &value)
void SetEventTypeCategory(EventTypeCategory &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
OrganizationEvent & WithEndTime(Aws::Utils::DateTime &&value)
OrganizationEvent & WithRegion(Aws::String &&value)
void SetEventTypeCode(const Aws::String &value)
const EventStatusCode & GetStatusCode() const
const Aws::String & GetService() const
void SetService(const Aws::String &value)
OrganizationEvent & WithRegion(const Aws::String &value)
void SetEventTypeCode(Aws::String &&value)
OrganizationEvent & WithEventTypeCategory(const EventTypeCategory &value)
OrganizationEvent & WithRegion(const char *value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_HEALTH_API OrganizationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationEvent & WithEventTypeCode(const char *value)
OrganizationEvent & WithEventScopeCode(EventScopeCode &&value)
OrganizationEvent & WithEventTypeCode(const Aws::String &value)
const Aws::String & GetEventTypeCode() const
OrganizationEvent & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
OrganizationEvent & WithService(Aws::String &&value)
const Aws::String & GetArn() const
OrganizationEvent & WithArn(const Aws::String &value)
void SetStatusCode(EventStatusCode &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetRegion(const Aws::String &value)
OrganizationEvent & WithEventTypeCategory(EventTypeCategory &&value)
void SetEventScopeCode(EventScopeCode &&value)
OrganizationEvent & WithArn(const char *value)
AWS_HEALTH_API OrganizationEvent(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
const EventTypeCategory & GetEventTypeCategory() const
OrganizationEvent & WithArn(Aws::String &&value)
OrganizationEvent & WithService(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
OrganizationEvent & WithEndTime(const Aws::Utils::DateTime &value)
const EventScopeCode & GetEventScopeCode() const
OrganizationEvent & WithStatusCode(const EventStatusCode &value)
void SetEndTime(Aws::Utils::DateTime &&value)
OrganizationEvent & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetEventTypeCategory(const EventTypeCategory &value)
void SetEventScopeCode(const EventScopeCode &value)
const Aws::String & GetRegion() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
OrganizationEvent & WithStartTime(Aws::Utils::DateTime &&value)
OrganizationEvent & WithEventTypeCode(Aws::String &&value)
OrganizationEvent & WithStatusCode(EventStatusCode &&value)
OrganizationEvent & WithStartTime(const Aws::Utils::DateTime &value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationEvent & WithService(const char *value)
OrganizationEvent & WithEventScopeCode(const EventScopeCode &value)
void SetArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue