#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribePrivateConnectionInput {
pub private_connection_name: ::std::option::Option<::std::string::String>,
}
impl DescribePrivateConnectionInput {
pub fn private_connection_name(&self) -> ::std::option::Option<&str> {
self.private_connection_name.as_deref()
}
}
impl DescribePrivateConnectionInput {
pub fn builder() -> crate::operation::describe_private_connection::builders::DescribePrivateConnectionInputBuilder {
crate::operation::describe_private_connection::builders::DescribePrivateConnectionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribePrivateConnectionInputBuilder {
pub(crate) private_connection_name: ::std::option::Option<::std::string::String>,
}
impl DescribePrivateConnectionInputBuilder {
pub fn private_connection_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.private_connection_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_private_connection_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.private_connection_name = input;
self
}
pub fn get_private_connection_name(&self) -> &::std::option::Option<::std::string::String> {
&self.private_connection_name
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::describe_private_connection::DescribePrivateConnectionInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::describe_private_connection::DescribePrivateConnectionInput {
private_connection_name: self.private_connection_name,
})
}
}