pub struct Builder { /* private fields */ }
Expand description
A builder for GetObjectLockConfigurationOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn object_lock_configuration(self, input: ObjectLockConfiguration) -> Self
pub fn object_lock_configuration(self, input: ObjectLockConfiguration) -> Self
The specified bucket's Object Lock configuration.
sourcepub fn set_object_lock_configuration(
self,
input: Option<ObjectLockConfiguration>
) -> Self
pub fn set_object_lock_configuration(
self,
input: Option<ObjectLockConfiguration>
) -> Self
The specified bucket's Object Lock configuration.
Examples found in repository?
src/operation_deser.rs (lines 2072-2074)
2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077
pub fn parse_get_object_lock_configuration_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetObjectLockConfigurationOutput,
crate::error::GetObjectLockConfigurationError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_object_lock_configuration_output::Builder::default();
let _ = response;
output = output.set_object_lock_configuration(
crate::http_serde::deser_payload_get_object_lock_configuration_get_object_lock_configuration_output_object_lock_configuration(response.body().as_ref())?
);
output.build()
})
}
sourcepub fn build(self) -> GetObjectLockConfigurationOutput
pub fn build(self) -> GetObjectLockConfigurationOutput
Consumes the builder and constructs a GetObjectLockConfigurationOutput
.
Examples found in repository?
src/operation_deser.rs (line 2075)
2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077
pub fn parse_get_object_lock_configuration_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetObjectLockConfigurationOutput,
crate::error::GetObjectLockConfigurationError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_object_lock_configuration_output::Builder::default();
let _ = response;
output = output.set_object_lock_configuration(
crate::http_serde::deser_payload_get_object_lock_configuration_get_object_lock_configuration_output_object_lock_configuration(response.body().as_ref())?
);
output.build()
})
}