public ResourceDataSyncItem withSyncType(String syncType) {
        setSyncType(syncType);
        return this;
    }
<p>
The type of resource data sync. If <code>SyncType</code> is <code>SyncToDestination</code>, then the resource
data sync synchronizes data to an S3 bucket. If the <code>SyncType</code> is <code>SyncFromSource</code> then the
resource data sync synchronizes data from Organizations or from multiple Amazon Web Services Regions.
</p>

@param syncType
       The type of resource data sync. If <code>SyncType</code> is <code>SyncToDestination</code>, then the
       resource data sync synchronizes data to an S3 bucket. If the <code>SyncType</code> is
       <code>SyncFromSource</code> then the resource data sync synchronizes data from Organizations or from
       multiple Amazon Web Services Regions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ResourceDataSyncItem.java