#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SiteToSiteVpnAttachment {
pub attachment: ::std::option::Option<crate::types::Attachment>,
pub vpn_connection_arn: ::std::option::Option<::std::string::String>,
}
impl SiteToSiteVpnAttachment {
pub fn attachment(&self) -> ::std::option::Option<&crate::types::Attachment> {
self.attachment.as_ref()
}
pub fn vpn_connection_arn(&self) -> ::std::option::Option<&str> {
self.vpn_connection_arn.as_deref()
}
}
impl SiteToSiteVpnAttachment {
pub fn builder() -> crate::types::builders::SiteToSiteVpnAttachmentBuilder {
crate::types::builders::SiteToSiteVpnAttachmentBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct SiteToSiteVpnAttachmentBuilder {
pub(crate) attachment: ::std::option::Option<crate::types::Attachment>,
pub(crate) vpn_connection_arn: ::std::option::Option<::std::string::String>,
}
impl SiteToSiteVpnAttachmentBuilder {
pub fn attachment(mut self, input: crate::types::Attachment) -> Self {
self.attachment = ::std::option::Option::Some(input);
self
}
pub fn set_attachment(mut self, input: ::std::option::Option<crate::types::Attachment>) -> Self {
self.attachment = input;
self
}
pub fn get_attachment(&self) -> &::std::option::Option<crate::types::Attachment> {
&self.attachment
}
pub fn vpn_connection_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.vpn_connection_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_vpn_connection_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.vpn_connection_arn = input;
self
}
pub fn get_vpn_connection_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.vpn_connection_arn
}
pub fn build(self) -> crate::types::SiteToSiteVpnAttachment {
crate::types::SiteToSiteVpnAttachment {
attachment: self.attachment,
vpn_connection_arn: self.vpn_connection_arn,
}
}
}