#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteConnectionInput {
#[doc(hidden)]
pub connection_arn: std::option::Option<std::string::String>,
}
impl DeleteConnectionInput {
pub fn connection_arn(&self) -> std::option::Option<&str> {
self.connection_arn.as_deref()
}
}
impl DeleteConnectionInput {
pub fn builder() -> crate::operation::delete_connection::builders::DeleteConnectionInputBuilder
{
crate::operation::delete_connection::builders::DeleteConnectionInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteConnectionInputBuilder {
pub(crate) connection_arn: std::option::Option<std::string::String>,
}
impl DeleteConnectionInputBuilder {
pub fn connection_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.connection_arn = Some(input.into());
self
}
pub fn set_connection_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.connection_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_connection::DeleteConnectionInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_connection::DeleteConnectionInput {
connection_arn: self.connection_arn,
})
}
}