/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DataPipeline { namespace Model { /** *

Contains the parameters for ReportTaskProgress.

See Also:

AWS * API Reference

*/ class ReportTaskProgressRequest : public DataPipelineRequest { public: AWS_DATAPIPELINE_API ReportTaskProgressRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ReportTaskProgress"; } AWS_DATAPIPELINE_API Aws::String SerializePayload() const override; AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 ReportTaskProgressRequest& 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 ReportTaskProgressRequest& 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 ReportTaskProgressRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline const Aws::Vector& GetFields() const{ return m_fields; } /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline void SetFields(const Aws::Vector& value) { m_fieldsHasBeenSet = true; m_fields = value; } /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline void SetFields(Aws::Vector&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); } /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline ReportTaskProgressRequest& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline ReportTaskProgressRequest& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline ReportTaskProgressRequest& AddFields(const Field& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *

Key-value pairs that define the properties of the ReportTaskProgressInput * object.

*/ inline ReportTaskProgressRequest& AddFields(Field&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; Aws::Vector m_fields; bool m_fieldsHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws