Struct aws_sdk_codecommit::operation::get_file::builders::GetFileInputBuilder
source · #[non_exhaustive]pub struct GetFileInputBuilder { /* private fields */ }
Expand description
A builder for GetFileInput
.
Implementations§
source§impl GetFileInputBuilder
impl GetFileInputBuilder
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 that contains the file.
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 that contains the file.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository that contains the file.
sourcepub fn commit_specifier(self, input: impl Into<String>) -> Self
pub fn commit_specifier(self, input: impl Into<String>) -> Self
The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.
sourcepub fn set_commit_specifier(self, input: Option<String>) -> Self
pub fn set_commit_specifier(self, input: Option<String>) -> Self
The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.
sourcepub fn get_commit_specifier(&self) -> &Option<String>
pub fn get_commit_specifier(&self) -> &Option<String>
The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
The fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.
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 fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.
sourcepub fn build(self) -> Result<GetFileInput, BuildError>
pub fn build(self) -> Result<GetFileInput, BuildError>
Consumes the builder and constructs a GetFileInput
.
source§impl GetFileInputBuilder
impl GetFileInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetFileOutput, SdkError<GetFileError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetFileOutput, SdkError<GetFileError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetFileInputBuilder
impl Clone for GetFileInputBuilder
source§fn clone(&self) -> GetFileInputBuilder
fn clone(&self) -> GetFileInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetFileInputBuilder
impl Debug for GetFileInputBuilder
source§impl Default for GetFileInputBuilder
impl Default for GetFileInputBuilder
source§fn default() -> GetFileInputBuilder
fn default() -> GetFileInputBuilder
source§impl PartialEq for GetFileInputBuilder
impl PartialEq for GetFileInputBuilder
source§fn eq(&self, other: &GetFileInputBuilder) -> bool
fn eq(&self, other: &GetFileInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.