NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class UploadPart

An object that encapsulates the data for a Glacier upload operation

  Aws\Common\Model\MultipartUpload\AbstractUploadPart implements Aws\Common\Model\MultipartUpload\UploadPartInterface
  Aws\Glacier\Model\MultipartUpload\UploadPart

Namespace: Aws\Glacier\Model\MultipartUpload
Located at Aws/Glacier/Model/MultipartUpload/UploadPart.php

## Methods summary

- `public` `getChecksum ( )`
- `public` `getContentHash ( )`
- `public` `getSize ( )`
- `public` `getOffset ( )`
- `public` `getRange ( )`

  Returns the byte range of the part as an array

- `public` `getFormattedRange ( )`

  Returns the byte range ot the part formatted for the Content-Range header

## Methods detail

# `public string`
`getChecksum( )`

#### Returns

`string`
# `public string`
`getContentHash( )`

#### Returns

`string`
# `public integer`
`getSize( )`

#### Returns

`integer`
# `public integer`
`getOffset( )`

#### Returns

`integer`
# `public array`
`getRange( )`

Returns the byte range of the part as an array

#### Returns

`array`
# `public string`
`getFormattedRange( )`

Returns the byte range ot the part formatted for the Content-Range header

#### Returns

`string`

### Methods inherited from Aws\Common\Model\MultipartUpload\AbstractUploadPart

`fromArray()`, `getPartNumber()`, `loadData()`, `serialize()`, `toArray()`, `unserialize()`

### Magic methods summary

## Properties summary

`protected static array` | $keyMap | # A map of external array keys to internal property names
`protected string` | $checksum | # The sha256 tree hash of the upload body
`protected string` | $contentHash | # The sha256 linear hash of the upload body
`protected integer` | $size | # The size (or content-length) in bytes of the upload body
`protected integer` | $offset | # The starting offset byte of the upload body

### Properties inherited from Aws\Common\Model\MultipartUpload\AbstractUploadPart

`$partNumber`