Struct aws_sdk_s3::output::get_object_retention_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetObjectRetentionOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn retention(self, input: ObjectLockRetention) -> Self
pub fn retention(self, input: ObjectLockRetention) -> Self
The container element for an object's retention settings.
sourcepub fn set_retention(self, input: Option<ObjectLockRetention>) -> Self
pub fn set_retention(self, input: Option<ObjectLockRetention>) -> Self
The container element for an object's retention settings.
Examples found in repository?
src/operation_deser.rs (lines 2102-2104)
2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107
pub fn parse_get_object_retention_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetObjectRetentionOutput,
crate::error::GetObjectRetentionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_object_retention_output::Builder::default();
let _ = response;
output = output.set_retention(
crate::http_serde::deser_payload_get_object_retention_get_object_retention_output_retention(response.body().as_ref())?
);
output.build()
})
}
sourcepub fn build(self) -> GetObjectRetentionOutput
pub fn build(self) -> GetObjectRetentionOutput
Consumes the builder and constructs a GetObjectRetentionOutput
.
Examples found in repository?
src/operation_deser.rs (line 2105)
2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107
pub fn parse_get_object_retention_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetObjectRetentionOutput,
crate::error::GetObjectRetentionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_object_retention_output::Builder::default();
let _ = response;
output = output.set_retention(
crate::http_serde::deser_payload_get_object_retention_get_object_retention_output_retention(response.body().as_ref())?
);
output.build()
})
}