AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTransformId(const Aws::String& value) { m_transformIdHasBeenSet = true; m_transformId = value; }
51 inline void SetTransformId(Aws::String&& value) { m_transformIdHasBeenSet = true; m_transformId = std::move(value); }
52 inline void SetTransformId(const char* value) { m_transformIdHasBeenSet = true; m_transformId.assign(value); }
53 inline TaskRun& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;}
54 inline TaskRun& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;}
55 inline TaskRun& WithTransformId(const char* value) { SetTransformId(value); return *this;}
57
59
62 inline const Aws::String& GetTaskRunId() const{ return m_taskRunId; }
63 inline bool TaskRunIdHasBeenSet() const { return m_taskRunIdHasBeenSet; }
64 inline void SetTaskRunId(const Aws::String& value) { m_taskRunIdHasBeenSet = true; m_taskRunId = value; }
65 inline void SetTaskRunId(Aws::String&& value) { m_taskRunIdHasBeenSet = true; m_taskRunId = std::move(value); }
66 inline void SetTaskRunId(const char* value) { m_taskRunIdHasBeenSet = true; m_taskRunId.assign(value); }
67 inline TaskRun& WithTaskRunId(const Aws::String& value) { SetTaskRunId(value); return *this;}
68 inline TaskRun& WithTaskRunId(Aws::String&& value) { SetTaskRunId(std::move(value)); return *this;}
69 inline TaskRun& WithTaskRunId(const char* value) { SetTaskRunId(value); return *this;}
71
73
76 inline const TaskStatusType& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const TaskStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(TaskStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline TaskRun& WithStatus(const TaskStatusType& value) { SetStatus(value); return *this;}
81 inline TaskRun& WithStatus(TaskStatusType&& value) { SetStatus(std::move(value)); return *this;}
83
85
89 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
90 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
91 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
92 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
93 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
94 inline TaskRun& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
95 inline TaskRun& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
96 inline TaskRun& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
98
100
103 inline const TaskRunProperties& GetProperties() const{ return m_properties; }
104 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
105 inline void SetProperties(const TaskRunProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
106 inline void SetProperties(TaskRunProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
107 inline TaskRun& WithProperties(const TaskRunProperties& value) { SetProperties(value); return *this;}
108 inline TaskRun& WithProperties(TaskRunProperties&& value) { SetProperties(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetErrorString() const{ return m_errorString; }
116 inline bool ErrorStringHasBeenSet() const { return m_errorStringHasBeenSet; }
117 inline void SetErrorString(const Aws::String& value) { m_errorStringHasBeenSet = true; m_errorString = value; }
118 inline void SetErrorString(Aws::String&& value) { m_errorStringHasBeenSet = true; m_errorString = std::move(value); }
119 inline void SetErrorString(const char* value) { m_errorStringHasBeenSet = true; m_errorString.assign(value); }
120 inline TaskRun& WithErrorString(const Aws::String& value) { SetErrorString(value); return *this;}
121 inline TaskRun& WithErrorString(Aws::String&& value) { SetErrorString(std::move(value)); return *this;}
122 inline TaskRun& WithErrorString(const char* value) { SetErrorString(value); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
130 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
131 inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
132 inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
133 inline TaskRun& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
134 inline TaskRun& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; }
142 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
143 inline void SetLastModifiedOn(const Aws::Utils::DateTime& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = value; }
144 inline void SetLastModifiedOn(Aws::Utils::DateTime&& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = std::move(value); }
145 inline TaskRun& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;}
146 inline TaskRun& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
154 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
155 inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
156 inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
157 inline TaskRun& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
158 inline TaskRun& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
160
162
165 inline int GetExecutionTime() const{ return m_executionTime; }
166 inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
167 inline void SetExecutionTime(int value) { m_executionTimeHasBeenSet = true; m_executionTime = value; }
168 inline TaskRun& WithExecutionTime(int value) { SetExecutionTime(value); return *this;}
170 private:
171
172 Aws::String m_transformId;
173 bool m_transformIdHasBeenSet = false;
174
175 Aws::String m_taskRunId;
176 bool m_taskRunIdHasBeenSet = false;
177
178 TaskStatusType m_status;
179 bool m_statusHasBeenSet = false;
180
181 Aws::String m_logGroupName;
182 bool m_logGroupNameHasBeenSet = false;
183
184 TaskRunProperties m_properties;
185 bool m_propertiesHasBeenSet = false;
186
187 Aws::String m_errorString;
188 bool m_errorStringHasBeenSet = false;
189
190 Aws::Utils::DateTime m_startedOn;
191 bool m_startedOnHasBeenSet = false;
192
193 Aws::Utils::DateTime m_lastModifiedOn;
194 bool m_lastModifiedOnHasBeenSet = false;
195
196 Aws::Utils::DateTime m_completedOn;
197 bool m_completedOnHasBeenSet = false;
198
199 int m_executionTime;
200 bool m_executionTimeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Glue
205} // namespace Aws
TaskRun & WithStartedOn(const Aws::Utils::DateTime &value)
Definition TaskRun.h:133
const Aws::String & GetErrorString() const
Definition TaskRun.h:115
void SetLastModifiedOn(Aws::Utils::DateTime &&value)
Definition TaskRun.h:144
TaskRun & WithTaskRunId(const Aws::String &value)
Definition TaskRun.h:67
bool ExecutionTimeHasBeenSet() const
Definition TaskRun.h:166
void SetTaskRunId(Aws::String &&value)
Definition TaskRun.h:65
void SetStartedOn(Aws::Utils::DateTime &&value)
Definition TaskRun.h:132
TaskRun & WithStatus(TaskStatusType &&value)
Definition TaskRun.h:81
TaskRun & WithTaskRunId(const char *value)
Definition TaskRun.h:69
bool CompletedOnHasBeenSet() const
Definition TaskRun.h:154
TaskRun & WithStartedOn(Aws::Utils::DateTime &&value)
Definition TaskRun.h:134
TaskRun & WithErrorString(const Aws::String &value)
Definition TaskRun.h:120
void SetStartedOn(const Aws::Utils::DateTime &value)
Definition TaskRun.h:131
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorString(const Aws::String &value)
Definition TaskRun.h:117
bool ErrorStringHasBeenSet() const
Definition TaskRun.h:116
bool LogGroupNameHasBeenSet() const
Definition TaskRun.h:90
const Aws::String & GetTaskRunId() const
Definition TaskRun.h:62
const Aws::Utils::DateTime & GetLastModifiedOn() const
Definition TaskRun.h:141
bool LastModifiedOnHasBeenSet() const
Definition TaskRun.h:142
TaskRun & WithTransformId(Aws::String &&value)
Definition TaskRun.h:54
TaskRun & WithLastModifiedOn(Aws::Utils::DateTime &&value)
Definition TaskRun.h:146
void SetLogGroupName(Aws::String &&value)
Definition TaskRun.h:92
TaskRun & WithLogGroupName(Aws::String &&value)
Definition TaskRun.h:95
const TaskStatusType & GetStatus() const
Definition TaskRun.h:76
TaskRun & WithLastModifiedOn(const Aws::Utils::DateTime &value)
Definition TaskRun.h:145
TaskRun & WithLogGroupName(const Aws::String &value)
Definition TaskRun.h:94
TaskRun & WithErrorString(Aws::String &&value)
Definition TaskRun.h:121
TaskRun & WithProperties(TaskRunProperties &&value)
Definition TaskRun.h:108
bool StartedOnHasBeenSet() const
Definition TaskRun.h:130
void SetTransformId(const Aws::String &value)
Definition TaskRun.h:50
const Aws::String & GetTransformId() const
Definition TaskRun.h:48
TaskRun & WithProperties(const TaskRunProperties &value)
Definition TaskRun.h:107
AWS_GLUE_API TaskRun(Aws::Utils::Json::JsonView jsonValue)
void SetTaskRunId(const Aws::String &value)
Definition TaskRun.h:64
bool TransformIdHasBeenSet() const
Definition TaskRun.h:49
TaskRun & WithErrorString(const char *value)
Definition TaskRun.h:122
bool StatusHasBeenSet() const
Definition TaskRun.h:77
void SetStatus(TaskStatusType &&value)
Definition TaskRun.h:79
void SetLastModifiedOn(const Aws::Utils::DateTime &value)
Definition TaskRun.h:143
const Aws::Utils::DateTime & GetStartedOn() const
Definition TaskRun.h:129
bool PropertiesHasBeenSet() const
Definition TaskRun.h:104
void SetTransformId(Aws::String &&value)
Definition TaskRun.h:51
TaskRun & WithCompletedOn(Aws::Utils::DateTime &&value)
Definition TaskRun.h:158
void SetErrorString(Aws::String &&value)
Definition TaskRun.h:118
int GetExecutionTime() const
Definition TaskRun.h:165
const Aws::Utils::DateTime & GetCompletedOn() const
Definition TaskRun.h:153
void SetExecutionTime(int value)
Definition TaskRun.h:167
void SetCompletedOn(Aws::Utils::DateTime &&value)
Definition TaskRun.h:156
void SetProperties(TaskRunProperties &&value)
Definition TaskRun.h:106
AWS_GLUE_API TaskRun & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroupName(const char *value)
Definition TaskRun.h:93
bool TaskRunIdHasBeenSet() const
Definition TaskRun.h:63
TaskRun & WithStatus(const TaskStatusType &value)
Definition TaskRun.h:80
TaskRun & WithTransformId(const Aws::String &value)
Definition TaskRun.h:53
void SetStatus(const TaskStatusType &value)
Definition TaskRun.h:78
void SetTaskRunId(const char *value)
Definition TaskRun.h:66
TaskRun & WithTaskRunId(Aws::String &&value)
Definition TaskRun.h:68
void SetProperties(const TaskRunProperties &value)
Definition TaskRun.h:105
TaskRun & WithCompletedOn(const Aws::Utils::DateTime &value)
Definition TaskRun.h:157
void SetCompletedOn(const Aws::Utils::DateTime &value)
Definition TaskRun.h:155
void SetErrorString(const char *value)
Definition TaskRun.h:119
TaskRun & WithExecutionTime(int value)
Definition TaskRun.h:168
void SetTransformId(const char *value)
Definition TaskRun.h:52
const TaskRunProperties & GetProperties() const
Definition TaskRun.h:103
void SetLogGroupName(const Aws::String &value)
Definition TaskRun.h:91
TaskRun & WithLogGroupName(const char *value)
Definition TaskRun.h:96
TaskRun & WithTransformId(const char *value)
Definition TaskRun.h:55
const Aws::String & GetLogGroupName() const
Definition TaskRun.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue