aws_sdk_codecommit/client/
get_blob.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 [`GetBlob`](crate::operation::get_blob::builders::GetBlobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`repository_name(impl Into<String>)`](crate::operation::get_blob::builders::GetBlobFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::get_blob::builders::GetBlobFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository that contains the blob.</p><br>
7    ///   - [`blob_id(impl Into<String>)`](crate::operation::get_blob::builders::GetBlobFluentBuilder::blob_id) / [`set_blob_id(Option<String>)`](crate::operation::get_blob::builders::GetBlobFluentBuilder::set_blob_id):<br>required: **true**<br><p>The ID of the blob, which is its SHA-1 pointer.</p><br>
8    /// - On success, responds with [`GetBlobOutput`](crate::operation::get_blob::GetBlobOutput) with field(s):
9    ///   - [`content(Blob)`](crate::operation::get_blob::GetBlobOutput::content): <p>The content of the blob, usually a file.</p>
10    /// - On failure, responds with [`SdkError<GetBlobError>`](crate::operation::get_blob::GetBlobError)
11    pub fn get_blob(&self) -> crate::operation::get_blob::builders::GetBlobFluentBuilder {
12        crate::operation::get_blob::builders::GetBlobFluentBuilder::new(self.handle.clone())
13    }
14}