code: private PutObjectRequest newPutObjectRequest(String key,
        ObjectMetadata metadata, InputStream inputStream) {
      PutObjectRequest putObjectRequest = new PutObjectRequest(mBucket, key,
          inputStream, metadata);
      return putObjectRequest;
    }
docs: Create a {@link PutObjectRequest} request.
  The metadata is assumed to have been configured with the size of the
  operation.
  @param key key of object
  @param metadata metadata header
  @param inputStream source data
  @return the request