aws_sdk_s3/operation/get_object_lock_configuration/
_get_object_lock_configuration_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetObjectLockConfigurationOutput {
6 pub object_lock_configuration: ::std::option::Option<crate::types::ObjectLockConfiguration>,
8 _extended_request_id: Option<String>,
9 _request_id: Option<String>,
10}
11impl GetObjectLockConfigurationOutput {
12 pub fn object_lock_configuration(&self) -> ::std::option::Option<&crate::types::ObjectLockConfiguration> {
14 self.object_lock_configuration.as_ref()
15 }
16}
17impl crate::s3_request_id::RequestIdExt for GetObjectLockConfigurationOutput {
18 fn extended_request_id(&self) -> Option<&str> {
19 self._extended_request_id.as_deref()
20 }
21}
22impl ::aws_types::request_id::RequestId for GetObjectLockConfigurationOutput {
23 fn request_id(&self) -> Option<&str> {
24 self._request_id.as_deref()
25 }
26}
27impl GetObjectLockConfigurationOutput {
28 pub fn builder() -> crate::operation::get_object_lock_configuration::builders::GetObjectLockConfigurationOutputBuilder {
30 crate::operation::get_object_lock_configuration::builders::GetObjectLockConfigurationOutputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct GetObjectLockConfigurationOutputBuilder {
38 pub(crate) object_lock_configuration: ::std::option::Option<crate::types::ObjectLockConfiguration>,
39 _extended_request_id: Option<String>,
40 _request_id: Option<String>,
41}
42impl GetObjectLockConfigurationOutputBuilder {
43 pub fn object_lock_configuration(mut self, input: crate::types::ObjectLockConfiguration) -> Self {
45 self.object_lock_configuration = ::std::option::Option::Some(input);
46 self
47 }
48 pub fn set_object_lock_configuration(mut self, input: ::std::option::Option<crate::types::ObjectLockConfiguration>) -> Self {
50 self.object_lock_configuration = input;
51 self
52 }
53 pub fn get_object_lock_configuration(&self) -> &::std::option::Option<crate::types::ObjectLockConfiguration> {
55 &self.object_lock_configuration
56 }
57 pub(crate) fn _extended_request_id(mut self, extended_request_id: impl Into<String>) -> Self {
58 self._extended_request_id = Some(extended_request_id.into());
59 self
60 }
61
62 pub(crate) fn _set_extended_request_id(&mut self, extended_request_id: Option<String>) -> &mut Self {
63 self._extended_request_id = extended_request_id;
64 self
65 }
66 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
67 self._request_id = Some(request_id.into());
68 self
69 }
70
71 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
72 self._request_id = request_id;
73 self
74 }
75 pub fn build(self) -> crate::operation::get_object_lock_configuration::GetObjectLockConfigurationOutput {
77 crate::operation::get_object_lock_configuration::GetObjectLockConfigurationOutput {
78 object_lock_configuration: self.object_lock_configuration,
79 _extended_request_id: self._extended_request_id,
80 _request_id: self._request_id,
81 }
82 }
83}