#[non_exhaustive]pub struct CreateCommitInputBuilder { /* private fields */ }
Expand description
A builder for CreateCommitInput
.
Implementations§
source§impl CreateCommitInputBuilder
impl CreateCommitInputBuilder
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.
This field is required.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.
This field is required.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 put_files
.
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 delete_files
.
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 set_file_modes
.
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.
sourcepub fn build(self) -> Result<CreateCommitInput, BuildError>
pub fn build(self) -> Result<CreateCommitInput, BuildError>
Consumes the builder and constructs a CreateCommitInput
.
source§impl CreateCommitInputBuilder
impl CreateCommitInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateCommitOutput, SdkError<CreateCommitError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateCommitOutput, SdkError<CreateCommitError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateCommitInputBuilder
impl Clone for CreateCommitInputBuilder
source§fn clone(&self) -> CreateCommitInputBuilder
fn clone(&self) -> CreateCommitInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCommitInputBuilder
impl Debug for CreateCommitInputBuilder
source§impl Default for CreateCommitInputBuilder
impl Default for CreateCommitInputBuilder
source§fn default() -> CreateCommitInputBuilder
fn default() -> CreateCommitInputBuilder
source§impl PartialEq for CreateCommitInputBuilder
impl PartialEq for CreateCommitInputBuilder
source§fn eq(&self, other: &CreateCommitInputBuilder) -> bool
fn eq(&self, other: &CreateCommitInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.