Struct aws_sdk_s3::output::get_object_legal_hold_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetObjectLegalHoldOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn legal_hold(self, input: ObjectLockLegalHold) -> Self
pub fn legal_hold(self, input: ObjectLockLegalHold) -> Self
The current legal hold status for the specified object.
sourcepub fn set_legal_hold(self, input: Option<ObjectLockLegalHold>) -> Self
pub fn set_legal_hold(self, input: Option<ObjectLockLegalHold>) -> Self
The current legal hold status for the specified object.
Examples found in repository?
src/operation_deser.rs (lines 2040-2042)
2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045
pub fn parse_get_object_legal_hold_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetObjectLegalHoldOutput,
crate::error::GetObjectLegalHoldError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_object_legal_hold_output::Builder::default();
let _ = response;
output = output.set_legal_hold(
crate::http_serde::deser_payload_get_object_legal_hold_get_object_legal_hold_output_legal_hold(response.body().as_ref())?
);
output.build()
})
}
sourcepub fn build(self) -> GetObjectLegalHoldOutput
pub fn build(self) -> GetObjectLegalHoldOutput
Consumes the builder and constructs a GetObjectLegalHoldOutput
.
Examples found in repository?
src/operation_deser.rs (line 2043)
2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045
pub fn parse_get_object_legal_hold_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetObjectLegalHoldOutput,
crate::error::GetObjectLegalHoldError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_object_legal_hold_output::Builder::default();
let _ = response;
output = output.set_legal_hold(
crate::http_serde::deser_payload_get_object_legal_hold_get_object_legal_hold_output_legal_hold(response.body().as_ref())?
);
output.build()
})
}