Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gets the specified object's chunk.
Synopsis
- data GetChunk = GetChunk' {
- storageJobId :: Text
- chunkToken :: Text
- newGetChunk :: Text -> Text -> GetChunk
- getChunk_storageJobId :: Lens' GetChunk Text
- getChunk_chunkToken :: Lens' GetChunk Text
- data GetChunkResponse = GetChunkResponse' {}
- newGetChunkResponse :: Int -> Integer -> Text -> DataChecksumAlgorithm -> ResponseBody -> GetChunkResponse
- getChunkResponse_httpStatus :: Lens' GetChunkResponse Int
- getChunkResponse_length :: Lens' GetChunkResponse Integer
- getChunkResponse_checksum :: Lens' GetChunkResponse Text
- getChunkResponse_checksumAlgorithm :: Lens' GetChunkResponse DataChecksumAlgorithm
- getChunkResponse_data :: Lens' GetChunkResponse ResponseBody
Creating a Request
See: newGetChunk
smart constructor.
GetChunk' | |
|
Instances
Create a value of GetChunk
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:storageJobId:GetChunk'
, getChunk_storageJobId
- Storage job id
GetChunk
, getChunk_chunkToken
- Chunk token
Request Lenses
Destructuring the Response
data GetChunkResponse Source #
See: newGetChunkResponse
smart constructor.
GetChunkResponse' | |
|
Instances
:: Int | |
-> Integer | |
-> Text | |
-> DataChecksumAlgorithm | |
-> ResponseBody | |
-> GetChunkResponse |
Create a value of GetChunkResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetChunkResponse'
, getChunkResponse_httpStatus
- The response's http status code.
GetChunkResponse
, getChunkResponse_length
- Data length
GetChunkResponse
, getChunkResponse_checksum
- Data checksum
GetChunkResponse
, getChunkResponse_checksumAlgorithm
- Checksum algorithm
$sel:data':GetChunkResponse'
, getChunkResponse_data
- Chunk data
Response Lenses
getChunkResponse_httpStatus :: Lens' GetChunkResponse Int Source #
The response's http status code.
getChunkResponse_length :: Lens' GetChunkResponse Integer Source #
Data length
getChunkResponse_checksum :: Lens' GetChunkResponse Text Source #
Data checksum
getChunkResponse_checksumAlgorithm :: Lens' GetChunkResponse DataChecksumAlgorithm Source #
Checksum algorithm
getChunkResponse_data :: Lens' GetChunkResponse ResponseBody Source #
Chunk data