Struct aws_sdk_s3::output::put_object_retention_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PutObjectRetentionOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn request_charged(self, input: RequestCharged) -> Self
pub fn request_charged(self, input: RequestCharged) -> Self
If present, indicates that the requester was successfully charged for the request.
sourcepub fn set_request_charged(self, input: Option<RequestCharged>) -> Self
pub fn set_request_charged(self, input: Option<RequestCharged>) -> Self
If present, indicates that the requester was successfully charged for the request.
Examples found in repository?
src/operation_deser.rs (lines 3727-3730)
3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733
pub fn parse_put_object_retention_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::PutObjectRetentionOutput,
crate::error::PutObjectRetentionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::put_object_retention_output::Builder::default();
let _ = response;
output = output.set_request_charged(
crate::http_serde::deser_header_put_object_retention_put_object_retention_output_request_charged(response.headers())
.map_err(|_|crate::error::PutObjectRetentionError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))?
);
output.build()
})
}
sourcepub fn build(self) -> PutObjectRetentionOutput
pub fn build(self) -> PutObjectRetentionOutput
Consumes the builder and constructs a PutObjectRetentionOutput
.
Examples found in repository?
src/operation_deser.rs (line 3731)
3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733
pub fn parse_put_object_retention_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::PutObjectRetentionOutput,
crate::error::PutObjectRetentionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::put_object_retention_output::Builder::default();
let _ = response;
output = output.set_request_charged(
crate::http_serde::deser_header_put_object_retention_put_object_retention_output_request_charged(response.headers())
.map_err(|_|crate::error::PutObjectRetentionError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))?
);
output.build()
})
}