AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeActionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/ActionSource.h>
13#include <aws/sagemaker/model/ActionStatus.h>
14#include <aws/sagemaker/model/MetadataProperties.h>
15#include <aws/sagemaker/model/UserContext.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker {
29namespace Model {
31 public:
32 AWS_SAGEMAKER_API DescribeActionResult() = default;
35
37
40 inline const Aws::String& GetActionName() const { return m_actionName; }
41 template <typename ActionNameT = Aws::String>
42 void SetActionName(ActionNameT&& value) {
43 m_actionNameHasBeenSet = true;
44 m_actionName = std::forward<ActionNameT>(value);
45 }
46 template <typename ActionNameT = Aws::String>
47 DescribeActionResult& WithActionName(ActionNameT&& value) {
48 SetActionName(std::forward<ActionNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetActionArn() const { return m_actionArn; }
58 template <typename ActionArnT = Aws::String>
59 void SetActionArn(ActionArnT&& value) {
60 m_actionArnHasBeenSet = true;
61 m_actionArn = std::forward<ActionArnT>(value);
62 }
63 template <typename ActionArnT = Aws::String>
64 DescribeActionResult& WithActionArn(ActionArnT&& value) {
65 SetActionArn(std::forward<ActionArnT>(value));
66 return *this;
67 }
69
71
74 inline const ActionSource& GetSource() const { return m_source; }
75 template <typename SourceT = ActionSource>
76 void SetSource(SourceT&& value) {
77 m_sourceHasBeenSet = true;
78 m_source = std::forward<SourceT>(value);
79 }
80 template <typename SourceT = ActionSource>
81 DescribeActionResult& WithSource(SourceT&& value) {
82 SetSource(std::forward<SourceT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetActionType() const { return m_actionType; }
92 template <typename ActionTypeT = Aws::String>
93 void SetActionType(ActionTypeT&& value) {
94 m_actionTypeHasBeenSet = true;
95 m_actionType = std::forward<ActionTypeT>(value);
96 }
97 template <typename ActionTypeT = Aws::String>
98 DescribeActionResult& WithActionType(ActionTypeT&& value) {
99 SetActionType(std::forward<ActionTypeT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 template <typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) {
111 m_descriptionHasBeenSet = true;
112 m_description = std::forward<DescriptionT>(value);
113 }
114 template <typename DescriptionT = Aws::String>
115 DescribeActionResult& WithDescription(DescriptionT&& value) {
116 SetDescription(std::forward<DescriptionT>(value));
117 return *this;
118 }
120
122
125 inline ActionStatus GetStatus() const { return m_status; }
126 inline void SetStatus(ActionStatus value) {
127 m_statusHasBeenSet = true;
128 m_status = value;
129 }
131 SetStatus(value);
132 return *this;
133 }
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
141 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
142 void SetProperties(PropertiesT&& value) {
143 m_propertiesHasBeenSet = true;
144 m_properties = std::forward<PropertiesT>(value);
145 }
146 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
147 DescribeActionResult& WithProperties(PropertiesT&& value) {
148 SetProperties(std::forward<PropertiesT>(value));
149 return *this;
150 }
151 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
152 DescribeActionResult& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
153 m_propertiesHasBeenSet = true;
154 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
164 template <typename CreationTimeT = Aws::Utils::DateTime>
165 void SetCreationTime(CreationTimeT&& value) {
166 m_creationTimeHasBeenSet = true;
167 m_creationTime = std::forward<CreationTimeT>(value);
168 }
169 template <typename CreationTimeT = Aws::Utils::DateTime>
170 DescribeActionResult& WithCreationTime(CreationTimeT&& value) {
171 SetCreationTime(std::forward<CreationTimeT>(value));
172 return *this;
173 }
175
177
178 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
179 template <typename CreatedByT = UserContext>
180 void SetCreatedBy(CreatedByT&& value) {
181 m_createdByHasBeenSet = true;
182 m_createdBy = std::forward<CreatedByT>(value);
183 }
184 template <typename CreatedByT = UserContext>
185 DescribeActionResult& WithCreatedBy(CreatedByT&& value) {
186 SetCreatedBy(std::forward<CreatedByT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
196 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
197 void SetLastModifiedTime(LastModifiedTimeT&& value) {
198 m_lastModifiedTimeHasBeenSet = true;
199 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
200 }
201 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
202 DescribeActionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
203 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
204 return *this;
205 }
207
209
210 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
211 template <typename LastModifiedByT = UserContext>
212 void SetLastModifiedBy(LastModifiedByT&& value) {
213 m_lastModifiedByHasBeenSet = true;
214 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
215 }
216 template <typename LastModifiedByT = UserContext>
217 DescribeActionResult& WithLastModifiedBy(LastModifiedByT&& value) {
218 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
219 return *this;
220 }
222
224
225 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
226 template <typename MetadataPropertiesT = MetadataProperties>
227 void SetMetadataProperties(MetadataPropertiesT&& value) {
228 m_metadataPropertiesHasBeenSet = true;
229 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
230 }
231 template <typename MetadataPropertiesT = MetadataProperties>
232 DescribeActionResult& WithMetadataProperties(MetadataPropertiesT&& value) {
233 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
243 template <typename LineageGroupArnT = Aws::String>
244 void SetLineageGroupArn(LineageGroupArnT&& value) {
245 m_lineageGroupArnHasBeenSet = true;
246 m_lineageGroupArn = std::forward<LineageGroupArnT>(value);
247 }
248 template <typename LineageGroupArnT = Aws::String>
249 DescribeActionResult& WithLineageGroupArn(LineageGroupArnT&& value) {
250 SetLineageGroupArn(std::forward<LineageGroupArnT>(value));
251 return *this;
252 }
254
256
257 inline const Aws::String& GetRequestId() const { return m_requestId; }
258 template <typename RequestIdT = Aws::String>
259 void SetRequestId(RequestIdT&& value) {
260 m_requestIdHasBeenSet = true;
261 m_requestId = std::forward<RequestIdT>(value);
262 }
263 template <typename RequestIdT = Aws::String>
264 DescribeActionResult& WithRequestId(RequestIdT&& value) {
265 SetRequestId(std::forward<RequestIdT>(value));
266 return *this;
267 }
269 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
270
271 private:
272 Aws::String m_actionName;
273
274 Aws::String m_actionArn;
275
276 ActionSource m_source;
277
278 Aws::String m_actionType;
279
280 Aws::String m_description;
281
283
285
286 Aws::Utils::DateTime m_creationTime{};
287
288 UserContext m_createdBy;
289
290 Aws::Utils::DateTime m_lastModifiedTime{};
291
292 UserContext m_lastModifiedBy;
293
294 MetadataProperties m_metadataProperties;
295
296 Aws::String m_lineageGroupArn;
297
298 Aws::String m_requestId;
299 Aws::Http::HttpResponseCode m_HttpResponseCode;
300 bool m_actionNameHasBeenSet = false;
301 bool m_actionArnHasBeenSet = false;
302 bool m_sourceHasBeenSet = false;
303 bool m_actionTypeHasBeenSet = false;
304 bool m_descriptionHasBeenSet = false;
305 bool m_statusHasBeenSet = false;
306 bool m_propertiesHasBeenSet = false;
307 bool m_creationTimeHasBeenSet = false;
308 bool m_createdByHasBeenSet = false;
309 bool m_lastModifiedTimeHasBeenSet = false;
310 bool m_lastModifiedByHasBeenSet = false;
311 bool m_metadataPropertiesHasBeenSet = false;
312 bool m_lineageGroupArnHasBeenSet = false;
313 bool m_requestIdHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace SageMaker
318} // namespace Aws
DescribeActionResult & WithLastModifiedBy(LastModifiedByT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SAGEMAKER_API DescribeActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SAGEMAKER_API DescribeActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeActionResult & WithActionArn(ActionArnT &&value)
DescribeActionResult & WithCreatedBy(CreatedByT &&value)
DescribeActionResult & WithSource(SourceT &&value)
DescribeActionResult & WithActionName(ActionNameT &&value)
DescribeActionResult & WithActionType(ActionTypeT &&value)
DescribeActionResult & WithStatus(ActionStatus value)
void SetMetadataProperties(MetadataPropertiesT &&value)
DescribeActionResult & WithCreationTime(CreationTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
const MetadataProperties & GetMetadataProperties() const
DescribeActionResult & WithLineageGroupArn(LineageGroupArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeActionResult & WithProperties(PropertiesT &&value)
DescribeActionResult & WithRequestId(RequestIdT &&value)
AWS_SAGEMAKER_API DescribeActionResult()=default
DescribeActionResult & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DescribeActionResult & WithMetadataProperties(MetadataPropertiesT &&value)
void SetLineageGroupArn(LineageGroupArnT &&value)
DescribeActionResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeActionResult & WithDescription(DescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue