#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAccountConfigurationOutput {
pub encryption_config: ::std::option::Option<crate::types::EncryptionConfig>,
_request_id: Option<String>,
}
impl UpdateAccountConfigurationOutput {
pub fn encryption_config(&self) -> ::std::option::Option<&crate::types::EncryptionConfig> {
self.encryption_config.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateAccountConfigurationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateAccountConfigurationOutput {
pub fn builder() -> crate::operation::update_account_configuration::builders::UpdateAccountConfigurationOutputBuilder {
crate::operation::update_account_configuration::builders::UpdateAccountConfigurationOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateAccountConfigurationOutputBuilder {
pub(crate) encryption_config: ::std::option::Option<crate::types::EncryptionConfig>,
_request_id: Option<String>,
}
impl UpdateAccountConfigurationOutputBuilder {
pub fn encryption_config(mut self, input: crate::types::EncryptionConfig) -> Self {
self.encryption_config = ::std::option::Option::Some(input);
self
}
pub fn set_encryption_config(mut self, input: ::std::option::Option<crate::types::EncryptionConfig>) -> Self {
self.encryption_config = input;
self
}
pub fn get_encryption_config(&self) -> &::std::option::Option<crate::types::EncryptionConfig> {
&self.encryption_config
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_account_configuration::UpdateAccountConfigurationOutput {
crate::operation::update_account_configuration::UpdateAccountConfigurationOutput {
encryption_config: self.encryption_config,
_request_id: self._request_id,
}
}
}