#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAccountConfigurationOutput {
pub expiry_events: ::std::option::Option<crate::types::ExpiryEventsConfiguration>,
_request_id: Option<String>,
}
impl GetAccountConfigurationOutput {
pub fn expiry_events(&self) -> ::std::option::Option<&crate::types::ExpiryEventsConfiguration> {
self.expiry_events.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetAccountConfigurationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetAccountConfigurationOutput {
pub fn builder() -> crate::operation::get_account_configuration::builders::GetAccountConfigurationOutputBuilder {
crate::operation::get_account_configuration::builders::GetAccountConfigurationOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAccountConfigurationOutputBuilder {
pub(crate) expiry_events: ::std::option::Option<crate::types::ExpiryEventsConfiguration>,
_request_id: Option<String>,
}
impl GetAccountConfigurationOutputBuilder {
pub fn expiry_events(mut self, input: crate::types::ExpiryEventsConfiguration) -> Self {
self.expiry_events = ::std::option::Option::Some(input);
self
}
pub fn set_expiry_events(mut self, input: ::std::option::Option<crate::types::ExpiryEventsConfiguration>) -> Self {
self.expiry_events = input;
self
}
pub fn get_expiry_events(&self) -> &::std::option::Option<crate::types::ExpiryEventsConfiguration> {
&self.expiry_events
}
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::get_account_configuration::GetAccountConfigurationOutput {
crate::operation::get_account_configuration::GetAccountConfigurationOutput {
expiry_events: self.expiry_events,
_request_id: self._request_id,
}
}
}