public UploadPartRequest withInputStream(InputStream inputStream) {
        setInputStream(inputStream);
        return this;
    }
Sets the stream containing the data to upload for the new part, and
returns this updated object so that additional method calls can be
chained together.

@param inputStream
           the stream containing the data to upload for the new part.

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