AWS SDK for C++  1.8.126
AWS SDK for C++
SetTaskStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DataPipeline
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "SetTaskStatus"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetTaskId() const{ return m_taskId; }
46 
51  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
52 
57  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
58 
63  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
64 
69  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
70 
75  inline SetTaskStatusRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
76 
81  inline SetTaskStatusRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
82 
87  inline SetTaskStatusRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
88 
89 
94  inline const TaskStatus& GetTaskStatus() const{ return m_taskStatus; }
95 
100  inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
101 
106  inline void SetTaskStatus(const TaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
107 
112  inline void SetTaskStatus(TaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); }
113 
118  inline SetTaskStatusRequest& WithTaskStatus(const TaskStatus& value) { SetTaskStatus(value); return *this;}
119 
124  inline SetTaskStatusRequest& WithTaskStatus(TaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;}
125 
126 
133  inline const Aws::String& GetErrorId() const{ return m_errorId; }
134 
141  inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
142 
149  inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; }
150 
157  inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = std::move(value); }
158 
165  inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); }
166 
173  inline SetTaskStatusRequest& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;}
174 
181  inline SetTaskStatusRequest& WithErrorId(Aws::String&& value) { SetErrorId(std::move(value)); return *this;}
182 
189  inline SetTaskStatusRequest& WithErrorId(const char* value) { SetErrorId(value); return *this;}
190 
191 
198  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
199 
206  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
207 
214  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
215 
222  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
223 
230  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
231 
238  inline SetTaskStatusRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
239 
246  inline SetTaskStatusRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
247 
254  inline SetTaskStatusRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
255 
256 
263  inline const Aws::String& GetErrorStackTrace() const{ return m_errorStackTrace; }
264 
271  inline bool ErrorStackTraceHasBeenSet() const { return m_errorStackTraceHasBeenSet; }
272 
279  inline void SetErrorStackTrace(const Aws::String& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = value; }
280 
287  inline void SetErrorStackTrace(Aws::String&& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = std::move(value); }
288 
295  inline void SetErrorStackTrace(const char* value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace.assign(value); }
296 
303  inline SetTaskStatusRequest& WithErrorStackTrace(const Aws::String& value) { SetErrorStackTrace(value); return *this;}
304 
311  inline SetTaskStatusRequest& WithErrorStackTrace(Aws::String&& value) { SetErrorStackTrace(std::move(value)); return *this;}
312 
319  inline SetTaskStatusRequest& WithErrorStackTrace(const char* value) { SetErrorStackTrace(value); return *this;}
320 
321  private:
322 
323  Aws::String m_taskId;
324  bool m_taskIdHasBeenSet;
325 
326  TaskStatus m_taskStatus;
327  bool m_taskStatusHasBeenSet;
328 
329  Aws::String m_errorId;
330  bool m_errorIdHasBeenSet;
331 
332  Aws::String m_errorMessage;
333  bool m_errorMessageHasBeenSet;
334 
335  Aws::String m_errorStackTrace;
336  bool m_errorStackTraceHasBeenSet;
337  };
338 
339 } // namespace Model
340 } // namespace DataPipeline
341 } // namespace Aws
Aws::DataPipeline::Model::SetTaskStatusRequest::GetTaskStatus
const TaskStatus & GetTaskStatus() const
Definition: SetTaskStatusRequest.h:94
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorStackTrace
SetTaskStatusRequest & WithErrorStackTrace(const Aws::String &value)
Definition: SetTaskStatusRequest.h:303
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorId
SetTaskStatusRequest & WithErrorId(const char *value)
Definition: SetTaskStatusRequest.h:189
Aws::DataPipeline::Model::SetTaskStatusRequest::GetErrorStackTrace
const Aws::String & GetErrorStackTrace() const
Definition: SetTaskStatusRequest.h:263
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorId
void SetErrorId(const char *value)
Definition: SetTaskStatusRequest.h:165
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: SetTaskStatusRequest.h:222
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataPipeline::Model::SetTaskStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorStackTrace
SetTaskStatusRequest & WithErrorStackTrace(Aws::String &&value)
Definition: SetTaskStatusRequest.h:311
Aws::DataPipeline::Model::SetTaskStatusRequest::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: SetTaskStatusRequest.h:198
Aws::DataPipeline::Model::SetTaskStatusRequest::WithTaskStatus
SetTaskStatusRequest & WithTaskStatus(const TaskStatus &value)
Definition: SetTaskStatusRequest.h:118
Aws::DataPipeline::Model::SetTaskStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetTaskStatusRequest.h:34
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorMessage
SetTaskStatusRequest & WithErrorMessage(Aws::String &&value)
Definition: SetTaskStatusRequest.h:246
Aws::DataPipeline::Model::SetTaskStatusRequest::WithTaskStatus
SetTaskStatusRequest & WithTaskStatus(TaskStatus &&value)
Definition: SetTaskStatusRequest.h:124
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorId
void SetErrorId(Aws::String &&value)
Definition: SetTaskStatusRequest.h:157
Aws::DataPipeline::Model::SetTaskStatusRequest::GetErrorId
const Aws::String & GetErrorId() const
Definition: SetTaskStatusRequest.h:133
Aws::DataPipeline::Model::SetTaskStatusRequest::TaskIdHasBeenSet
bool TaskIdHasBeenSet() const
Definition: SetTaskStatusRequest.h:51
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorStackTrace
void SetErrorStackTrace(const Aws::String &value)
Definition: SetTaskStatusRequest.h:279
Aws::DataPipeline::Model::SetTaskStatusRequest::SetTaskStatus
void SetTaskStatus(TaskStatus &&value)
Definition: SetTaskStatusRequest.h:112
TaskStatus.h
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorStackTrace
void SetErrorStackTrace(Aws::String &&value)
Definition: SetTaskStatusRequest.h:287
Aws::DataPipeline::Model::SetTaskStatusRequest::WithTaskId
SetTaskStatusRequest & WithTaskId(const char *value)
Definition: SetTaskStatusRequest.h:87
DataPipeline_EXPORTS.h
Aws::DataPipeline::Model::SetTaskStatusRequest::SetTaskId
void SetTaskId(const Aws::String &value)
Definition: SetTaskStatusRequest.h:57
Aws::DataPipeline::Model::SetTaskStatusRequest::TaskStatusHasBeenSet
bool TaskStatusHasBeenSet() const
Definition: SetTaskStatusRequest.h:100
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorId
void SetErrorId(const Aws::String &value)
Definition: SetTaskStatusRequest.h:149
DataPipelineRequest.h
Aws::DataPipeline::Model::SetTaskStatusRequest::GetTaskId
const Aws::String & GetTaskId() const
Definition: SetTaskStatusRequest.h:45
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorMessage
SetTaskStatusRequest & WithErrorMessage(const char *value)
Definition: SetTaskStatusRequest.h:254
AWSString.h
Aws::DataPipeline::Model::SetTaskStatusRequest::ErrorIdHasBeenSet
bool ErrorIdHasBeenSet() const
Definition: SetTaskStatusRequest.h:141
Aws::DataPipeline::Model::SetTaskStatusRequest::WithTaskId
SetTaskStatusRequest & WithTaskId(Aws::String &&value)
Definition: SetTaskStatusRequest.h:81
Aws::DataPipeline::Model::TaskStatus
TaskStatus
Definition: TaskStatus.h:17
Aws::DataPipeline::Model::SetTaskStatusRequest
Definition: SetTaskStatusRequest.h:26
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorId
SetTaskStatusRequest & WithErrorId(const Aws::String &value)
Definition: SetTaskStatusRequest.h:173
Aws::DataPipeline::Model::SetTaskStatusRequest::SetTaskId
void SetTaskId(const char *value)
Definition: SetTaskStatusRequest.h:69
Aws::DataPipeline::Model::SetTaskStatusRequest::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: SetTaskStatusRequest.h:206
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorMessage
SetTaskStatusRequest & WithErrorMessage(const Aws::String &value)
Definition: SetTaskStatusRequest.h:238
Aws::DataPipeline::Model::SetTaskStatusRequest::WithTaskId
SetTaskStatusRequest & WithTaskId(const Aws::String &value)
Definition: SetTaskStatusRequest.h:75
Aws::DataPipeline::Model::SetTaskStatusRequest::SetTaskStatusRequest
SetTaskStatusRequest()
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorStackTrace
SetTaskStatusRequest & WithErrorStackTrace(const char *value)
Definition: SetTaskStatusRequest.h:319
Aws
Definition: AccessManagementClient.h:15
Aws::DataPipeline::Model::SetTaskStatusRequest::ErrorStackTraceHasBeenSet
bool ErrorStackTraceHasBeenSet() const
Definition: SetTaskStatusRequest.h:271
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: SetTaskStatusRequest.h:214
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorStackTrace
void SetErrorStackTrace(const char *value)
Definition: SetTaskStatusRequest.h:295
AWS_DATAPIPELINE_API
#define AWS_DATAPIPELINE_API
Definition: DataPipeline_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataPipeline::Model::SetTaskStatusRequest::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: SetTaskStatusRequest.h:230
Aws::DataPipeline::Model::SetTaskStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataPipeline::DataPipelineRequest
Definition: DataPipelineRequest.h:17
Aws::DataPipeline::Model::SetTaskStatusRequest::SetTaskStatus
void SetTaskStatus(const TaskStatus &value)
Definition: SetTaskStatusRequest.h:106
Aws::DataPipeline::Model::SetTaskStatusRequest::SetTaskId
void SetTaskId(Aws::String &&value)
Definition: SetTaskStatusRequest.h:63
Aws::DataPipeline::Model::SetTaskStatusRequest::WithErrorId
SetTaskStatusRequest & WithErrorId(Aws::String &&value)
Definition: SetTaskStatusRequest.h:181