/* * 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.appflow.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A class for modeling different type of tasks. Task implementation varies based on the TaskType
.
*
* The source fields to which a particular task is applied. *
*/ private java.util.List* The operation to be performed on the provided source fields. *
*/ private ConnectorOperator connectorOperator; /** ** A field in a destination connector, or a field value against which Amazon AppFlow validates a source field. *
*/ private String destinationField; /** ** Specifies the particular task implementation that Amazon AppFlow performs. *
*/ private String taskType; /** *
* A map used to store task-related information. The execution service looks for particular information based on the
* TaskType
.
*
* The source fields to which a particular task is applied. *
* * @return The source fields to which a particular task is applied. */ public java.util.List* The source fields to which a particular task is applied. *
* * @param sourceFields * The source fields to which a particular task is applied. */ public void setSourceFields(java.util.Collection* The source fields to which a particular task is applied. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSourceFields(java.util.Collection)} or {@link #withSourceFields(java.util.Collection)} if you want to * override the existing values. *
* * @param sourceFields * The source fields to which a particular task is applied. * @return Returns a reference to this object so that method calls can be chained together. */ public Task withSourceFields(String... sourceFields) { if (this.sourceFields == null) { setSourceFields(new java.util.ArrayList* The source fields to which a particular task is applied. *
* * @param sourceFields * The source fields to which a particular task is applied. * @return Returns a reference to this object so that method calls can be chained together. */ public Task withSourceFields(java.util.Collection* The operation to be performed on the provided source fields. *
* * @param connectorOperator * The operation to be performed on the provided source fields. */ public void setConnectorOperator(ConnectorOperator connectorOperator) { this.connectorOperator = connectorOperator; } /** ** The operation to be performed on the provided source fields. *
* * @return The operation to be performed on the provided source fields. */ public ConnectorOperator getConnectorOperator() { return this.connectorOperator; } /** ** The operation to be performed on the provided source fields. *
* * @param connectorOperator * The operation to be performed on the provided source fields. * @return Returns a reference to this object so that method calls can be chained together. */ public Task withConnectorOperator(ConnectorOperator connectorOperator) { setConnectorOperator(connectorOperator); return this; } /** ** A field in a destination connector, or a field value against which Amazon AppFlow validates a source field. *
* * @param destinationField * A field in a destination connector, or a field value against which Amazon AppFlow validates a source * field. */ public void setDestinationField(String destinationField) { this.destinationField = destinationField; } /** ** A field in a destination connector, or a field value against which Amazon AppFlow validates a source field. *
* * @return A field in a destination connector, or a field value against which Amazon AppFlow validates a source * field. */ public String getDestinationField() { return this.destinationField; } /** ** A field in a destination connector, or a field value against which Amazon AppFlow validates a source field. *
* * @param destinationField * A field in a destination connector, or a field value against which Amazon AppFlow validates a source * field. * @return Returns a reference to this object so that method calls can be chained together. */ public Task withDestinationField(String destinationField) { setDestinationField(destinationField); return this; } /** ** Specifies the particular task implementation that Amazon AppFlow performs. *
* * @param taskType * Specifies the particular task implementation that Amazon AppFlow performs. * @see TaskType */ public void setTaskType(String taskType) { this.taskType = taskType; } /** ** Specifies the particular task implementation that Amazon AppFlow performs. *
* * @return Specifies the particular task implementation that Amazon AppFlow performs. * @see TaskType */ public String getTaskType() { return this.taskType; } /** ** Specifies the particular task implementation that Amazon AppFlow performs. *
* * @param taskType * Specifies the particular task implementation that Amazon AppFlow performs. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskType */ public Task withTaskType(String taskType) { setTaskType(taskType); return this; } /** ** Specifies the particular task implementation that Amazon AppFlow performs. *
* * @param taskType * Specifies the particular task implementation that Amazon AppFlow performs. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskType */ public Task withTaskType(TaskType taskType) { this.taskType = taskType.toString(); return this; } /** *
* A map used to store task-related information. The execution service looks for particular information based on the
* TaskType
.
*
TaskType
.
*/
public java.util.Map
* A map used to store task-related information. The execution service looks for particular information based on the
* TaskType
.
*
TaskType
.
*/
public void setTaskProperties(java.util.Map
* A map used to store task-related information. The execution service looks for particular information based on the
* TaskType
.
*
TaskType
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Task withTaskProperties(java.util.Map