AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateScheduleActionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elementalinference/ElementalInference_EXPORTS.h>
11#include <aws/elementalinference/model/ScheduleActionError.h>
12#include <aws/elementalinference/model/ScheduleActionOperation.h>
13#include <aws/elementalinference/model/ScheduleActionStartConfiguration.h>
14#include <aws/elementalinference/model/ScheduleActionStatus.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 ElementalInference {
28namespace Model {
30 public:
31 AWS_ELEMENTALINFERENCE_API CreateScheduleActionResult() = default;
34
36
39 inline const Aws::String& GetActionName() const { return m_actionName; }
40 template <typename ActionNameT = Aws::String>
41 void SetActionName(ActionNameT&& value) {
42 m_actionNameHasBeenSet = true;
43 m_actionName = std::forward<ActionNameT>(value);
44 }
45 template <typename ActionNameT = Aws::String>
47 SetActionName(std::forward<ActionNameT>(value));
48 return *this;
49 }
51
53
56 inline const ScheduleActionStartConfiguration& GetStartConfiguration() const { return m_startConfiguration; }
57 template <typename StartConfigurationT = ScheduleActionStartConfiguration>
58 void SetStartConfiguration(StartConfigurationT&& value) {
59 m_startConfigurationHasBeenSet = true;
60 m_startConfiguration = std::forward<StartConfigurationT>(value);
61 }
62 template <typename StartConfigurationT = ScheduleActionStartConfiguration>
63 CreateScheduleActionResult& WithStartConfiguration(StartConfigurationT&& value) {
64 SetStartConfiguration(std::forward<StartConfigurationT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<ScheduleActionOperation>& GetOperations() const { return m_operations; }
74 template <typename OperationsT = Aws::Vector<ScheduleActionOperation>>
75 void SetOperations(OperationsT&& value) {
76 m_operationsHasBeenSet = true;
77 m_operations = std::forward<OperationsT>(value);
78 }
79 template <typename OperationsT = Aws::Vector<ScheduleActionOperation>>
81 SetOperations(std::forward<OperationsT>(value));
82 return *this;
83 }
84 template <typename OperationsT = ScheduleActionOperation>
86 m_operationsHasBeenSet = true;
87 m_operations.emplace_back(std::forward<OperationsT>(value));
88 return *this;
89 }
91
93
97 inline ScheduleActionStatus GetStatus() const { return m_status; }
98 inline void SetStatus(ScheduleActionStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
113 inline const ScheduleActionError& GetError() const { return m_error; }
114 template <typename ErrorT = ScheduleActionError>
115 void SetError(ErrorT&& value) {
116 m_errorHasBeenSet = true;
117 m_error = std::forward<ErrorT>(value);
118 }
119 template <typename ErrorT = ScheduleActionError>
121 SetError(std::forward<ErrorT>(value));
122 return *this;
123 }
125
127
128 inline const Aws::String& GetRequestId() const { return m_requestId; }
129 template <typename RequestIdT = Aws::String>
130 void SetRequestId(RequestIdT&& value) {
131 m_requestIdHasBeenSet = true;
132 m_requestId = std::forward<RequestIdT>(value);
133 }
134 template <typename RequestIdT = Aws::String>
136 SetRequestId(std::forward<RequestIdT>(value));
137 return *this;
138 }
140 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
141
142 private:
143 Aws::String m_actionName;
144
145 ScheduleActionStartConfiguration m_startConfiguration;
146
148
150
151 ScheduleActionError m_error;
152
153 Aws::String m_requestId;
154 Aws::Http::HttpResponseCode m_HttpResponseCode;
155 bool m_actionNameHasBeenSet = false;
156 bool m_startConfigurationHasBeenSet = false;
157 bool m_operationsHasBeenSet = false;
158 bool m_statusHasBeenSet = false;
159 bool m_errorHasBeenSet = false;
160 bool m_requestIdHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace ElementalInference
165} // namespace Aws
AWS_ELEMENTALINFERENCE_API CreateScheduleActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ELEMENTALINFERENCE_API CreateScheduleActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateScheduleActionResult & WithOperations(OperationsT &&value)
CreateScheduleActionResult & WithStartConfiguration(StartConfigurationT &&value)
CreateScheduleActionResult & WithStatus(ScheduleActionStatus value)
const ScheduleActionStartConfiguration & GetStartConfiguration() const
CreateScheduleActionResult & WithActionName(ActionNameT &&value)
CreateScheduleActionResult & AddOperations(OperationsT &&value)
const Aws::Vector< ScheduleActionOperation > & GetOperations() const
CreateScheduleActionResult & WithRequestId(RequestIdT &&value)
AWS_ELEMENTALINFERENCE_API CreateScheduleActionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue