Struct aws_sdk_codecommit::types::builders::PutFileEntryBuilder
source · #[non_exhaustive]pub struct PutFileEntryBuilder { /* private fields */ }
Expand description
A builder for PutFileEntry
.
Implementations§
source§impl PutFileEntryBuilder
impl PutFileEntryBuilder
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
The full path to the file in the repository, including the name of the file.
This field is required.sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
The full path to the file in the repository, including the name of the file.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The full path to the file in the repository, including the name of the file.
sourcepub fn file_mode(self, input: FileModeTypeEnum) -> Self
pub fn file_mode(self, input: FileModeTypeEnum) -> Self
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
sourcepub fn set_file_mode(self, input: Option<FileModeTypeEnum>) -> Self
pub fn set_file_mode(self, input: Option<FileModeTypeEnum>) -> Self
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
sourcepub fn get_file_mode(&self) -> &Option<FileModeTypeEnum>
pub fn get_file_mode(&self) -> &Option<FileModeTypeEnum>
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
sourcepub fn file_content(self, input: Blob) -> Self
pub fn file_content(self, input: Blob) -> Self
The content of the file, if a source file is not specified.
sourcepub fn set_file_content(self, input: Option<Blob>) -> Self
pub fn set_file_content(self, input: Option<Blob>) -> Self
The content of the file, if a source file is not specified.
sourcepub fn get_file_content(&self) -> &Option<Blob>
pub fn get_file_content(&self) -> &Option<Blob>
The content of the file, if a source file is not specified.
sourcepub fn source_file(self, input: SourceFileSpecifier) -> Self
pub fn source_file(self, input: SourceFileSpecifier) -> Self
The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
sourcepub fn set_source_file(self, input: Option<SourceFileSpecifier>) -> Self
pub fn set_source_file(self, input: Option<SourceFileSpecifier>) -> Self
The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
sourcepub fn get_source_file(&self) -> &Option<SourceFileSpecifier>
pub fn get_source_file(&self) -> &Option<SourceFileSpecifier>
The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
sourcepub fn build(self) -> Result<PutFileEntry, BuildError>
pub fn build(self) -> Result<PutFileEntry, BuildError>
Consumes the builder and constructs a PutFileEntry
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PutFileEntryBuilder
impl Clone for PutFileEntryBuilder
source§fn clone(&self) -> PutFileEntryBuilder
fn clone(&self) -> PutFileEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutFileEntryBuilder
impl Debug for PutFileEntryBuilder
source§impl Default for PutFileEntryBuilder
impl Default for PutFileEntryBuilder
source§fn default() -> PutFileEntryBuilder
fn default() -> PutFileEntryBuilder
source§impl PartialEq for PutFileEntryBuilder
impl PartialEq for PutFileEntryBuilder
source§fn eq(&self, other: &PutFileEntryBuilder) -> bool
fn eq(&self, other: &PutFileEntryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.