public UploadPartRequest withFile(File file) {
        setFile(file);
        return this;
    }
Sets the file containing the data to upload, and returns this updated
UploadPartRequest object so that additional method calls can be chained
together.
<p>
Exactly one File or InputStream must be specified as the input to this
operation.

@param file
           The file containing the data to upload. Exactly one File or
           InputStream must be specified as the input to this operation.

@return This updated UploadPartRequest object.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/UploadPartRequest.java