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