#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateGatewayInstanceInput {
#[doc(hidden)]
pub bridge_placement: std::option::Option<crate::types::BridgePlacement>,
#[doc(hidden)]
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()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
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 = 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 gateway_instance_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.gateway_instance_arn = 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 build(
self,
) -> Result<
crate::operation::update_gateway_instance::UpdateGatewayInstanceInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::update_gateway_instance::UpdateGatewayInstanceInput {
bridge_placement: self.bridge_placement,
gateway_instance_arn: self.gateway_instance_arn,
},
)
}
}