Struct aws_sdk_codecommit::client::fluent_builders::CreateCommit
source · [−]pub struct CreateCommit { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCommit
.
Creates a commit for a repository on the tip of a specified branch.
Implementations
sourceimpl CreateCommit
impl CreateCommit
sourcepub async fn send(
self
) -> Result<CreateCommitOutput, SdkError<CreateCommitError>>
pub async fn send(
self
) -> Result<CreateCommitOutput, SdkError<CreateCommitError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository where you create the commit.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository where you create the commit.
sourcepub fn branch_name(self, input: impl Into<String>) -> Self
pub fn branch_name(self, input: impl Into<String>) -> Self
The name of the branch where you create the commit.
sourcepub fn set_branch_name(self, input: Option<String>) -> Self
pub fn set_branch_name(self, input: Option<String>) -> Self
The name of the branch where you create the commit.
sourcepub fn parent_commit_id(self, input: impl Into<String>) -> Self
pub fn parent_commit_id(self, input: impl Into<String>) -> Self
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
sourcepub fn set_parent_commit_id(self, input: Option<String>) -> Self
pub fn set_parent_commit_id(self, input: Option<String>) -> Self
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
The name of the author who created the commit. This information is used as both the author and committer for the commit.
The name of the author who created the commit. This information is used as both the author and committer for the commit.
sourcepub fn email(self, input: impl Into<String>) -> Self
pub fn email(self, input: impl Into<String>) -> Self
The email address of the person who created the commit.
sourcepub fn set_email(self, input: Option<String>) -> Self
pub fn set_email(self, input: Option<String>) -> Self
The email address of the person who created the commit.
sourcepub fn commit_message(self, input: impl Into<String>) -> Self
pub fn commit_message(self, input: impl Into<String>) -> Self
The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
sourcepub fn set_commit_message(self, input: Option<String>) -> Self
pub fn set_commit_message(self, input: Option<String>) -> Self
The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
sourcepub fn keep_empty_folders(self, input: bool) -> Self
pub fn keep_empty_folders(self, input: bool) -> Self
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
sourcepub fn set_keep_empty_folders(self, input: Option<bool>) -> Self
pub fn set_keep_empty_folders(self, input: Option<bool>) -> Self
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
sourcepub fn put_files(self, input: PutFileEntry) -> Self
pub fn put_files(self, input: PutFileEntry) -> Self
Appends an item to putFiles
.
To override the contents of this collection use set_put_files
.
The files to add or update in this commit.
sourcepub fn set_put_files(self, input: Option<Vec<PutFileEntry>>) -> Self
pub fn set_put_files(self, input: Option<Vec<PutFileEntry>>) -> Self
The files to add or update in this commit.
sourcepub fn delete_files(self, input: DeleteFileEntry) -> Self
pub fn delete_files(self, input: DeleteFileEntry) -> Self
Appends an item to deleteFiles
.
To override the contents of this collection use set_delete_files
.
The files to delete in this commit. These files still exist in earlier commits.
sourcepub fn set_delete_files(self, input: Option<Vec<DeleteFileEntry>>) -> Self
pub fn set_delete_files(self, input: Option<Vec<DeleteFileEntry>>) -> Self
The files to delete in this commit. These files still exist in earlier commits.
sourcepub fn set_file_modes(self, input: SetFileModeEntry) -> Self
pub fn set_file_modes(self, input: SetFileModeEntry) -> Self
Appends an item to setFileModes
.
To override the contents of this collection use set_set_file_modes
.
The file modes to update for files in this commit.
sourcepub fn set_set_file_modes(self, input: Option<Vec<SetFileModeEntry>>) -> Self
pub fn set_set_file_modes(self, input: Option<Vec<SetFileModeEntry>>) -> Self
The file modes to update for files in this commit.
Trait Implementations
sourceimpl Clone for CreateCommit
impl Clone for CreateCommit
sourcefn clone(&self) -> CreateCommit
fn clone(&self) -> CreateCommit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateCommit
impl Send for CreateCommit
impl Sync for CreateCommit
impl Unpin for CreateCommit
impl !UnwindSafe for CreateCommit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more