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

Contains information about a pipeline task that is assigned to a task * runner.

See Also:

AWS * API Reference

*/ class TaskObject { public: AWS_DATAPIPELINE_API TaskObject(); AWS_DATAPIPELINE_API TaskObject(Aws::Utils::Json::JsonView jsonValue); AWS_DATAPIPELINE_API TaskObject& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline TaskObject& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline TaskObject& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

An internal identifier for the task. This ID is passed to the * SetTaskStatus and ReportTaskProgress actions.

*/ inline TaskObject& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *

The ID of the pipeline that provided the task.

*/ inline const Aws::String& GetPipelineId() const{ return m_pipelineId; } /** *

The ID of the pipeline that provided the task.

*/ inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; } /** *

The ID of the pipeline that provided the task.

*/ inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; } /** *

The ID of the pipeline that provided the task.

*/ inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = std::move(value); } /** *

The ID of the pipeline that provided the task.

*/ inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); } /** *

The ID of the pipeline that provided the task.

*/ inline TaskObject& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;} /** *

The ID of the pipeline that provided the task.

*/ inline TaskObject& WithPipelineId(Aws::String&& value) { SetPipelineId(std::move(value)); return *this;} /** *

The ID of the pipeline that provided the task.

*/ inline TaskObject& WithPipelineId(const char* value) { SetPipelineId(value); return *this;} /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline const Aws::String& GetAttemptId() const{ return m_attemptId; } /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline bool AttemptIdHasBeenSet() const { return m_attemptIdHasBeenSet; } /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline void SetAttemptId(const Aws::String& value) { m_attemptIdHasBeenSet = true; m_attemptId = value; } /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline void SetAttemptId(Aws::String&& value) { m_attemptIdHasBeenSet = true; m_attemptId = std::move(value); } /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline void SetAttemptId(const char* value) { m_attemptIdHasBeenSet = true; m_attemptId.assign(value); } /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline TaskObject& WithAttemptId(const Aws::String& value) { SetAttemptId(value); return *this;} /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline TaskObject& WithAttemptId(Aws::String&& value) { SetAttemptId(std::move(value)); return *this;} /** *

The ID of the pipeline task attempt object. AWS Data Pipeline uses this value * to track how many times a task is attempted.

*/ inline TaskObject& WithAttemptId(const char* value) { SetAttemptId(value); return *this;} /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline const Aws::Map& GetObjects() const{ return m_objects; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline void SetObjects(const Aws::Map& value) { m_objectsHasBeenSet = true; m_objects = value; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline void SetObjects(Aws::Map&& value) { m_objectsHasBeenSet = true; m_objects = std::move(value); } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& WithObjects(const Aws::Map& value) { SetObjects(value); return *this;} /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& WithObjects(Aws::Map&& value) { SetObjects(std::move(value)); return *this;} /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& AddObjects(const Aws::String& key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, value); return *this; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& AddObjects(Aws::String&& key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects.emplace(std::move(key), value); return *this; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& AddObjects(const Aws::String& key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, std::move(value)); return *this; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& AddObjects(Aws::String&& key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects.emplace(std::move(key), std::move(value)); return *this; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& AddObjects(const char* key, PipelineObject&& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, std::move(value)); return *this; } /** *

Connection information for the location where the task runner will publish * the output of the task.

*/ inline TaskObject& AddObjects(const char* key, const PipelineObject& value) { m_objectsHasBeenSet = true; m_objects.emplace(key, value); return *this; } private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; Aws::String m_pipelineId; bool m_pipelineIdHasBeenSet = false; Aws::String m_attemptId; bool m_attemptIdHasBeenSet = false; Aws::Map m_objects; bool m_objectsHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws