pub struct GetFileFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetFile
.
Returns the base-64 encoded contents of a specified file and its metadata.
Implementations§
source§impl GetFileFluentBuilder
impl GetFileFluentBuilder
sourcepub fn as_input(&self) -> &GetFileInputBuilder
pub fn as_input(&self) -> &GetFileInputBuilder
Access the GetFile as a reference.
sourcepub async fn send(
self
) -> Result<GetFileOutput, SdkError<GetFileError, HttpResponse>>
pub async fn send( self ) -> Result<GetFileOutput, SdkError<GetFileError, 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<GetFileOutput, GetFileError, Self>
pub fn customize( self ) -> CustomizableOperation<GetFileOutput, GetFileError, 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 that contains the file.
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.
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.
Trait Implementations§
source§impl Clone for GetFileFluentBuilder
impl Clone for GetFileFluentBuilder
source§fn clone(&self) -> GetFileFluentBuilder
fn clone(&self) -> GetFileFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more