aws_sdk_iotwireless/client/
get_service_endpoint.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetServiceEndpoint`](crate::operation::get_service_endpoint::builders::GetServiceEndpointFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_type(WirelessGatewayServiceType)`](crate::operation::get_service_endpoint::builders::GetServiceEndpointFluentBuilder::service_type) / [`set_service_type(Option<WirelessGatewayServiceType>)`](crate::operation::get_service_endpoint::builders::GetServiceEndpointFluentBuilder::set_service_type):<br>required: **false**<br><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><br>
7    /// - On success, responds with [`GetServiceEndpointOutput`](crate::operation::get_service_endpoint::GetServiceEndpointOutput) with field(s):
8    ///   - [`service_type(Option<WirelessGatewayServiceType>)`](crate::operation::get_service_endpoint::GetServiceEndpointOutput::service_type): <p>The endpoint's service type.</p>
9    ///   - [`service_endpoint(Option<String>)`](crate::operation::get_service_endpoint::GetServiceEndpointOutput::service_endpoint): <p>The service endpoint value.</p>
10    ///   - [`server_trust(Option<String>)`](crate::operation::get_service_endpoint::GetServiceEndpointOutput::server_trust): <p>The Root CA of the server trust certificate.</p>
11    /// - On failure, responds with [`SdkError<GetServiceEndpointError>`](crate::operation::get_service_endpoint::GetServiceEndpointError)
12    pub fn get_service_endpoint(&self) -> crate::operation::get_service_endpoint::builders::GetServiceEndpointFluentBuilder {
13        crate::operation::get_service_endpoint::builders::GetServiceEndpointFluentBuilder::new(self.handle.clone())
14    }
15}