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