1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetFolder`](crate::operation::get_folder::builders::GetFolderFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`repository_name(impl Into<String>)`](crate::operation::get_folder::builders::GetFolderFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::get_folder::builders::GetFolderFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository.</p><br>
    ///   - [`commit_specifier(impl Into<String>)`](crate::operation::get_folder::builders::GetFolderFluentBuilder::commit_specifier) / [`set_commit_specifier(Option<String>)`](crate::operation::get_folder::builders::GetFolderFluentBuilder::set_commit_specifier):<br>required: **false**<br><p>A fully qualified reference used to identify a commit that contains the version of the folder's content to return. A fully qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit.</p><br>
    ///   - [`folder_path(impl Into<String>)`](crate::operation::get_folder::builders::GetFolderFluentBuilder::folder_path) / [`set_folder_path(Option<String>)`](crate::operation::get_folder::builders::GetFolderFluentBuilder::set_folder_path):<br>required: **true**<br><p>The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.</p><br>
    /// - On success, responds with [`GetFolderOutput`](crate::operation::get_folder::GetFolderOutput) with field(s):
    ///   - [`commit_id(String)`](crate::operation::get_folder::GetFolderOutput::commit_id): <p>The full commit ID used as a reference for the returned version of the folder content.</p>
    ///   - [`folder_path(String)`](crate::operation::get_folder::GetFolderOutput::folder_path): <p>The fully qualified path of the folder whose contents are returned.</p>
    ///   - [`tree_id(Option<String>)`](crate::operation::get_folder::GetFolderOutput::tree_id): <p>The full SHA-1 pointer of the tree information for the commit that contains the folder.</p>
    ///   - [`sub_folders(Option<Vec::<Folder>>)`](crate::operation::get_folder::GetFolderOutput::sub_folders): <p>The list of folders that exist under the specified folder, if any.</p>
    ///   - [`files(Option<Vec::<File>>)`](crate::operation::get_folder::GetFolderOutput::files): <p>The list of files in the specified folder, if any.</p>
    ///   - [`symbolic_links(Option<Vec::<SymbolicLink>>)`](crate::operation::get_folder::GetFolderOutput::symbolic_links): <p>The list of symbolic links to other files and folders in the specified folder, if any.</p>
    ///   - [`sub_modules(Option<Vec::<SubModule>>)`](crate::operation::get_folder::GetFolderOutput::sub_modules): <p>The list of submodules in the specified folder, if any.</p>
    /// - On failure, responds with [`SdkError<GetFolderError>`](crate::operation::get_folder::GetFolderError)
    pub fn get_folder(&self) -> crate::operation::get_folder::builders::GetFolderFluentBuilder {
        crate::operation::get_folder::builders::GetFolderFluentBuilder::new(self.handle.clone())
    }
}