AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
GetAutomationEventResult.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/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ComputeOptimizerAutomation {
28namespace Model {
30 public:
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationEventResult() = default;
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationEventResult& operator=(
35
37
40 inline const Aws::String& GetEventId() const { return m_eventId; }
41 template <typename EventIdT = Aws::String>
42 void SetEventId(EventIdT&& value) {
43 m_eventIdHasBeenSet = true;
44 m_eventId = std::forward<EventIdT>(value);
45 }
46 template <typename EventIdT = Aws::String>
48 SetEventId(std::forward<EventIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
58 template <typename EventDescriptionT = Aws::String>
59 void SetEventDescription(EventDescriptionT&& value) {
60 m_eventDescriptionHasBeenSet = true;
61 m_eventDescription = std::forward<EventDescriptionT>(value);
62 }
63 template <typename EventDescriptionT = Aws::String>
64 GetAutomationEventResult& WithEventDescription(EventDescriptionT&& value) {
65 SetEventDescription(std::forward<EventDescriptionT>(value));
66 return *this;
67 }
69
71
74 inline EventType GetEventType() const { return m_eventType; }
75 inline void SetEventType(EventType value) {
76 m_eventTypeHasBeenSet = true;
77 m_eventType = value;
78 }
80 SetEventType(value);
81 return *this;
82 }
84
86
89 inline EventStatus GetEventStatus() const { return m_eventStatus; }
90 inline void SetEventStatus(EventStatus value) {
91 m_eventStatusHasBeenSet = true;
92 m_eventStatus = value;
93 }
95 SetEventStatus(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetEventStatusReason() const { return m_eventStatusReason; }
105 template <typename EventStatusReasonT = Aws::String>
106 void SetEventStatusReason(EventStatusReasonT&& value) {
107 m_eventStatusReasonHasBeenSet = true;
108 m_eventStatusReason = std::forward<EventStatusReasonT>(value);
109 }
110 template <typename EventStatusReasonT = Aws::String>
111 GetAutomationEventResult& WithEventStatusReason(EventStatusReasonT&& value) {
112 SetEventStatusReason(std::forward<EventStatusReasonT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
123 template <typename ResourceArnT = Aws::String>
124 void SetResourceArn(ResourceArnT&& value) {
125 m_resourceArnHasBeenSet = true;
126 m_resourceArn = std::forward<ResourceArnT>(value);
127 }
128 template <typename ResourceArnT = Aws::String>
130 SetResourceArn(std::forward<ResourceArnT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetResourceId() const { return m_resourceId; }
140 template <typename ResourceIdT = Aws::String>
141 void SetResourceId(ResourceIdT&& value) {
142 m_resourceIdHasBeenSet = true;
143 m_resourceId = std::forward<ResourceIdT>(value);
144 }
145 template <typename ResourceIdT = Aws::String>
147 SetResourceId(std::forward<ResourceIdT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetRecommendedActionId() const { return m_recommendedActionId; }
157 template <typename RecommendedActionIdT = Aws::String>
158 void SetRecommendedActionId(RecommendedActionIdT&& value) {
159 m_recommendedActionIdHasBeenSet = true;
160 m_recommendedActionId = std::forward<RecommendedActionIdT>(value);
161 }
162 template <typename RecommendedActionIdT = Aws::String>
163 GetAutomationEventResult& WithRecommendedActionId(RecommendedActionIdT&& value) {
164 SetRecommendedActionId(std::forward<RecommendedActionIdT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetAccountId() const { return m_accountId; }
174 template <typename AccountIdT = Aws::String>
175 void SetAccountId(AccountIdT&& value) {
176 m_accountIdHasBeenSet = true;
177 m_accountId = std::forward<AccountIdT>(value);
178 }
179 template <typename AccountIdT = Aws::String>
181 SetAccountId(std::forward<AccountIdT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetRegion() const { return m_region; }
191 template <typename RegionT = Aws::String>
192 void SetRegion(RegionT&& value) {
193 m_regionHasBeenSet = true;
194 m_region = std::forward<RegionT>(value);
195 }
196 template <typename RegionT = Aws::String>
198 SetRegion(std::forward<RegionT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetRuleId() const { return m_ruleId; }
208 template <typename RuleIdT = Aws::String>
209 void SetRuleId(RuleIdT&& value) {
210 m_ruleIdHasBeenSet = true;
211 m_ruleId = std::forward<RuleIdT>(value);
212 }
213 template <typename RuleIdT = Aws::String>
215 SetRuleId(std::forward<RuleIdT>(value));
216 return *this;
217 }
219
221
224 inline ResourceType GetResourceType() const { return m_resourceType; }
225 inline void SetResourceType(ResourceType value) {
226 m_resourceTypeHasBeenSet = true;
227 m_resourceType = value;
228 }
230 SetResourceType(value);
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
240 template <typename CreatedTimestampT = Aws::Utils::DateTime>
241 void SetCreatedTimestamp(CreatedTimestampT&& value) {
242 m_createdTimestampHasBeenSet = true;
243 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
244 }
245 template <typename CreatedTimestampT = Aws::Utils::DateTime>
246 GetAutomationEventResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
247 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
257 template <typename CompletedTimestampT = Aws::Utils::DateTime>
258 void SetCompletedTimestamp(CompletedTimestampT&& value) {
259 m_completedTimestampHasBeenSet = true;
260 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
261 }
262 template <typename CompletedTimestampT = Aws::Utils::DateTime>
263 GetAutomationEventResult& WithCompletedTimestamp(CompletedTimestampT&& value) {
264 SetCompletedTimestamp(std::forward<CompletedTimestampT>(value));
265 return *this;
266 }
268
270
271 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
272 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
273 void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
274 m_estimatedMonthlySavingsHasBeenSet = true;
275 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
276 }
277 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
278 GetAutomationEventResult& WithEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
279 SetEstimatedMonthlySavings(std::forward<EstimatedMonthlySavingsT>(value));
280 return *this;
281 }
283
285
286 inline const Aws::String& GetRequestId() const { return m_requestId; }
287 template <typename RequestIdT = Aws::String>
288 void SetRequestId(RequestIdT&& value) {
289 m_requestIdHasBeenSet = true;
290 m_requestId = std::forward<RequestIdT>(value);
291 }
292 template <typename RequestIdT = Aws::String>
294 SetRequestId(std::forward<RequestIdT>(value));
295 return *this;
296 }
298 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
299
300 private:
301 Aws::String m_eventId;
302
303 Aws::String m_eventDescription;
304
305 EventType m_eventType{EventType::NOT_SET};
306
307 EventStatus m_eventStatus{EventStatus::NOT_SET};
308
309 Aws::String m_eventStatusReason;
310
311 Aws::String m_resourceArn;
312
313 Aws::String m_resourceId;
314
315 Aws::String m_recommendedActionId;
316
317 Aws::String m_accountId;
318
319 Aws::String m_region;
320
321 Aws::String m_ruleId;
322
323 ResourceType m_resourceType{ResourceType::NOT_SET};
324
325 Aws::Utils::DateTime m_createdTimestamp{};
326
327 Aws::Utils::DateTime m_completedTimestamp{};
328
329 EstimatedMonthlySavings m_estimatedMonthlySavings;
330
331 Aws::String m_requestId;
332 Aws::Http::HttpResponseCode m_HttpResponseCode;
333 bool m_eventIdHasBeenSet = false;
334 bool m_eventDescriptionHasBeenSet = false;
335 bool m_eventTypeHasBeenSet = false;
336 bool m_eventStatusHasBeenSet = false;
337 bool m_eventStatusReasonHasBeenSet = false;
338 bool m_resourceArnHasBeenSet = false;
339 bool m_resourceIdHasBeenSet = false;
340 bool m_recommendedActionIdHasBeenSet = false;
341 bool m_accountIdHasBeenSet = false;
342 bool m_regionHasBeenSet = false;
343 bool m_ruleIdHasBeenSet = false;
344 bool m_resourceTypeHasBeenSet = false;
345 bool m_createdTimestampHasBeenSet = false;
346 bool m_completedTimestampHasBeenSet = false;
347 bool m_estimatedMonthlySavingsHasBeenSet = false;
348 bool m_requestIdHasBeenSet = false;
349};
350
351} // namespace Model
352} // namespace ComputeOptimizerAutomation
353} // namespace Aws
GetAutomationEventResult & WithRecommendedActionId(RecommendedActionIdT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationEventResult()=default
GetAutomationEventResult & WithEventDescription(EventDescriptionT &&value)
GetAutomationEventResult & WithEventStatusReason(EventStatusReasonT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationEventResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COMPUTEOPTIMIZERAUTOMATION_API GetAutomationEventResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutomationEventResult & WithResourceArn(ResourceArnT &&value)
GetAutomationEventResult & WithCreatedTimestamp(CreatedTimestampT &&value)
GetAutomationEventResult & WithCompletedTimestamp(CompletedTimestampT &&value)
GetAutomationEventResult & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue