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 GetServiceEndpointInput {
    /// <p>The service type for which to get endpoint information about. Can be <code>CUPS</code> for the Configuration and Update Server endpoint, or <code>LNS</code> for the LoRaWAN Network Server endpoint.</p>
    pub service_type: ::std::option::Option<crate::types::WirelessGatewayServiceType>,
}
impl GetServiceEndpointInput {
    /// <p>The service type for which to get endpoint information about. Can be <code>CUPS</code> for the Configuration and Update Server endpoint, or <code>LNS</code> for the LoRaWAN Network Server endpoint.</p>
    pub fn service_type(&self) -> ::std::option::Option<&crate::types::WirelessGatewayServiceType> {
        self.service_type.as_ref()
    }
}
impl GetServiceEndpointInput {
    /// Creates a new builder-style object to manufacture [`GetServiceEndpointInput`](crate::operation::get_service_endpoint::GetServiceEndpointInput).
    pub fn builder() -> crate::operation::get_service_endpoint::builders::GetServiceEndpointInputBuilder {
        crate::operation::get_service_endpoint::builders::GetServiceEndpointInputBuilder::default()
    }
}

/// A builder for [`GetServiceEndpointInput`](crate::operation::get_service_endpoint::GetServiceEndpointInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetServiceEndpointInputBuilder {
    pub(crate) service_type: ::std::option::Option<crate::types::WirelessGatewayServiceType>,
}
impl GetServiceEndpointInputBuilder {
    /// <p>The service type for which to get endpoint information about. Can be <code>CUPS</code> for the Configuration and Update Server endpoint, or <code>LNS</code> for the LoRaWAN Network Server endpoint.</p>
    pub fn service_type(mut self, input: crate::types::WirelessGatewayServiceType) -> Self {
        self.service_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The service type for which to get endpoint information about. Can be <code>CUPS</code> for the Configuration and Update Server endpoint, or <code>LNS</code> for the LoRaWAN Network Server endpoint.</p>
    pub fn set_service_type(mut self, input: ::std::option::Option<crate::types::WirelessGatewayServiceType>) -> Self {
        self.service_type = input;
        self
    }
    /// <p>The service type for which to get endpoint information about. Can be <code>CUPS</code> for the Configuration and Update Server endpoint, or <code>LNS</code> for the LoRaWAN Network Server endpoint.</p>
    pub fn get_service_type(&self) -> &::std::option::Option<crate::types::WirelessGatewayServiceType> {
        &self.service_type
    }
    /// Consumes the builder and constructs a [`GetServiceEndpointInput`](crate::operation::get_service_endpoint::GetServiceEndpointInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_service_endpoint::GetServiceEndpointInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_service_endpoint::GetServiceEndpointInput {
            service_type: self.service_type,
        })
    }
}