aws-sdk-iotwireless 1.99.0

AWS SDK for AWS IoT Wireless
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateWirelessDeviceInput {
    /// <p>The ID of the resource to update.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the new destination for the device.</p>
    pub destination_name: ::std::option::Option<::std::string::String>,
    /// <p>The new name of the resource.</p><note>
    /// <p>The following special characters aren't accepted: <code>&lt;&gt;^#~$</code></p>
    /// </note>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>A new description of the resource.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The updated wireless device's configuration.</p>
    pub lo_ra_wan: ::std::option::Option<crate::types::LoRaWanUpdateDevice>,
    /// <p>The integration status of the Device Location feature for LoRaWAN and Sidewalk devices.</p>
    pub positioning: ::std::option::Option<crate::types::PositioningConfigStatus>,
    /// <p>The updated sidewalk properties.</p>
    pub sidewalk: ::std::option::Option<crate::types::SidewalkUpdateWirelessDevice>,
}
impl UpdateWirelessDeviceInput {
    /// <p>The ID of the resource to update.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The name of the new destination for the device.</p>
    pub fn destination_name(&self) -> ::std::option::Option<&str> {
        self.destination_name.as_deref()
    }
    /// <p>The new name of the resource.</p><note>
    /// <p>The following special characters aren't accepted: <code>&lt;&gt;^#~$</code></p>
    /// </note>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>A new description of the resource.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The updated wireless device's configuration.</p>
    pub fn lo_ra_wan(&self) -> ::std::option::Option<&crate::types::LoRaWanUpdateDevice> {
        self.lo_ra_wan.as_ref()
    }
    /// <p>The integration status of the Device Location feature for LoRaWAN and Sidewalk devices.</p>
    pub fn positioning(&self) -> ::std::option::Option<&crate::types::PositioningConfigStatus> {
        self.positioning.as_ref()
    }
    /// <p>The updated sidewalk properties.</p>
    pub fn sidewalk(&self) -> ::std::option::Option<&crate::types::SidewalkUpdateWirelessDevice> {
        self.sidewalk.as_ref()
    }
}
impl UpdateWirelessDeviceInput {
    /// Creates a new builder-style object to manufacture [`UpdateWirelessDeviceInput`](crate::operation::update_wireless_device::UpdateWirelessDeviceInput).
    pub fn builder() -> crate::operation::update_wireless_device::builders::UpdateWirelessDeviceInputBuilder {
        crate::operation::update_wireless_device::builders::UpdateWirelessDeviceInputBuilder::default()
    }
}

/// A builder for [`UpdateWirelessDeviceInput`](crate::operation::update_wireless_device::UpdateWirelessDeviceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateWirelessDeviceInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) destination_name: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) lo_ra_wan: ::std::option::Option<crate::types::LoRaWanUpdateDevice>,
    pub(crate) positioning: ::std::option::Option<crate::types::PositioningConfigStatus>,
    pub(crate) sidewalk: ::std::option::Option<crate::types::SidewalkUpdateWirelessDevice>,
}
impl UpdateWirelessDeviceInputBuilder {
    /// <p>The ID of the resource to update.</p>
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the resource to update.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the resource to update.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The name of the new destination for the device.</p>
    pub fn destination_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.destination_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the new destination for the device.</p>
    pub fn set_destination_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.destination_name = input;
        self
    }
    /// <p>The name of the new destination for the device.</p>
    pub fn get_destination_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.destination_name
    }
    /// <p>The new name of the resource.</p><note>
    /// <p>The following special characters aren't accepted: <code>&lt;&gt;^#~$</code></p>
    /// </note>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new name of the resource.</p><note>
    /// <p>The following special characters aren't accepted: <code>&lt;&gt;^#~$</code></p>
    /// </note>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The new name of the resource.</p><note>
    /// <p>The following special characters aren't accepted: <code>&lt;&gt;^#~$</code></p>
    /// </note>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>A new description of the resource.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A new description of the resource.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A new description of the resource.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The updated wireless device's configuration.</p>
    pub fn lo_ra_wan(mut self, input: crate::types::LoRaWanUpdateDevice) -> Self {
        self.lo_ra_wan = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated wireless device's configuration.</p>
    pub fn set_lo_ra_wan(mut self, input: ::std::option::Option<crate::types::LoRaWanUpdateDevice>) -> Self {
        self.lo_ra_wan = input;
        self
    }
    /// <p>The updated wireless device's configuration.</p>
    pub fn get_lo_ra_wan(&self) -> &::std::option::Option<crate::types::LoRaWanUpdateDevice> {
        &self.lo_ra_wan
    }
    /// <p>The integration status of the Device Location feature for LoRaWAN and Sidewalk devices.</p>
    pub fn positioning(mut self, input: crate::types::PositioningConfigStatus) -> Self {
        self.positioning = ::std::option::Option::Some(input);
        self
    }
    /// <p>The integration status of the Device Location feature for LoRaWAN and Sidewalk devices.</p>
    pub fn set_positioning(mut self, input: ::std::option::Option<crate::types::PositioningConfigStatus>) -> Self {
        self.positioning = input;
        self
    }
    /// <p>The integration status of the Device Location feature for LoRaWAN and Sidewalk devices.</p>
    pub fn get_positioning(&self) -> &::std::option::Option<crate::types::PositioningConfigStatus> {
        &self.positioning
    }
    /// <p>The updated sidewalk properties.</p>
    pub fn sidewalk(mut self, input: crate::types::SidewalkUpdateWirelessDevice) -> Self {
        self.sidewalk = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated sidewalk properties.</p>
    pub fn set_sidewalk(mut self, input: ::std::option::Option<crate::types::SidewalkUpdateWirelessDevice>) -> Self {
        self.sidewalk = input;
        self
    }
    /// <p>The updated sidewalk properties.</p>
    pub fn get_sidewalk(&self) -> &::std::option::Option<crate::types::SidewalkUpdateWirelessDevice> {
        &self.sidewalk
    }
    /// Consumes the builder and constructs a [`UpdateWirelessDeviceInput`](crate::operation::update_wireless_device::UpdateWirelessDeviceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_wireless_device::UpdateWirelessDeviceInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_wireless_device::UpdateWirelessDeviceInput {
            id: self.id,
            destination_name: self.destination_name,
            name: self.name,
            description: self.description,
            lo_ra_wan: self.lo_ra_wan,
            positioning: self.positioning,
            sidewalk: self.sidewalk,
        })
    }
}