aws_sdk_codecommit/client/
batch_get_commits.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 [`BatchGetCommits`](crate::operation::batch_get_commits::builders::BatchGetCommitsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`commit_ids(impl Into<String>)`](crate::operation::batch_get_commits::builders::BatchGetCommitsFluentBuilder::commit_ids) / [`set_commit_ids(Option<Vec::<String>>)`](crate::operation::batch_get_commits::builders::BatchGetCommitsFluentBuilder::set_commit_ids):<br>required: **true**<br><p>The full commit IDs of the commits to get information about.</p><note>  <p>You must supply the full SHA IDs of each commit. You cannot use shortened SHA IDs.</p> </note><br>
7    ///   - [`repository_name(impl Into<String>)`](crate::operation::batch_get_commits::builders::BatchGetCommitsFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::batch_get_commits::builders::BatchGetCommitsFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository that contains the commits.</p><br>
8    /// - On success, responds with [`BatchGetCommitsOutput`](crate::operation::batch_get_commits::BatchGetCommitsOutput) with field(s):
9    ///   - [`commits(Option<Vec::<Commit>>)`](crate::operation::batch_get_commits::BatchGetCommitsOutput::commits): <p>An array of commit data type objects, each of which contains information about a specified commit.</p>
10    ///   - [`errors(Option<Vec::<BatchGetCommitsError>>)`](crate::operation::batch_get_commits::BatchGetCommitsOutput::errors): <p>Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.</p>
11    /// - On failure, responds with [`SdkError<BatchGetCommitsError>`](crate::operation::batch_get_commits::BatchGetCommitsError)
12    pub fn batch_get_commits(&self) -> crate::operation::batch_get_commits::builders::BatchGetCommitsFluentBuilder {
13        crate::operation::batch_get_commits::builders::BatchGetCommitsFluentBuilder::new(self.handle.clone())
14    }
15}