#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetConnectionInput {
#[doc(hidden)]
pub connection_arn: std::option::Option<std::string::String>,
}
impl GetConnectionInput {
pub fn connection_arn(&self) -> std::option::Option<&str> {
self.connection_arn.as_deref()
}
}
impl GetConnectionInput {
pub fn builder() -> crate::operation::get_connection::builders::GetConnectionInputBuilder {
crate::operation::get_connection::builders::GetConnectionInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetConnectionInputBuilder {
pub(crate) connection_arn: std::option::Option<std::string::String>,
}
impl GetConnectionInputBuilder {
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::get_connection::GetConnectionInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_connection::GetConnectionInput {
connection_arn: self.connection_arn,
})
}
}