pub struct PutObjectFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutObject
.
Upload object that can store object metadata String and data blob in single API call using inline chunk field.
Implementations§
source§impl PutObjectFluentBuilder
impl PutObjectFluentBuilder
sourcepub fn as_input(&self) -> &PutObjectInputBuilder
pub fn as_input(&self) -> &PutObjectInputBuilder
Access the PutObject as a reference.
sourcepub async fn send(
self
) -> Result<PutObjectOutput, SdkError<PutObjectError, HttpResponse>>
pub async fn send( self ) -> Result<PutObjectOutput, SdkError<PutObjectError, 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<PutObjectOutput, PutObjectError, Self>
pub fn customize( self ) -> CustomizableOperation<PutObjectOutput, PutObjectError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_backup_job_id(&self) -> &Option<String>
pub fn get_backup_job_id(&self) -> &Option<String>
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 get_object_name(&self) -> &Option<String>
pub fn get_object_name(&self) -> &Option<String>
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 get_metadata_string(&self) -> &Option<String>
pub fn get_metadata_string(&self) -> &Option<String>
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 get_inline_chunk(&self) -> &Option<ByteStream>
pub fn get_inline_chunk(&self) -> &Option<ByteStream>
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 get_inline_chunk_length(&self) -> &Option<i64>
pub fn get_inline_chunk_length(&self) -> &Option<i64>
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 get_inline_chunk_checksum(&self) -> &Option<String>
pub fn get_inline_chunk_checksum(&self) -> &Option<String>
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 get_inline_chunk_checksum_algorithm(&self) -> &Option<String>
pub fn get_inline_chunk_checksum_algorithm(&self) -> &Option<String>
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 get_object_checksum(&self) -> &Option<String>
pub fn get_object_checksum(&self) -> &Option<String>
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 get_object_checksum_algorithm(&self) -> &Option<SummaryChecksumAlgorithm>
pub fn get_object_checksum_algorithm(&self) -> &Option<SummaryChecksumAlgorithm>
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 get_throw_on_duplicate(&self) -> &Option<bool>
pub fn get_throw_on_duplicate(&self) -> &Option<bool>
Throw an exception if Object name is already exist.