aws_sdk_backupstorage/client/
get_chunk.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetChunk`](crate::operation::get_chunk::builders::GetChunkFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`storage_job_id(impl Into<String>)`](crate::operation::get_chunk::builders::GetChunkFluentBuilder::storage_job_id) / [`set_storage_job_id(Option<String>)`](crate::operation::get_chunk::builders::GetChunkFluentBuilder::set_storage_job_id):<br>required: **true**<br>Storage job id<br>
7    ///   - [`chunk_token(impl Into<String>)`](crate::operation::get_chunk::builders::GetChunkFluentBuilder::chunk_token) / [`set_chunk_token(Option<String>)`](crate::operation::get_chunk::builders::GetChunkFluentBuilder::set_chunk_token):<br>required: **true**<br>Chunk token<br>
8    /// - On success, responds with [`GetChunkOutput`](crate::operation::get_chunk::GetChunkOutput) with field(s):
9    ///   - [`data(ByteStream)`](crate::operation::get_chunk::GetChunkOutput::data): Chunk data
10    ///   - [`length(i64)`](crate::operation::get_chunk::GetChunkOutput::length): Data length
11    ///   - [`checksum(String)`](crate::operation::get_chunk::GetChunkOutput::checksum): Data checksum
12    ///   - [`checksum_algorithm(DataChecksumAlgorithm)`](crate::operation::get_chunk::GetChunkOutput::checksum_algorithm): Checksum algorithm
13    /// - On failure, responds with [`SdkError<GetChunkError>`](crate::operation::get_chunk::GetChunkError)
14    pub fn get_chunk(&self) -> crate::operation::get_chunk::builders::GetChunkFluentBuilder {
15        crate::operation::get_chunk::builders::GetChunkFluentBuilder::new(self.handle.clone())
16    }
17}