public DataTransferApi withType(DataTransferApiType type) {
        this.type = type.toString();
        return this;
    }
<p>
You can specify one of the following types:
</p>
<dl>
<dt>AUTOMATIC</dt>
<dd>
<p>
The default. Optimizes a flow for datasets that fluctuate in size from small to large. For each flow run, Amazon
AppFlow chooses to use the SYNC or ASYNC API type based on the amount of data that the run transfers.
</p>
</dd>
<dt>SYNC</dt>
<dd>
<p>
A synchronous API. This type of API optimizes a flow for small to medium-sized datasets.
</p>
</dd>
<dt>ASYNC</dt>
<dd>
<p>
An asynchronous API. This type of API optimizes a flow for large datasets.
</p>
</dd>
</dl>

@param type
       You can specify one of the following types:</p>
       <dl>
       <dt>AUTOMATIC</dt>
       <dd>
       <p>
       The default. Optimizes a flow for datasets that fluctuate in size from small to large. For each flow run,
       Amazon AppFlow chooses to use the SYNC or ASYNC API type based on the amount of data that the run
       transfers.
       </p>
       </dd>
       <dt>SYNC</dt>
       <dd>
       <p>
       A synchronous API. This type of API optimizes a flow for small to medium-sized datasets.
       </p>
       </dd>
       <dt>ASYNC</dt>
       <dd>
       <p>
       An asynchronous API. This type of API optimizes a flow for large datasets.
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see DataTransferApiType
aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/DataTransferApi.java