AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
AutomationEvent.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/EstimatedMonthlySavings.h>
9#include <aws/compute-optimizer-automation/model/EventStatus.h>
10#include <aws/compute-optimizer-automation/model/EventType.h>
11#include <aws/compute-optimizer-automation/model/ResourceType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ComputeOptimizerAutomation {
25namespace Model {
26
34 public:
35 AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent() = default;
36 AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetEventId() const { return m_eventId; }
45 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
46 template <typename EventIdT = Aws::String>
47 void SetEventId(EventIdT&& value) {
48 m_eventIdHasBeenSet = true;
49 m_eventId = std::forward<EventIdT>(value);
50 }
51 template <typename EventIdT = Aws::String>
52 AutomationEvent& WithEventId(EventIdT&& value) {
53 SetEventId(std::forward<EventIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
63 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
64 template <typename EventDescriptionT = Aws::String>
65 void SetEventDescription(EventDescriptionT&& value) {
66 m_eventDescriptionHasBeenSet = true;
67 m_eventDescription = std::forward<EventDescriptionT>(value);
68 }
69 template <typename EventDescriptionT = Aws::String>
70 AutomationEvent& WithEventDescription(EventDescriptionT&& value) {
71 SetEventDescription(std::forward<EventDescriptionT>(value));
72 return *this;
73 }
75
77
80 inline EventType GetEventType() const { return m_eventType; }
81 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
82 inline void SetEventType(EventType value) {
83 m_eventTypeHasBeenSet = true;
84 m_eventType = value;
85 }
87 SetEventType(value);
88 return *this;
89 }
91
93
96 inline EventStatus GetEventStatus() const { return m_eventStatus; }
97 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
98 inline void SetEventStatus(EventStatus value) {
99 m_eventStatusHasBeenSet = true;
100 m_eventStatus = value;
101 }
103 SetEventStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetEventStatusReason() const { return m_eventStatusReason; }
113 inline bool EventStatusReasonHasBeenSet() const { return m_eventStatusReasonHasBeenSet; }
114 template <typename EventStatusReasonT = Aws::String>
115 void SetEventStatusReason(EventStatusReasonT&& value) {
116 m_eventStatusReasonHasBeenSet = true;
117 m_eventStatusReason = std::forward<EventStatusReasonT>(value);
118 }
119 template <typename EventStatusReasonT = Aws::String>
120 AutomationEvent& WithEventStatusReason(EventStatusReasonT&& value) {
121 SetEventStatusReason(std::forward<EventStatusReasonT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
132 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
133 template <typename ResourceArnT = Aws::String>
134 void SetResourceArn(ResourceArnT&& value) {
135 m_resourceArnHasBeenSet = true;
136 m_resourceArn = std::forward<ResourceArnT>(value);
137 }
138 template <typename ResourceArnT = Aws::String>
139 AutomationEvent& WithResourceArn(ResourceArnT&& value) {
140 SetResourceArn(std::forward<ResourceArnT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetResourceId() const { return m_resourceId; }
150 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
151 template <typename ResourceIdT = Aws::String>
152 void SetResourceId(ResourceIdT&& value) {
153 m_resourceIdHasBeenSet = true;
154 m_resourceId = std::forward<ResourceIdT>(value);
155 }
156 template <typename ResourceIdT = Aws::String>
157 AutomationEvent& WithResourceId(ResourceIdT&& value) {
158 SetResourceId(std::forward<ResourceIdT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetRecommendedActionId() const { return m_recommendedActionId; }
168 inline bool RecommendedActionIdHasBeenSet() const { return m_recommendedActionIdHasBeenSet; }
169 template <typename RecommendedActionIdT = Aws::String>
170 void SetRecommendedActionId(RecommendedActionIdT&& value) {
171 m_recommendedActionIdHasBeenSet = true;
172 m_recommendedActionId = std::forward<RecommendedActionIdT>(value);
173 }
174 template <typename RecommendedActionIdT = Aws::String>
175 AutomationEvent& WithRecommendedActionId(RecommendedActionIdT&& value) {
176 SetRecommendedActionId(std::forward<RecommendedActionIdT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::String& GetAccountId() const { return m_accountId; }
187 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
188 template <typename AccountIdT = Aws::String>
189 void SetAccountId(AccountIdT&& value) {
190 m_accountIdHasBeenSet = true;
191 m_accountId = std::forward<AccountIdT>(value);
192 }
193 template <typename AccountIdT = Aws::String>
194 AutomationEvent& WithAccountId(AccountIdT&& value) {
195 SetAccountId(std::forward<AccountIdT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetRegion() const { return m_region; }
205 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
206 template <typename RegionT = Aws::String>
207 void SetRegion(RegionT&& value) {
208 m_regionHasBeenSet = true;
209 m_region = std::forward<RegionT>(value);
210 }
211 template <typename RegionT = Aws::String>
212 AutomationEvent& WithRegion(RegionT&& value) {
213 SetRegion(std::forward<RegionT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetRuleId() const { return m_ruleId; }
223 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
224 template <typename RuleIdT = Aws::String>
225 void SetRuleId(RuleIdT&& value) {
226 m_ruleIdHasBeenSet = true;
227 m_ruleId = std::forward<RuleIdT>(value);
228 }
229 template <typename RuleIdT = Aws::String>
230 AutomationEvent& WithRuleId(RuleIdT&& value) {
231 SetRuleId(std::forward<RuleIdT>(value));
232 return *this;
233 }
235
237
240 inline ResourceType GetResourceType() const { return m_resourceType; }
241 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
242 inline void SetResourceType(ResourceType value) {
243 m_resourceTypeHasBeenSet = true;
244 m_resourceType = value;
245 }
247 SetResourceType(value);
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
257 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
258 template <typename CreatedTimestampT = Aws::Utils::DateTime>
259 void SetCreatedTimestamp(CreatedTimestampT&& value) {
260 m_createdTimestampHasBeenSet = true;
261 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
262 }
263 template <typename CreatedTimestampT = Aws::Utils::DateTime>
264 AutomationEvent& WithCreatedTimestamp(CreatedTimestampT&& value) {
265 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
275 inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
276 template <typename CompletedTimestampT = Aws::Utils::DateTime>
277 void SetCompletedTimestamp(CompletedTimestampT&& value) {
278 m_completedTimestampHasBeenSet = true;
279 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
280 }
281 template <typename CompletedTimestampT = Aws::Utils::DateTime>
282 AutomationEvent& WithCompletedTimestamp(CompletedTimestampT&& value) {
283 SetCompletedTimestamp(std::forward<CompletedTimestampT>(value));
284 return *this;
285 }
287
289
293 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
294 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
295 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
296 void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
297 m_estimatedMonthlySavingsHasBeenSet = true;
298 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
299 }
300 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
301 AutomationEvent& WithEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
302 SetEstimatedMonthlySavings(std::forward<EstimatedMonthlySavingsT>(value));
303 return *this;
304 }
306 private:
307 Aws::String m_eventId;
308
309 Aws::String m_eventDescription;
310
311 EventType m_eventType{EventType::NOT_SET};
312
313 EventStatus m_eventStatus{EventStatus::NOT_SET};
314
315 Aws::String m_eventStatusReason;
316
317 Aws::String m_resourceArn;
318
319 Aws::String m_resourceId;
320
321 Aws::String m_recommendedActionId;
322
323 Aws::String m_accountId;
324
325 Aws::String m_region;
326
327 Aws::String m_ruleId;
328
329 ResourceType m_resourceType{ResourceType::NOT_SET};
330
331 Aws::Utils::DateTime m_createdTimestamp{};
332
333 Aws::Utils::DateTime m_completedTimestamp{};
334
335 EstimatedMonthlySavings m_estimatedMonthlySavings;
336 bool m_eventIdHasBeenSet = false;
337 bool m_eventDescriptionHasBeenSet = false;
338 bool m_eventTypeHasBeenSet = false;
339 bool m_eventStatusHasBeenSet = false;
340 bool m_eventStatusReasonHasBeenSet = false;
341 bool m_resourceArnHasBeenSet = false;
342 bool m_resourceIdHasBeenSet = false;
343 bool m_recommendedActionIdHasBeenSet = false;
344 bool m_accountIdHasBeenSet = false;
345 bool m_regionHasBeenSet = false;
346 bool m_ruleIdHasBeenSet = false;
347 bool m_resourceTypeHasBeenSet = false;
348 bool m_createdTimestampHasBeenSet = false;
349 bool m_completedTimestampHasBeenSet = false;
350 bool m_estimatedMonthlySavingsHasBeenSet = false;
351};
352
353} // namespace Model
354} // namespace ComputeOptimizerAutomation
355} // namespace Aws
AutomationEvent & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent()=default
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const Aws::Utils::DateTime & GetCompletedTimestamp() const
AutomationEvent & WithResourceId(ResourceIdT &&value)
AutomationEvent & WithRecommendedActionId(RecommendedActionIdT &&value)
AutomationEvent & WithResourceType(ResourceType value)
void SetRecommendedActionId(RecommendedActionIdT &&value)
void SetCompletedTimestamp(CompletedTimestampT &&value)
AutomationEvent & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AutomationEvent & WithEventDescription(EventDescriptionT &&value)
AutomationEvent & WithEventStatusReason(EventStatusReasonT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AutomationEvent & WithEventStatus(EventStatus value)
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
AutomationEvent & WithResourceArn(ResourceArnT &&value)
AutomationEvent & WithAccountId(AccountIdT &&value)
AutomationEvent & WithCompletedTimestamp(CompletedTimestampT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API AutomationEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue