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 ==
.impl StructuralPartialEq for GetFileInputBuilder
Auto Trait Implementations§
impl Freeze for GetFileInputBuilder
impl RefUnwindSafe for GetFileInputBuilder
impl Send for GetFileInputBuilder
impl Sync for GetFileInputBuilder
impl Unpin for GetFileInputBuilder
impl UnwindSafe for GetFileInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more