#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ConfigureLogsInput {
pub egress_access_logs: ::std::option::Option<crate::types::EgressAccessLogs>,
pub id: ::std::option::Option<::std::string::String>,
pub ingress_access_logs: ::std::option::Option<crate::types::IngressAccessLogs>,
}
impl ConfigureLogsInput {
pub fn egress_access_logs(&self) -> ::std::option::Option<&crate::types::EgressAccessLogs> {
self.egress_access_logs.as_ref()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn ingress_access_logs(&self) -> ::std::option::Option<&crate::types::IngressAccessLogs> {
self.ingress_access_logs.as_ref()
}
}
impl ConfigureLogsInput {
pub fn builder() -> crate::operation::configure_logs::builders::ConfigureLogsInputBuilder {
crate::operation::configure_logs::builders::ConfigureLogsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ConfigureLogsInputBuilder {
pub(crate) egress_access_logs: ::std::option::Option<crate::types::EgressAccessLogs>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) ingress_access_logs: ::std::option::Option<crate::types::IngressAccessLogs>,
}
impl ConfigureLogsInputBuilder {
pub fn egress_access_logs(mut self, input: crate::types::EgressAccessLogs) -> Self {
self.egress_access_logs = ::std::option::Option::Some(input);
self
}
pub fn set_egress_access_logs(mut self, input: ::std::option::Option<crate::types::EgressAccessLogs>) -> Self {
self.egress_access_logs = input;
self
}
pub fn get_egress_access_logs(&self) -> &::std::option::Option<crate::types::EgressAccessLogs> {
&self.egress_access_logs
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn ingress_access_logs(mut self, input: crate::types::IngressAccessLogs) -> Self {
self.ingress_access_logs = ::std::option::Option::Some(input);
self
}
pub fn set_ingress_access_logs(mut self, input: ::std::option::Option<crate::types::IngressAccessLogs>) -> Self {
self.ingress_access_logs = input;
self
}
pub fn get_ingress_access_logs(&self) -> &::std::option::Option<crate::types::IngressAccessLogs> {
&self.ingress_access_logs
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::configure_logs::ConfigureLogsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::configure_logs::ConfigureLogsInput {
egress_access_logs: self.egress_access_logs,
id: self.id,
ingress_access_logs: self.ingress_access_logs,
})
}
}