AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
StartAutomationEventResult.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/EventStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizerAutomation {
24namespace Model {
26 public:
27 AWS_COMPUTEOPTIMIZERAUTOMATION_API StartAutomationEventResult() = default;
29 AWS_COMPUTEOPTIMIZERAUTOMATION_API StartAutomationEventResult& operator=(
31
33
36 inline const Aws::String& GetRecommendedActionId() const { return m_recommendedActionId; }
37 template <typename RecommendedActionIdT = Aws::String>
38 void SetRecommendedActionId(RecommendedActionIdT&& value) {
39 m_recommendedActionIdHasBeenSet = true;
40 m_recommendedActionId = std::forward<RecommendedActionIdT>(value);
41 }
42 template <typename RecommendedActionIdT = Aws::String>
43 StartAutomationEventResult& WithRecommendedActionId(RecommendedActionIdT&& value) {
44 SetRecommendedActionId(std::forward<RecommendedActionIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetEventId() const { return m_eventId; }
54 template <typename EventIdT = Aws::String>
55 void SetEventId(EventIdT&& value) {
56 m_eventIdHasBeenSet = true;
57 m_eventId = std::forward<EventIdT>(value);
58 }
59 template <typename EventIdT = Aws::String>
61 SetEventId(std::forward<EventIdT>(value));
62 return *this;
63 }
65
67
70 inline EventStatus GetEventStatus() const { return m_eventStatus; }
71 inline void SetEventStatus(EventStatus value) {
72 m_eventStatusHasBeenSet = true;
73 m_eventStatus = value;
74 }
76 SetEventStatus(value);
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::String m_recommendedActionId;
99
100 Aws::String m_eventId;
101
102 EventStatus m_eventStatus{EventStatus::NOT_SET};
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_recommendedActionIdHasBeenSet = false;
107 bool m_eventIdHasBeenSet = false;
108 bool m_eventStatusHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace ComputeOptimizerAutomation
114} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API StartAutomationEventResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COMPUTEOPTIMIZERAUTOMATION_API StartAutomationEventResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartAutomationEventResult & WithRecommendedActionId(RecommendedActionIdT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API StartAutomationEventResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue