@Generated(value="software.amazon.awssdk:codegen") public final class Task extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Task.Builder,Task>
A class for modeling different type of tasks. Task implementation varies based on the TaskType.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Task.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Task.Builder |
builder() |
ConnectorOperator |
connectorOperator()
The operation to be performed on the provided source fields.
|
String |
destinationField()
A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSourceFields()
For responses, this returns true if the service returned a value for the SourceFields property.
|
boolean |
hasTaskProperties()
For responses, this returns true if the service returned a value for the TaskProperties property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Task.Builder> |
serializableBuilderClass() |
List<String> |
sourceFields()
The source fields to which a particular task is applied.
|
Map<OperatorPropertiesKeys,String> |
taskProperties()
A map used to store task-related information.
|
Map<String,String> |
taskPropertiesAsStrings()
A map used to store task-related information.
|
TaskType |
taskType()
Specifies the particular task implementation that Amazon AppFlow performs.
|
String |
taskTypeAsString()
Specifies the particular task implementation that Amazon AppFlow performs.
|
Task.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ConnectorOperator connectorOperator()
The operation to be performed on the provided source fields.
public final String destinationField()
A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.
public final boolean hasSourceFields()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> sourceFields()
The source fields to which a particular task is applied.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSourceFields() method.
public final Map<OperatorPropertiesKeys,String> taskProperties()
A map used to store task-related information. The service looks for particular information based on the TaskType.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTaskProperties() method.
public final boolean hasTaskProperties()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,String> taskPropertiesAsStrings()
A map used to store task-related information. The service looks for particular information based on the TaskType.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTaskProperties() method.
public final TaskType taskType()
Specifies the particular task implementation that Amazon AppFlow performs.
If the service returns an enum value that is not available in the current SDK version, taskType will
return TaskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
taskTypeAsString().
TaskTypepublic final String taskTypeAsString()
Specifies the particular task implementation that Amazon AppFlow performs.
If the service returns an enum value that is not available in the current SDK version, taskType will
return TaskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
taskTypeAsString().
TaskTypepublic Task.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Task.Builder,Task>public static Task.Builder builder()
public static Class<? extends Task.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.