#[non_exhaustive]pub struct GetFileOutputBuilder { /* private fields */ }
Expand description
A builder for GetFileOutput
.
Implementations§
source§impl GetFileOutputBuilder
impl GetFileOutputBuilder
sourcepub fn commit_id(self, input: impl Into<String>) -> Self
pub fn commit_id(self, input: impl Into<String>) -> Self
The full commit ID of the commit that contains the content returned by GetFile.
This field is required.sourcepub fn set_commit_id(self, input: Option<String>) -> Self
pub fn set_commit_id(self, input: Option<String>) -> Self
The full commit ID of the commit that contains the content returned by GetFile.
sourcepub fn get_commit_id(&self) -> &Option<String>
pub fn get_commit_id(&self) -> &Option<String>
The full commit ID of the commit that contains the content returned by GetFile.
sourcepub fn blob_id(self, input: impl Into<String>) -> Self
pub fn blob_id(self, input: impl Into<String>) -> Self
The blob ID of the object that represents the file content.
This field is required.sourcepub fn set_blob_id(self, input: Option<String>) -> Self
pub fn set_blob_id(self, input: Option<String>) -> Self
The blob ID of the object that represents the file content.
sourcepub fn get_blob_id(&self) -> &Option<String>
pub fn get_blob_id(&self) -> &Option<String>
The blob ID of the object that represents the file content.
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 specified file. Returns the name and extension 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 fully qualified path to the specified file. Returns the name and extension of the file.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The fully qualified path to the specified file. Returns the name and extension of the file.
sourcepub fn file_mode(self, input: FileModeTypeEnum) -> Self
pub fn file_mode(self, input: FileModeTypeEnum) -> Self
The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
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 of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
sourcepub fn get_file_mode(&self) -> &Option<FileModeTypeEnum>
pub fn get_file_mode(&self) -> &Option<FileModeTypeEnum>
The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
sourcepub fn file_size(self, input: i64) -> Self
pub fn file_size(self, input: i64) -> Self
The size of the contents of the file, in bytes.
This field is required.sourcepub fn set_file_size(self, input: Option<i64>) -> Self
pub fn set_file_size(self, input: Option<i64>) -> Self
The size of the contents of the file, in bytes.
sourcepub fn get_file_size(&self) -> &Option<i64>
pub fn get_file_size(&self) -> &Option<i64>
The size of the contents of the file, in bytes.
sourcepub fn file_content(self, input: Blob) -> Self
pub fn file_content(self, input: Blob) -> Self
The base-64 encoded binary data object that represents the content of the file.
This field is required.sourcepub fn set_file_content(self, input: Option<Blob>) -> Self
pub fn set_file_content(self, input: Option<Blob>) -> Self
The base-64 encoded binary data object that represents the content of the file.
sourcepub fn get_file_content(&self) -> &Option<Blob>
pub fn get_file_content(&self) -> &Option<Blob>
The base-64 encoded binary data object that represents the content of the file.
sourcepub fn build(self) -> Result<GetFileOutput, BuildError>
pub fn build(self) -> Result<GetFileOutput, BuildError>
Consumes the builder and constructs a GetFileOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetFileOutputBuilder
impl Clone for GetFileOutputBuilder
source§fn clone(&self) -> GetFileOutputBuilder
fn clone(&self) -> GetFileOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetFileOutputBuilder
impl Debug for GetFileOutputBuilder
source§impl Default for GetFileOutputBuilder
impl Default for GetFileOutputBuilder
source§fn default() -> GetFileOutputBuilder
fn default() -> GetFileOutputBuilder
source§impl PartialEq for GetFileOutputBuilder
impl PartialEq for GetFileOutputBuilder
source§fn eq(&self, other: &GetFileOutputBuilder) -> bool
fn eq(&self, other: &GetFileOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.