1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/glue/Glue_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/glue/model/TaskStatusType.h>
10 #include <aws/glue/model/TaskRunProperties.h>
11 #include <aws/core/utils/DateTime.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23   class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace Glue
27 {
28 namespace Model
29 {
30   class AWS_GLUE_API GetMLTaskRunResult
31   {
32   public:
33     GetMLTaskRunResult();
34     GetMLTaskRunResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35     GetMLTaskRunResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
36 
37 
38     /**
39      * <p>The unique identifier of the task run.</p>
40      */
GetTransformId()41     inline const Aws::String& GetTransformId() const{ return m_transformId; }
42 
43     /**
44      * <p>The unique identifier of the task run.</p>
45      */
SetTransformId(const Aws::String & value)46     inline void SetTransformId(const Aws::String& value) { m_transformId = value; }
47 
48     /**
49      * <p>The unique identifier of the task run.</p>
50      */
SetTransformId(Aws::String && value)51     inline void SetTransformId(Aws::String&& value) { m_transformId = std::move(value); }
52 
53     /**
54      * <p>The unique identifier of the task run.</p>
55      */
SetTransformId(const char * value)56     inline void SetTransformId(const char* value) { m_transformId.assign(value); }
57 
58     /**
59      * <p>The unique identifier of the task run.</p>
60      */
WithTransformId(const Aws::String & value)61     inline GetMLTaskRunResult& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;}
62 
63     /**
64      * <p>The unique identifier of the task run.</p>
65      */
WithTransformId(Aws::String && value)66     inline GetMLTaskRunResult& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;}
67 
68     /**
69      * <p>The unique identifier of the task run.</p>
70      */
WithTransformId(const char * value)71     inline GetMLTaskRunResult& WithTransformId(const char* value) { SetTransformId(value); return *this;}
72 
73 
74     /**
75      * <p>The unique run identifier associated with this run.</p>
76      */
GetTaskRunId()77     inline const Aws::String& GetTaskRunId() const{ return m_taskRunId; }
78 
79     /**
80      * <p>The unique run identifier associated with this run.</p>
81      */
SetTaskRunId(const Aws::String & value)82     inline void SetTaskRunId(const Aws::String& value) { m_taskRunId = value; }
83 
84     /**
85      * <p>The unique run identifier associated with this run.</p>
86      */
SetTaskRunId(Aws::String && value)87     inline void SetTaskRunId(Aws::String&& value) { m_taskRunId = std::move(value); }
88 
89     /**
90      * <p>The unique run identifier associated with this run.</p>
91      */
SetTaskRunId(const char * value)92     inline void SetTaskRunId(const char* value) { m_taskRunId.assign(value); }
93 
94     /**
95      * <p>The unique run identifier associated with this run.</p>
96      */
WithTaskRunId(const Aws::String & value)97     inline GetMLTaskRunResult& WithTaskRunId(const Aws::String& value) { SetTaskRunId(value); return *this;}
98 
99     /**
100      * <p>The unique run identifier associated with this run.</p>
101      */
WithTaskRunId(Aws::String && value)102     inline GetMLTaskRunResult& WithTaskRunId(Aws::String&& value) { SetTaskRunId(std::move(value)); return *this;}
103 
104     /**
105      * <p>The unique run identifier associated with this run.</p>
106      */
WithTaskRunId(const char * value)107     inline GetMLTaskRunResult& WithTaskRunId(const char* value) { SetTaskRunId(value); return *this;}
108 
109 
110     /**
111      * <p>The status for this task run.</p>
112      */
GetStatus()113     inline const TaskStatusType& GetStatus() const{ return m_status; }
114 
115     /**
116      * <p>The status for this task run.</p>
117      */
SetStatus(const TaskStatusType & value)118     inline void SetStatus(const TaskStatusType& value) { m_status = value; }
119 
120     /**
121      * <p>The status for this task run.</p>
122      */
SetStatus(TaskStatusType && value)123     inline void SetStatus(TaskStatusType&& value) { m_status = std::move(value); }
124 
125     /**
126      * <p>The status for this task run.</p>
127      */
WithStatus(const TaskStatusType & value)128     inline GetMLTaskRunResult& WithStatus(const TaskStatusType& value) { SetStatus(value); return *this;}
129 
130     /**
131      * <p>The status for this task run.</p>
132      */
WithStatus(TaskStatusType && value)133     inline GetMLTaskRunResult& WithStatus(TaskStatusType&& value) { SetStatus(std::move(value)); return *this;}
134 
135 
136     /**
137      * <p>The names of the log groups that are associated with the task run.</p>
138      */
GetLogGroupName()139     inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
140 
141     /**
142      * <p>The names of the log groups that are associated with the task run.</p>
143      */
SetLogGroupName(const Aws::String & value)144     inline void SetLogGroupName(const Aws::String& value) { m_logGroupName = value; }
145 
146     /**
147      * <p>The names of the log groups that are associated with the task run.</p>
148      */
SetLogGroupName(Aws::String && value)149     inline void SetLogGroupName(Aws::String&& value) { m_logGroupName = std::move(value); }
150 
151     /**
152      * <p>The names of the log groups that are associated with the task run.</p>
153      */
SetLogGroupName(const char * value)154     inline void SetLogGroupName(const char* value) { m_logGroupName.assign(value); }
155 
156     /**
157      * <p>The names of the log groups that are associated with the task run.</p>
158      */
WithLogGroupName(const Aws::String & value)159     inline GetMLTaskRunResult& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
160 
161     /**
162      * <p>The names of the log groups that are associated with the task run.</p>
163      */
WithLogGroupName(Aws::String && value)164     inline GetMLTaskRunResult& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
165 
166     /**
167      * <p>The names of the log groups that are associated with the task run.</p>
168      */
WithLogGroupName(const char * value)169     inline GetMLTaskRunResult& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
170 
171 
172     /**
173      * <p>The list of properties that are associated with the task run.</p>
174      */
GetProperties()175     inline const TaskRunProperties& GetProperties() const{ return m_properties; }
176 
177     /**
178      * <p>The list of properties that are associated with the task run.</p>
179      */
SetProperties(const TaskRunProperties & value)180     inline void SetProperties(const TaskRunProperties& value) { m_properties = value; }
181 
182     /**
183      * <p>The list of properties that are associated with the task run.</p>
184      */
SetProperties(TaskRunProperties && value)185     inline void SetProperties(TaskRunProperties&& value) { m_properties = std::move(value); }
186 
187     /**
188      * <p>The list of properties that are associated with the task run.</p>
189      */
WithProperties(const TaskRunProperties & value)190     inline GetMLTaskRunResult& WithProperties(const TaskRunProperties& value) { SetProperties(value); return *this;}
191 
192     /**
193      * <p>The list of properties that are associated with the task run.</p>
194      */
WithProperties(TaskRunProperties && value)195     inline GetMLTaskRunResult& WithProperties(TaskRunProperties&& value) { SetProperties(std::move(value)); return *this;}
196 
197 
198     /**
199      * <p>The error strings that are associated with the task run.</p>
200      */
GetErrorString()201     inline const Aws::String& GetErrorString() const{ return m_errorString; }
202 
203     /**
204      * <p>The error strings that are associated with the task run.</p>
205      */
SetErrorString(const Aws::String & value)206     inline void SetErrorString(const Aws::String& value) { m_errorString = value; }
207 
208     /**
209      * <p>The error strings that are associated with the task run.</p>
210      */
SetErrorString(Aws::String && value)211     inline void SetErrorString(Aws::String&& value) { m_errorString = std::move(value); }
212 
213     /**
214      * <p>The error strings that are associated with the task run.</p>
215      */
SetErrorString(const char * value)216     inline void SetErrorString(const char* value) { m_errorString.assign(value); }
217 
218     /**
219      * <p>The error strings that are associated with the task run.</p>
220      */
WithErrorString(const Aws::String & value)221     inline GetMLTaskRunResult& WithErrorString(const Aws::String& value) { SetErrorString(value); return *this;}
222 
223     /**
224      * <p>The error strings that are associated with the task run.</p>
225      */
WithErrorString(Aws::String && value)226     inline GetMLTaskRunResult& WithErrorString(Aws::String&& value) { SetErrorString(std::move(value)); return *this;}
227 
228     /**
229      * <p>The error strings that are associated with the task run.</p>
230      */
WithErrorString(const char * value)231     inline GetMLTaskRunResult& WithErrorString(const char* value) { SetErrorString(value); return *this;}
232 
233 
234     /**
235      * <p>The date and time when this task run started.</p>
236      */
GetStartedOn()237     inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
238 
239     /**
240      * <p>The date and time when this task run started.</p>
241      */
SetStartedOn(const Aws::Utils::DateTime & value)242     inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOn = value; }
243 
244     /**
245      * <p>The date and time when this task run started.</p>
246      */
SetStartedOn(Aws::Utils::DateTime && value)247     inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOn = std::move(value); }
248 
249     /**
250      * <p>The date and time when this task run started.</p>
251      */
WithStartedOn(const Aws::Utils::DateTime & value)252     inline GetMLTaskRunResult& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
253 
254     /**
255      * <p>The date and time when this task run started.</p>
256      */
WithStartedOn(Aws::Utils::DateTime && value)257     inline GetMLTaskRunResult& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
258 
259 
260     /**
261      * <p>The date and time when this task run was last modified.</p>
262      */
GetLastModifiedOn()263     inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; }
264 
265     /**
266      * <p>The date and time when this task run was last modified.</p>
267      */
SetLastModifiedOn(const Aws::Utils::DateTime & value)268     inline void SetLastModifiedOn(const Aws::Utils::DateTime& value) { m_lastModifiedOn = value; }
269 
270     /**
271      * <p>The date and time when this task run was last modified.</p>
272      */
SetLastModifiedOn(Aws::Utils::DateTime && value)273     inline void SetLastModifiedOn(Aws::Utils::DateTime&& value) { m_lastModifiedOn = std::move(value); }
274 
275     /**
276      * <p>The date and time when this task run was last modified.</p>
277      */
WithLastModifiedOn(const Aws::Utils::DateTime & value)278     inline GetMLTaskRunResult& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;}
279 
280     /**
281      * <p>The date and time when this task run was last modified.</p>
282      */
WithLastModifiedOn(Aws::Utils::DateTime && value)283     inline GetMLTaskRunResult& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;}
284 
285 
286     /**
287      * <p>The date and time when this task run was completed.</p>
288      */
GetCompletedOn()289     inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
290 
291     /**
292      * <p>The date and time when this task run was completed.</p>
293      */
SetCompletedOn(const Aws::Utils::DateTime & value)294     inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOn = value; }
295 
296     /**
297      * <p>The date and time when this task run was completed.</p>
298      */
SetCompletedOn(Aws::Utils::DateTime && value)299     inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOn = std::move(value); }
300 
301     /**
302      * <p>The date and time when this task run was completed.</p>
303      */
WithCompletedOn(const Aws::Utils::DateTime & value)304     inline GetMLTaskRunResult& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
305 
306     /**
307      * <p>The date and time when this task run was completed.</p>
308      */
WithCompletedOn(Aws::Utils::DateTime && value)309     inline GetMLTaskRunResult& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
310 
311 
312     /**
313      * <p>The amount of time (in seconds) that the task run consumed resources.</p>
314      */
GetExecutionTime()315     inline int GetExecutionTime() const{ return m_executionTime; }
316 
317     /**
318      * <p>The amount of time (in seconds) that the task run consumed resources.</p>
319      */
SetExecutionTime(int value)320     inline void SetExecutionTime(int value) { m_executionTime = value; }
321 
322     /**
323      * <p>The amount of time (in seconds) that the task run consumed resources.</p>
324      */
WithExecutionTime(int value)325     inline GetMLTaskRunResult& WithExecutionTime(int value) { SetExecutionTime(value); return *this;}
326 
327   private:
328 
329     Aws::String m_transformId;
330 
331     Aws::String m_taskRunId;
332 
333     TaskStatusType m_status;
334 
335     Aws::String m_logGroupName;
336 
337     TaskRunProperties m_properties;
338 
339     Aws::String m_errorString;
340 
341     Aws::Utils::DateTime m_startedOn;
342 
343     Aws::Utils::DateTime m_lastModifiedOn;
344 
345     Aws::Utils::DateTime m_completedOn;
346 
347     int m_executionTime;
348   };
349 
350 } // namespace Model
351 } // namespace Glue
352 } // namespace Aws
353