I am using Java SDK to copy file from S3 to Azur data lake Gen2.
S3Object fullObject = s3Client.getObject("bucket", "folder/file.txt");