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 GetResourcePositionOutput {
    /// <p>The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see <a href="https://geojson.org/">GeoJSON</a>.</p>
    pub geo_json_payload: ::std::option::Option<::aws_smithy_types::Blob>,
    _request_id: Option<String>,
}
impl GetResourcePositionOutput {
    /// <p>The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see <a href="https://geojson.org/">GeoJSON</a>.</p>
    pub fn geo_json_payload(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
        self.geo_json_payload.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetResourcePositionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetResourcePositionOutput {
    /// Creates a new builder-style object to manufacture [`GetResourcePositionOutput`](crate::operation::get_resource_position::GetResourcePositionOutput).
    pub fn builder() -> crate::operation::get_resource_position::builders::GetResourcePositionOutputBuilder {
        crate::operation::get_resource_position::builders::GetResourcePositionOutputBuilder::default()
    }
}

/// A builder for [`GetResourcePositionOutput`](crate::operation::get_resource_position::GetResourcePositionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetResourcePositionOutputBuilder {
    pub(crate) geo_json_payload: ::std::option::Option<::aws_smithy_types::Blob>,
    _request_id: Option<String>,
}
impl GetResourcePositionOutputBuilder {
    /// <p>The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see <a href="https://geojson.org/">GeoJSON</a>.</p>
    pub fn geo_json_payload(mut self, input: ::aws_smithy_types::Blob) -> Self {
        self.geo_json_payload = ::std::option::Option::Some(input);
        self
    }
    /// <p>The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see <a href="https://geojson.org/">GeoJSON</a>.</p>
    pub fn set_geo_json_payload(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
        self.geo_json_payload = input;
        self
    }
    /// <p>The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see <a href="https://geojson.org/">GeoJSON</a>.</p>
    pub fn get_geo_json_payload(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
        &self.geo_json_payload
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetResourcePositionOutput`](crate::operation::get_resource_position::GetResourcePositionOutput).
    pub fn build(self) -> crate::operation::get_resource_position::GetResourcePositionOutput {
        crate::operation::get_resource_position::GetResourcePositionOutput {
            geo_json_payload: self.geo_json_payload,
            _request_id: self._request_id,
        }
    }
}