code: private HttpResponse executePut(String bucketName, String objectName, Map<String,String> headerMap,
                                    Map<String,String> queryParamMap, String region, Object data, int length)
      throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException,
             InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,
             InternalException {
      HttpResponse response = execute(Method.PUT, region, bucketName, objectName,
                                      headerMap, queryParamMap,
                                      data, length);
      return response;
    }
docs: Executes PUT method for given request parameters.
  
  @param bucketName     Bucket name.
  @param objectName     Object name in the bucket.
  @param headerMap      Map of HTTP headers for the request.
  @param queryParamMap  Map of HTTP query parameters of the request.
  @param region         Amazon S3 region of the bucket.
  @param data           HTTP request body data.
  @param length         Length of HTTP request body data.