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