#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateGatewayInstanceInput {
pub bridge_placement: ::std::option::Option<crate::types::BridgePlacement>,
pub gateway_instance_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateGatewayInstanceInput {
pub fn bridge_placement(&self) -> ::std::option::Option<&crate::types::BridgePlacement> {
self.bridge_placement.as_ref()
}
pub fn gateway_instance_arn(&self) -> ::std::option::Option<&str> {
self.gateway_instance_arn.as_deref()
}
}
impl UpdateGatewayInstanceInput {
pub fn builder() -> crate::operation::update_gateway_instance::builders::UpdateGatewayInstanceInputBuilder {
crate::operation::update_gateway_instance::builders::UpdateGatewayInstanceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateGatewayInstanceInputBuilder {
pub(crate) bridge_placement: ::std::option::Option<crate::types::BridgePlacement>,
pub(crate) gateway_instance_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateGatewayInstanceInputBuilder {
pub fn bridge_placement(mut self, input: crate::types::BridgePlacement) -> Self {
self.bridge_placement = ::std::option::Option::Some(input);
self
}
pub fn set_bridge_placement(mut self, input: ::std::option::Option<crate::types::BridgePlacement>) -> Self {
self.bridge_placement = input;
self
}
pub fn get_bridge_placement(&self) -> &::std::option::Option<crate::types::BridgePlacement> {
&self.bridge_placement
}
pub fn gateway_instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.gateway_instance_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_gateway_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.gateway_instance_arn = input;
self
}
pub fn get_gateway_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.gateway_instance_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_gateway_instance::UpdateGatewayInstanceInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_gateway_instance::UpdateGatewayInstanceInput {
bridge_placement: self.bridge_placement,
gateway_instance_arn: self.gateway_instance_arn,
})
}
}