Struct aws_sdk_backupstorage::input::put_object_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PutObjectInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn backup_job_id(self, input: impl Into<String>) -> Self
pub fn backup_job_id(self, input: impl Into<String>) -> Self
Backup job Id for the in-progress backup.
sourcepub fn set_backup_job_id(self, input: Option<String>) -> Self
pub fn set_backup_job_id(self, input: Option<String>) -> Self
Backup job Id for the in-progress backup.
sourcepub fn object_name(self, input: impl Into<String>) -> Self
pub fn object_name(self, input: impl Into<String>) -> Self
The name of the Object to be uploaded.
sourcepub fn set_object_name(self, input: Option<String>) -> Self
pub fn set_object_name(self, input: Option<String>) -> Self
The name of the Object to be uploaded.
sourcepub fn metadata_string(self, input: impl Into<String>) -> Self
pub fn metadata_string(self, input: impl Into<String>) -> Self
Store user defined metadata like backup checksum, disk ids, restore metadata etc.
sourcepub fn set_metadata_string(self, input: Option<String>) -> Self
pub fn set_metadata_string(self, input: Option<String>) -> Self
Store user defined metadata like backup checksum, disk ids, restore metadata etc.
sourcepub fn inline_chunk(self, input: ByteStream) -> Self
pub fn inline_chunk(self, input: ByteStream) -> Self
Inline chunk data to be uploaded.
sourcepub fn set_inline_chunk(self, input: Option<ByteStream>) -> Self
pub fn set_inline_chunk(self, input: Option<ByteStream>) -> Self
Inline chunk data to be uploaded.
sourcepub fn inline_chunk_length(self, input: i64) -> Self
pub fn inline_chunk_length(self, input: i64) -> Self
Length of the inline chunk data.
sourcepub fn set_inline_chunk_length(self, input: Option<i64>) -> Self
pub fn set_inline_chunk_length(self, input: Option<i64>) -> Self
Length of the inline chunk data.
sourcepub fn inline_chunk_checksum(self, input: impl Into<String>) -> Self
pub fn inline_chunk_checksum(self, input: impl Into<String>) -> Self
Inline chunk checksum
sourcepub fn set_inline_chunk_checksum(self, input: Option<String>) -> Self
pub fn set_inline_chunk_checksum(self, input: Option<String>) -> Self
Inline chunk checksum
sourcepub fn inline_chunk_checksum_algorithm(self, input: impl Into<String>) -> Self
pub fn inline_chunk_checksum_algorithm(self, input: impl Into<String>) -> Self
Inline chunk checksum algorithm
sourcepub fn set_inline_chunk_checksum_algorithm(self, input: Option<String>) -> Self
pub fn set_inline_chunk_checksum_algorithm(self, input: Option<String>) -> Self
Inline chunk checksum algorithm
sourcepub fn object_checksum(self, input: impl Into<String>) -> Self
pub fn object_checksum(self, input: impl Into<String>) -> Self
object checksum
sourcepub fn set_object_checksum(self, input: Option<String>) -> Self
pub fn set_object_checksum(self, input: Option<String>) -> Self
object checksum
sourcepub fn object_checksum_algorithm(self, input: SummaryChecksumAlgorithm) -> Self
pub fn object_checksum_algorithm(self, input: SummaryChecksumAlgorithm) -> Self
object checksum algorithm
sourcepub fn set_object_checksum_algorithm(
self,
input: Option<SummaryChecksumAlgorithm>
) -> Self
pub fn set_object_checksum_algorithm(
self,
input: Option<SummaryChecksumAlgorithm>
) -> Self
object checksum algorithm
sourcepub fn throw_on_duplicate(self, input: bool) -> Self
pub fn throw_on_duplicate(self, input: bool) -> Self
Throw an exception if Object name is already exist.
sourcepub fn set_throw_on_duplicate(self, input: Option<bool>) -> Self
pub fn set_throw_on_duplicate(self, input: Option<bool>) -> Self
Throw an exception if Object name is already exist.
sourcepub fn build(self) -> Result<PutObjectInput, BuildError>
pub fn build(self) -> Result<PutObjectInput, BuildError>
Consumes the builder and constructs a PutObjectInput
.