AWS SDK for C++

AWS SDK for C++ Version 1.11.609

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() = default;
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 template<typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
59 template<typename ArnT = Aws::String>
60 OrganizationEvent& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
62
64
68 inline const Aws::String& GetService() const { return m_service; }
69 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
70 template<typename ServiceT = Aws::String>
71 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
72 template<typename ServiceT = Aws::String>
73 OrganizationEvent& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
75
77
82 inline const Aws::String& GetEventTypeCode() const { return m_eventTypeCode; }
83 inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
84 template<typename EventTypeCodeT = Aws::String>
85 void SetEventTypeCode(EventTypeCodeT&& value) { m_eventTypeCodeHasBeenSet = true; m_eventTypeCode = std::forward<EventTypeCodeT>(value); }
86 template<typename EventTypeCodeT = Aws::String>
87 OrganizationEvent& WithEventTypeCode(EventTypeCodeT&& value) { SetEventTypeCode(std::forward<EventTypeCodeT>(value)); return *this;}
89
91
96 inline EventTypeCategory GetEventTypeCategory() const { return m_eventTypeCategory; }
97 inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
98 inline void SetEventTypeCategory(EventTypeCategory value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = value; }
101
103
117 inline EventScopeCode GetEventScopeCode() const { return m_eventScopeCode; }
118 inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
119 inline void SetEventScopeCode(EventScopeCode value) { m_eventScopeCodeHasBeenSet = true; m_eventScopeCode = value; }
122
124
127 inline const Aws::String& GetRegion() const { return m_region; }
128 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
129 template<typename RegionT = Aws::String>
130 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
131 template<typename RegionT = Aws::String>
132 OrganizationEvent& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
140 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
141 template<typename StartTimeT = Aws::Utils::DateTime>
142 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
143 template<typename StartTimeT = Aws::Utils::DateTime>
144 OrganizationEvent& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
152 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
153 template<typename EndTimeT = Aws::Utils::DateTime>
154 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
155 template<typename EndTimeT = Aws::Utils::DateTime>
156 OrganizationEvent& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
164 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
165 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
166 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
167 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
168 OrganizationEvent& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
170
172
176 inline EventStatusCode GetStatusCode() const { return m_statusCode; }
177 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
178 inline void SetStatusCode(EventStatusCode value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
179 inline OrganizationEvent& WithStatusCode(EventStatusCode value) { SetStatusCode(value); return *this;}
181 private:
182
183 Aws::String m_arn;
184 bool m_arnHasBeenSet = false;
185
186 Aws::String m_service;
187 bool m_serviceHasBeenSet = false;
188
189 Aws::String m_eventTypeCode;
190 bool m_eventTypeCodeHasBeenSet = false;
191
193 bool m_eventTypeCategoryHasBeenSet = false;
194
195 EventScopeCode m_eventScopeCode{EventScopeCode::NOT_SET};
196 bool m_eventScopeCodeHasBeenSet = false;
197
198 Aws::String m_region;
199 bool m_regionHasBeenSet = false;
200
201 Aws::Utils::DateTime m_startTime{};
202 bool m_startTimeHasBeenSet = false;
203
204 Aws::Utils::DateTime m_endTime{};
205 bool m_endTimeHasBeenSet = false;
206
207 Aws::Utils::DateTime m_lastUpdatedTime{};
208 bool m_lastUpdatedTimeHasBeenSet = false;
209
211 bool m_statusCodeHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Health
216} // namespace Aws
void SetEventTypeCategory(EventTypeCategory value)
AWS_HEALTH_API OrganizationEvent()=default
OrganizationEvent & WithEventTypeCode(EventTypeCodeT &&value)
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)
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)
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
Aws::Utils::Json::JsonValue JsonValue