AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TaskRun.h
1
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
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
35 class TaskRun
36 {
37 public:
38 AWS_GLUE_API TaskRun() = default;
39 AWS_GLUE_API TaskRun(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const Aws::String& GetTransformId() const { return m_transformId; }
49 inline bool TransformIdHasBeenSet() const { return m_transformIdHasBeenSet; }
50 template<typename TransformIdT = Aws::String>
51 void SetTransformId(TransformIdT&& value) { m_transformIdHasBeenSet = true; m_transformId = std::forward<TransformIdT>(value); }
52 template<typename TransformIdT = Aws::String>
53 TaskRun& WithTransformId(TransformIdT&& value) { SetTransformId(std::forward<TransformIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetTaskRunId() const { return m_taskRunId; }
61 inline bool TaskRunIdHasBeenSet() const { return m_taskRunIdHasBeenSet; }
62 template<typename TaskRunIdT = Aws::String>
63 void SetTaskRunId(TaskRunIdT&& value) { m_taskRunIdHasBeenSet = true; m_taskRunId = std::forward<TaskRunIdT>(value); }
64 template<typename TaskRunIdT = Aws::String>
65 TaskRun& WithTaskRunId(TaskRunIdT&& value) { SetTaskRunId(std::forward<TaskRunIdT>(value)); return *this;}
67
69
72 inline TaskStatusType GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(TaskStatusType value) { m_statusHasBeenSet = true; m_status = value; }
75 inline TaskRun& WithStatus(TaskStatusType value) { SetStatus(value); return *this;}
77
79
83 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
84 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
85 template<typename LogGroupNameT = Aws::String>
86 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
87 template<typename LogGroupNameT = Aws::String>
88 TaskRun& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
90
92
95 inline const TaskRunProperties& GetProperties() const { return m_properties; }
96 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
97 template<typename PropertiesT = TaskRunProperties>
98 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
99 template<typename PropertiesT = TaskRunProperties>
100 TaskRun& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
102
104
107 inline const Aws::String& GetErrorString() const { return m_errorString; }
108 inline bool ErrorStringHasBeenSet() const { return m_errorStringHasBeenSet; }
109 template<typename ErrorStringT = Aws::String>
110 void SetErrorString(ErrorStringT&& value) { m_errorStringHasBeenSet = true; m_errorString = std::forward<ErrorStringT>(value); }
111 template<typename ErrorStringT = Aws::String>
112 TaskRun& WithErrorString(ErrorStringT&& value) { SetErrorString(std::forward<ErrorStringT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
120 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
121 template<typename StartedOnT = Aws::Utils::DateTime>
122 void SetStartedOn(StartedOnT&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::forward<StartedOnT>(value); }
123 template<typename StartedOnT = Aws::Utils::DateTime>
124 TaskRun& WithStartedOn(StartedOnT&& value) { SetStartedOn(std::forward<StartedOnT>(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetLastModifiedOn() const { return m_lastModifiedOn; }
132 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
133 template<typename LastModifiedOnT = Aws::Utils::DateTime>
134 void SetLastModifiedOn(LastModifiedOnT&& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = std::forward<LastModifiedOnT>(value); }
135 template<typename LastModifiedOnT = Aws::Utils::DateTime>
136 TaskRun& WithLastModifiedOn(LastModifiedOnT&& value) { SetLastModifiedOn(std::forward<LastModifiedOnT>(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
144 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
145 template<typename CompletedOnT = Aws::Utils::DateTime>
146 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::forward<CompletedOnT>(value); }
147 template<typename CompletedOnT = Aws::Utils::DateTime>
148 TaskRun& WithCompletedOn(CompletedOnT&& value) { SetCompletedOn(std::forward<CompletedOnT>(value)); return *this;}
150
152
155 inline int GetExecutionTime() const { return m_executionTime; }
156 inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
157 inline void SetExecutionTime(int value) { m_executionTimeHasBeenSet = true; m_executionTime = value; }
158 inline TaskRun& WithExecutionTime(int value) { SetExecutionTime(value); return *this;}
160 private:
161
162 Aws::String m_transformId;
163 bool m_transformIdHasBeenSet = false;
164
165 Aws::String m_taskRunId;
166 bool m_taskRunIdHasBeenSet = false;
167
169 bool m_statusHasBeenSet = false;
170
171 Aws::String m_logGroupName;
172 bool m_logGroupNameHasBeenSet = false;
173
174 TaskRunProperties m_properties;
175 bool m_propertiesHasBeenSet = false;
176
177 Aws::String m_errorString;
178 bool m_errorStringHasBeenSet = false;
179
180 Aws::Utils::DateTime m_startedOn{};
181 bool m_startedOnHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastModifiedOn{};
184 bool m_lastModifiedOnHasBeenSet = false;
185
186 Aws::Utils::DateTime m_completedOn{};
187 bool m_completedOnHasBeenSet = false;
188
189 int m_executionTime{0};
190 bool m_executionTimeHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Glue
195} // namespace Aws
const Aws::String & GetErrorString() const
Definition TaskRun.h:107
TaskRun & WithLogGroupName(LogGroupNameT &&value)
Definition TaskRun.h:88
bool ExecutionTimeHasBeenSet() const
Definition TaskRun.h:156
AWS_GLUE_API TaskRun()=default
bool CompletedOnHasBeenSet() const
Definition TaskRun.h:144
TaskRun & WithTransformId(TransformIdT &&value)
Definition TaskRun.h:53
void SetStatus(TaskStatusType value)
Definition TaskRun.h:74
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroupName(LogGroupNameT &&value)
Definition TaskRun.h:86
bool ErrorStringHasBeenSet() const
Definition TaskRun.h:108
bool LogGroupNameHasBeenSet() const
Definition TaskRun.h:84
const Aws::String & GetTaskRunId() const
Definition TaskRun.h:60
const Aws::Utils::DateTime & GetLastModifiedOn() const
Definition TaskRun.h:131
bool LastModifiedOnHasBeenSet() const
Definition TaskRun.h:132
void SetTransformId(TransformIdT &&value)
Definition TaskRun.h:51
bool StartedOnHasBeenSet() const
Definition TaskRun.h:120
const Aws::String & GetTransformId() const
Definition TaskRun.h:48
TaskRun & WithStartedOn(StartedOnT &&value)
Definition TaskRun.h:124
AWS_GLUE_API TaskRun(Aws::Utils::Json::JsonView jsonValue)
bool TransformIdHasBeenSet() const
Definition TaskRun.h:49
bool StatusHasBeenSet() const
Definition TaskRun.h:73
void SetStartedOn(StartedOnT &&value)
Definition TaskRun.h:122
void SetErrorString(ErrorStringT &&value)
Definition TaskRun.h:110
const Aws::Utils::DateTime & GetStartedOn() const
Definition TaskRun.h:119
void SetTaskRunId(TaskRunIdT &&value)
Definition TaskRun.h:63
bool PropertiesHasBeenSet() const
Definition TaskRun.h:96
int GetExecutionTime() const
Definition TaskRun.h:155
const Aws::Utils::DateTime & GetCompletedOn() const
Definition TaskRun.h:143
TaskRun & WithTaskRunId(TaskRunIdT &&value)
Definition TaskRun.h:65
void SetExecutionTime(int value)
Definition TaskRun.h:157
void SetLastModifiedOn(LastModifiedOnT &&value)
Definition TaskRun.h:134
AWS_GLUE_API TaskRun & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TaskRunIdHasBeenSet() const
Definition TaskRun.h:61
TaskRun & WithProperties(PropertiesT &&value)
Definition TaskRun.h:100
TaskStatusType GetStatus() const
Definition TaskRun.h:72
void SetCompletedOn(CompletedOnT &&value)
Definition TaskRun.h:146
TaskRun & WithLastModifiedOn(LastModifiedOnT &&value)
Definition TaskRun.h:136
TaskRun & WithErrorString(ErrorStringT &&value)
Definition TaskRun.h:112
TaskRun & WithCompletedOn(CompletedOnT &&value)
Definition TaskRun.h:148
TaskRun & WithExecutionTime(int value)
Definition TaskRun.h:158
const TaskRunProperties & GetProperties() const
Definition TaskRun.h:95
TaskRun & WithStatus(TaskStatusType value)
Definition TaskRun.h:75
void SetProperties(PropertiesT &&value)
Definition TaskRun.h:98
const Aws::String & GetLogGroupName() const
Definition TaskRun.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue