/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.datapipeline.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about a pipeline task that is assigned to a task runner. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TaskObject implements Serializable, Cloneable, StructuredPojo { /** ** An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress * actions. *
*/ private String taskId; /** ** The ID of the pipeline that provided the task. *
*/ private String pipelineId; /** ** The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is * attempted. *
*/ private String attemptId; /** ** Connection information for the location where the task runner will publish the output of the task. *
*/ private java.util.Map* An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress * actions. *
* * @param taskId * An internal identifier for the task. This ID is passed to the SetTaskStatus and * ReportTaskProgress actions. */ public void setTaskId(String taskId) { this.taskId = taskId; } /** ** An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress * actions. *
* * @return An internal identifier for the task. This ID is passed to the SetTaskStatus and * ReportTaskProgress actions. */ public String getTaskId() { return this.taskId; } /** ** An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress * actions. *
* * @param taskId * An internal identifier for the task. This ID is passed to the SetTaskStatus and * ReportTaskProgress actions. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskObject withTaskId(String taskId) { setTaskId(taskId); return this; } /** ** The ID of the pipeline that provided the task. *
* * @param pipelineId * The ID of the pipeline that provided the task. */ public void setPipelineId(String pipelineId) { this.pipelineId = pipelineId; } /** ** The ID of the pipeline that provided the task. *
* * @return The ID of the pipeline that provided the task. */ public String getPipelineId() { return this.pipelineId; } /** ** The ID of the pipeline that provided the task. *
* * @param pipelineId * The ID of the pipeline that provided the task. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskObject withPipelineId(String pipelineId) { setPipelineId(pipelineId); 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. *
* * @param attemptId * The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a * task is attempted. */ public void setAttemptId(String attemptId) { this.attemptId = attemptId; } /** ** The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is * attempted. *
* * @return The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a * task is attempted. */ public String getAttemptId() { return this.attemptId; } /** ** The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is * attempted. *
* * @param attemptId * The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a * task is attempted. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskObject withAttemptId(String attemptId) { setAttemptId(attemptId); return this; } /** ** Connection information for the location where the task runner will publish the output of the task. *
* * @return Connection information for the location where the task runner will publish the output of the task. */ public java.util.Map* Connection information for the location where the task runner will publish the output of the task. *
* * @param objects * Connection information for the location where the task runner will publish the output of the task. */ public void setObjects(java.util.Map* Connection information for the location where the task runner will publish the output of the task. *
* * @param objects * Connection information for the location where the task runner will publish the output of the task. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskObject withObjects(java.util.Map