AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetTaskStatusRequest.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_EXPORTS.h>
8#include <aws/datapipeline/DataPipelineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datapipeline/model/TaskStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DataPipeline
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_DATAPIPELINE_API SetTaskStatusRequest();
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_DATAPIPELINE_API Aws::String SerializePayload() const override;
37
38 AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetTaskId() const{ return m_taskId; }
47 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
48 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
49 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
50 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
51 inline SetTaskStatusRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
52 inline SetTaskStatusRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
53 inline SetTaskStatusRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
55
57
61 inline const TaskStatus& GetTaskStatus() const{ return m_taskStatus; }
62 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
63 inline void SetTaskStatus(const TaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
64 inline void SetTaskStatus(TaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); }
65 inline SetTaskStatusRequest& WithTaskStatus(const TaskStatus& value) { SetTaskStatus(value); return *this;}
66 inline SetTaskStatusRequest& WithTaskStatus(TaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;}
68
70
76 inline const Aws::String& GetErrorId() const{ return m_errorId; }
77 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
78 inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; }
79 inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = std::move(value); }
80 inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); }
81 inline SetTaskStatusRequest& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;}
82 inline SetTaskStatusRequest& WithErrorId(Aws::String&& value) { SetErrorId(std::move(value)); return *this;}
83 inline SetTaskStatusRequest& WithErrorId(const char* value) { SetErrorId(value); return *this;}
85
87
93 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
94 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
95 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
96 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
97 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
98 inline SetTaskStatusRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
99 inline SetTaskStatusRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
100 inline SetTaskStatusRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
102
104
110 inline const Aws::String& GetErrorStackTrace() const{ return m_errorStackTrace; }
111 inline bool ErrorStackTraceHasBeenSet() const { return m_errorStackTraceHasBeenSet; }
112 inline void SetErrorStackTrace(const Aws::String& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = value; }
113 inline void SetErrorStackTrace(Aws::String&& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = std::move(value); }
114 inline void SetErrorStackTrace(const char* value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace.assign(value); }
115 inline SetTaskStatusRequest& WithErrorStackTrace(const Aws::String& value) { SetErrorStackTrace(value); return *this;}
116 inline SetTaskStatusRequest& WithErrorStackTrace(Aws::String&& value) { SetErrorStackTrace(std::move(value)); return *this;}
117 inline SetTaskStatusRequest& WithErrorStackTrace(const char* value) { SetErrorStackTrace(value); return *this;}
119 private:
120
121 Aws::String m_taskId;
122 bool m_taskIdHasBeenSet = false;
123
124 TaskStatus m_taskStatus;
125 bool m_taskStatusHasBeenSet = false;
126
127 Aws::String m_errorId;
128 bool m_errorIdHasBeenSet = false;
129
130 Aws::String m_errorMessage;
131 bool m_errorMessageHasBeenSet = false;
132
133 Aws::String m_errorStackTrace;
134 bool m_errorStackTraceHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace DataPipeline
139} // namespace Aws
AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetTaskStatusRequest & WithTaskId(const Aws::String &value)
SetTaskStatusRequest & WithTaskId(Aws::String &&value)
SetTaskStatusRequest & WithTaskId(const char *value)
AWS_DATAPIPELINE_API Aws::String SerializePayload() const override
SetTaskStatusRequest & WithErrorMessage(const char *value)
SetTaskStatusRequest & WithErrorId(Aws::String &&value)
SetTaskStatusRequest & WithErrorStackTrace(const char *value)
SetTaskStatusRequest & WithErrorId(const char *value)
SetTaskStatusRequest & WithErrorStackTrace(const Aws::String &value)
SetTaskStatusRequest & WithErrorId(const Aws::String &value)
SetTaskStatusRequest & WithTaskStatus(TaskStatus &&value)
virtual const char * GetServiceRequestName() const override
SetTaskStatusRequest & WithTaskStatus(const TaskStatus &value)
SetTaskStatusRequest & WithErrorMessage(Aws::String &&value)
SetTaskStatusRequest & WithErrorStackTrace(Aws::String &&value)
SetTaskStatusRequest & WithErrorMessage(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String