1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetFile`](crate::operation::get_file::builders::GetFileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`repository_name(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository that contains the file.</p><br>
    ///   - [`commit_specifier(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::commit_specifier) / [`set_commit_specifier(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_commit_specifier):<br>required: **false**<br><p>The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.</p><br>
    ///   - [`file_path(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::file_path) / [`set_file_path(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_file_path):<br>required: **true**<br><p>The fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.</p><br>
    /// - On success, responds with [`GetFileOutput`](crate::operation::get_file::GetFileOutput) with field(s):
    ///   - [`commit_id(String)`](crate::operation::get_file::GetFileOutput::commit_id): <p>The full commit ID of the commit that contains the content returned by GetFile.</p>
    ///   - [`blob_id(String)`](crate::operation::get_file::GetFileOutput::blob_id): <p>The blob ID of the object that represents the file content.</p>
    ///   - [`file_path(String)`](crate::operation::get_file::GetFileOutput::file_path): <p>The fully qualified path to the specified file. Returns the name and extension of the file.</p>
    ///   - [`file_mode(FileModeTypeEnum)`](crate::operation::get_file::GetFileOutput::file_mode): <p>The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.</p><note>  <p>The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.</p> </note>
    ///   - [`file_size(i64)`](crate::operation::get_file::GetFileOutput::file_size): <p>The size of the contents of the file, in bytes.</p>
    ///   - [`file_content(Blob)`](crate::operation::get_file::GetFileOutput::file_content): <p>The base-64 encoded binary data object that represents the content of the file.</p>
    /// - On failure, responds with [`SdkError<GetFileError>`](crate::operation::get_file::GetFileError)
    pub fn get_file(&self) -> crate::operation::get_file::builders::GetFileFluentBuilder {
        crate::operation::get_file::builders::GetFileFluentBuilder::new(self.handle.clone())
    }
}