Struct aws_sdk_s3::output::put_object_legal_hold_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PutObjectLegalHoldOutput
.
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 3663-3666)
3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669
pub fn parse_put_object_legal_hold_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::PutObjectLegalHoldOutput,
crate::error::PutObjectLegalHoldError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::put_object_legal_hold_output::Builder::default();
let _ = response;
output = output.set_request_charged(
crate::http_serde::deser_header_put_object_legal_hold_put_object_legal_hold_output_request_charged(response.headers())
.map_err(|_|crate::error::PutObjectLegalHoldError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))?
);
output.build()
})
}
sourcepub fn build(self) -> PutObjectLegalHoldOutput
pub fn build(self) -> PutObjectLegalHoldOutput
Consumes the builder and constructs a PutObjectLegalHoldOutput
.
Examples found in repository?
src/operation_deser.rs (line 3667)
3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669
pub fn parse_put_object_legal_hold_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::PutObjectLegalHoldOutput,
crate::error::PutObjectLegalHoldError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::put_object_legal_hold_output::Builder::default();
let _ = response;
output = output.set_request_charged(
crate::http_serde::deser_header_put_object_legal_hold_put_object_legal_hold_output_request_charged(response.headers())
.map_err(|_|crate::error::PutObjectLegalHoldError::unhandled("Failed to parse RequestCharged from header `x-amz-request-charged"))?
);
output.build()
})
}