#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeregisterGatewayInstanceInput {
#[doc(hidden)]
pub force: std::option::Option<bool>,
#[doc(hidden)]
pub gateway_instance_arn: std::option::Option<std::string::String>,
}
impl DeregisterGatewayInstanceInput {
pub fn force(&self) -> std::option::Option<bool> {
self.force
}
pub fn gateway_instance_arn(&self) -> std::option::Option<&str> {
self.gateway_instance_arn.as_deref()
}
}
impl DeregisterGatewayInstanceInput {
pub fn builder() -> crate::operation::deregister_gateway_instance::builders::DeregisterGatewayInstanceInputBuilder{
crate::operation::deregister_gateway_instance::builders::DeregisterGatewayInstanceInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeregisterGatewayInstanceInputBuilder {
pub(crate) force: std::option::Option<bool>,
pub(crate) gateway_instance_arn: std::option::Option<std::string::String>,
}
impl DeregisterGatewayInstanceInputBuilder {
pub fn force(mut self, input: bool) -> Self {
self.force = Some(input);
self
}
pub fn set_force(mut self, input: std::option::Option<bool>) -> Self {
self.force = 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::deregister_gateway_instance::DeregisterGatewayInstanceInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::deregister_gateway_instance::DeregisterGatewayInstanceInput {
force: self.force,
gateway_instance_arn: self.gateway_instance_arn,
},
)
}
}