/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the parameters for SetTaskStatus.See Also:
AWS
* API Reference
The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline SetTaskStatusRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline SetTaskStatusRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *The ID of the task assigned to the task runner. This value is provided in the * response for PollForTask.
*/ inline SetTaskStatusRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *If FINISHED
, the task successfully completed. If
* FAILED
, the task ended unsuccessfully. Preconditions use false.
If FINISHED
, the task successfully completed. If
* FAILED
, the task ended unsuccessfully. Preconditions use false.
If FINISHED
, the task successfully completed. If
* FAILED
, the task ended unsuccessfully. Preconditions use false.
If FINISHED
, the task successfully completed. If
* FAILED
, the task ended unsuccessfully. Preconditions use false.
If FINISHED
, the task successfully completed. If
* FAILED
, the task ended unsuccessfully. Preconditions use false.
If FINISHED
, the task successfully completed. If
* FAILED
, the task ended unsuccessfully. Preconditions use false.
If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline const Aws::String& GetErrorId() const{ return m_errorId; } /** *If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; } /** *If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; } /** *If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = std::move(value); } /** *If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); } /** *If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline SetTaskStatusRequest& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;} /** *If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline SetTaskStatusRequest& WithErrorId(Aws::String&& value) { SetErrorId(std::move(value)); return *this;} /** *If an error occurred during the task, this value specifies the error code. * This value is set on the physical attempt object. It is used to display error * information to the user. It should not start with string "Service_" which is * reserved by the system.
*/ inline SetTaskStatusRequest& WithErrorId(const char* value) { SetErrorId(value); return *this;} /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline SetTaskStatusRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline SetTaskStatusRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *If an error occurred during the task, this value specifies a text description * of the error. This value is set on the physical attempt object. It is used to * display error information to the user. The web service does not parse this * value.
*/ inline SetTaskStatusRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline const Aws::String& GetErrorStackTrace() const{ return m_errorStackTrace; } /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline bool ErrorStackTraceHasBeenSet() const { return m_errorStackTraceHasBeenSet; } /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline void SetErrorStackTrace(const Aws::String& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = value; } /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline void SetErrorStackTrace(Aws::String&& value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace = std::move(value); } /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline void SetErrorStackTrace(const char* value) { m_errorStackTraceHasBeenSet = true; m_errorStackTrace.assign(value); } /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline SetTaskStatusRequest& WithErrorStackTrace(const Aws::String& value) { SetErrorStackTrace(value); return *this;} /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline SetTaskStatusRequest& WithErrorStackTrace(Aws::String&& value) { SetErrorStackTrace(std::move(value)); return *this;} /** *If an error occurred during the task, this value specifies the stack trace * associated with the error. This value is set on the physical attempt object. It * is used to display error information to the user. The web service does not parse * this value.
*/ inline SetTaskStatusRequest& WithErrorStackTrace(const char* value) { SetErrorStackTrace(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; TaskStatus m_taskStatus; bool m_taskStatusHasBeenSet = false; Aws::String m_errorId; bool m_errorIdHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_errorStackTrace; bool m_errorStackTraceHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws