Struct aws_sdk_backupstorage::client::fluent_builders::PutObject
source · pub struct PutObject { /* 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 PutObject
impl PutObject
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutObject, AwsResponseRetryClassifier>, SdkError<PutObjectError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutObject, AwsResponseRetryClassifier>, SdkError<PutObjectError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<PutObjectOutput, SdkError<PutObjectError>>
pub async fn send(self) -> Result<PutObjectOutput, SdkError<PutObjectError>>
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 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.