aws-sdk-location 1.41.0

AWS SDK for Amazon Location Service
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 GetPlaceOutput {
    /// <p>Details about the result, such as its address and position.</p>
    pub place: ::std::option::Option<crate::types::Place>,
    _request_id: Option<String>,
}
impl GetPlaceOutput {
    /// <p>Details about the result, such as its address and position.</p>
    pub fn place(&self) -> ::std::option::Option<&crate::types::Place> {
        self.place.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetPlaceOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetPlaceOutput {
    /// Creates a new builder-style object to manufacture [`GetPlaceOutput`](crate::operation::get_place::GetPlaceOutput).
    pub fn builder() -> crate::operation::get_place::builders::GetPlaceOutputBuilder {
        crate::operation::get_place::builders::GetPlaceOutputBuilder::default()
    }
}

/// A builder for [`GetPlaceOutput`](crate::operation::get_place::GetPlaceOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPlaceOutputBuilder {
    pub(crate) place: ::std::option::Option<crate::types::Place>,
    _request_id: Option<String>,
}
impl GetPlaceOutputBuilder {
    /// <p>Details about the result, such as its address and position.</p>
    /// This field is required.
    pub fn place(mut self, input: crate::types::Place) -> Self {
        self.place = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about the result, such as its address and position.</p>
    pub fn set_place(mut self, input: ::std::option::Option<crate::types::Place>) -> Self {
        self.place = input;
        self
    }
    /// <p>Details about the result, such as its address and position.</p>
    pub fn get_place(&self) -> &::std::option::Option<crate::types::Place> {
        &self.place
    }
    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 [`GetPlaceOutput`](crate::operation::get_place::GetPlaceOutput).
    pub fn build(self) -> crate::operation::get_place::GetPlaceOutput {
        crate::operation::get_place::GetPlaceOutput {
            place: self.place,
            _request_id: self._request_id,
        }
    }
}