AWS SDK for C++  0.12.9
AWS SDK for C++
SetTaskStatusRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace DataPipeline
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetTaskId() const{ return m_taskId; }
44 
49  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
50 
55  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
56 
61  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
62 
67  inline SetTaskStatusRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
68 
73  inline SetTaskStatusRequest& WithTaskId(Aws::String&& value) { SetTaskId(value); return *this;}
74 
79  inline SetTaskStatusRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
80 
85  inline const TaskStatus& GetTaskStatus() const{ return m_taskStatus; }
86 
91  inline void SetTaskStatus(const TaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
92 
97  inline void SetTaskStatus(TaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
98 
103  inline SetTaskStatusRequest& WithTaskStatus(const TaskStatus& value) { SetTaskStatus(value); return *this;}
104 
109  inline SetTaskStatusRequest& WithTaskStatus(TaskStatus&& value) { SetTaskStatus(value); return *this;}
110 
117  inline const Aws::String& GetErrorId() const{ return m_errorId; }
118 
125  inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; }
126 
133  inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = value; }
134 
141  inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); }
142 
149  inline SetTaskStatusRequest& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;}
150 
157  inline SetTaskStatusRequest& WithErrorId(Aws::String&& value) { SetErrorId(value); return *this;}
158 
165  inline SetTaskStatusRequest& WithErrorId(const char* value) { SetErrorId(value); return *this;}
166 
173  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
174 
181  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
182 
189  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
190 
197  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
198 
205  inline SetTaskStatusRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
206 
213  inline SetTaskStatusRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(value); return *this;}
214 
221  inline SetTaskStatusRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
222 
229  inline const Aws::String& GetErrorStackTrace() const{ return m_errorStackTrace; }
230 
237  inline void SetErrorStackTrace(const Aws::String& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = value; }
238 
245  inline void SetErrorStackTrace(Aws::String&& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = value; }
246 
253  inline void SetErrorStackTrace(const char* value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace.assign(value); }
254 
261  inline SetTaskStatusRequest& WithErrorStackTrace(const Aws::String& value) { SetErrorStackTrace(value); return *this;}
262 
269  inline SetTaskStatusRequest& WithErrorStackTrace(Aws::String&& value) { SetErrorStackTrace(value); return *this;}
270 
277  inline SetTaskStatusRequest& WithErrorStackTrace(const char* value) { SetErrorStackTrace(value); return *this;}
278 
279  private:
280  Aws::String m_taskId;
281  bool m_taskIdHasBeenSet;
282  TaskStatus m_taskStatus;
283  bool m_taskStatusHasBeenSet;
284  Aws::String m_errorId;
285  bool m_errorIdHasBeenSet;
286  Aws::String m_errorMessage;
287  bool m_errorMessageHasBeenSet;
288  Aws::String m_errorStackTrace;
289  bool m_errorStackTraceHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace DataPipeline
294 } // namespace Aws
SetTaskStatusRequest & WithErrorMessage(Aws::String &&value)
SetTaskStatusRequest & WithErrorStackTrace(const char *value)
SetTaskStatusRequest & WithErrorMessage(const Aws::String &value)
SetTaskStatusRequest & WithTaskId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
SetTaskStatusRequest & WithErrorMessage(const char *value)
SetTaskStatusRequest & WithTaskStatus(TaskStatus &&value)
SetTaskStatusRequest & WithErrorId(Aws::String &&value)
SetTaskStatusRequest & WithErrorId(const Aws::String &value)
#define AWS_DATAPIPELINE_API
SetTaskStatusRequest & WithErrorId(const char *value)
SetTaskStatusRequest & WithTaskStatus(const TaskStatus &value)
SetTaskStatusRequest & WithErrorStackTrace(Aws::String &&value)
SetTaskStatusRequest & WithTaskId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetTaskStatusRequest & WithTaskId(Aws::String &&value)
SetTaskStatusRequest & WithErrorStackTrace(const Aws::String &value)
JSON (JavaScript Object Notation).