pub struct CreateCommitFluentBuilder { /* 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§
source§impl CreateCommitFluentBuilder
impl CreateCommitFluentBuilder
sourcepub fn as_input(&self) -> &CreateCommitInputBuilder
pub fn as_input(&self) -> &CreateCommitInputBuilder
Access the CreateCommit as a reference.
sourcepub async fn send(
self
) -> Result<CreateCommitOutput, SdkError<CreateCommitError, HttpResponse>>
pub async fn send( self ) -> Result<CreateCommitOutput, SdkError<CreateCommitError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateCommitOutput, CreateCommitError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateCommitOutput, CreateCommitError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
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 get_branch_name(&self) -> &Option<String>
pub fn get_branch_name(&self) -> &Option<String>
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.
sourcepub fn get_parent_commit_id(&self) -> &Option<String>
pub fn get_parent_commit_id(&self) -> &Option<String>
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.
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 get_email(&self) -> &Option<String>
pub fn get_email(&self) -> &Option<String>
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 get_commit_message(&self) -> &Option<String>
pub fn get_commit_message(&self) -> &Option<String>
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 get_keep_empty_folders(&self) -> &Option<bool>
pub fn get_keep_empty_folders(&self) -> &Option<bool>
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 get_put_files(&self) -> &Option<Vec<PutFileEntry>>
pub fn get_put_files(&self) -> &Option<Vec<PutFileEntry>>
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 get_delete_files(&self) -> &Option<Vec<DeleteFileEntry>>
pub fn get_delete_files(&self) -> &Option<Vec<DeleteFileEntry>>
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.
sourcepub fn get_set_file_modes(&self) -> &Option<Vec<SetFileModeEntry>>
pub fn get_set_file_modes(&self) -> &Option<Vec<SetFileModeEntry>>
The file modes to update for files in this commit.
Trait Implementations§
source§impl Clone for CreateCommitFluentBuilder
impl Clone for CreateCommitFluentBuilder
source§fn clone(&self) -> CreateCommitFluentBuilder
fn clone(&self) -> CreateCommitFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more