aws-sdk-route53 1.112.0

AWS SDK for Amazon Route 53
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A complex type that contains the response information for the specified geolocation code.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetGeoLocationOutput {
    /// <p>A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.</p>
    pub geo_location_details: ::std::option::Option<crate::types::GeoLocationDetails>,
    _request_id: Option<String>,
}
impl GetGeoLocationOutput {
    /// <p>A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.</p>
    pub fn geo_location_details(&self) -> ::std::option::Option<&crate::types::GeoLocationDetails> {
        self.geo_location_details.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetGeoLocationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetGeoLocationOutput {
    /// Creates a new builder-style object to manufacture [`GetGeoLocationOutput`](crate::operation::get_geo_location::GetGeoLocationOutput).
    pub fn builder() -> crate::operation::get_geo_location::builders::GetGeoLocationOutputBuilder {
        crate::operation::get_geo_location::builders::GetGeoLocationOutputBuilder::default()
    }
}

/// A builder for [`GetGeoLocationOutput`](crate::operation::get_geo_location::GetGeoLocationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetGeoLocationOutputBuilder {
    pub(crate) geo_location_details: ::std::option::Option<crate::types::GeoLocationDetails>,
    _request_id: Option<String>,
}
impl GetGeoLocationOutputBuilder {
    /// <p>A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.</p>
    /// This field is required.
    pub fn geo_location_details(mut self, input: crate::types::GeoLocationDetails) -> Self {
        self.geo_location_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.</p>
    pub fn set_geo_location_details(mut self, input: ::std::option::Option<crate::types::GeoLocationDetails>) -> Self {
        self.geo_location_details = input;
        self
    }
    /// <p>A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.</p>
    pub fn get_geo_location_details(&self) -> &::std::option::Option<crate::types::GeoLocationDetails> {
        &self.geo_location_details
    }
    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 [`GetGeoLocationOutput`](crate::operation::get_geo_location::GetGeoLocationOutput).
    pub fn build(self) -> crate::operation::get_geo_location::GetGeoLocationOutput {
        crate::operation::get_geo_location::GetGeoLocationOutput {
            geo_location_details: self.geo_location_details,
            _request_id: self._request_id,
        }
    }
}