#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetGeoLocationOutput {
#[doc(hidden)]
pub geo_location_details: std::option::Option<crate::types::GeoLocationDetails>,
_request_id: Option<String>,
}
impl GetGeoLocationOutput {
pub fn geo_location_details(&self) -> std::option::Option<&crate::types::GeoLocationDetails> {
self.geo_location_details.as_ref()
}
}
impl aws_http::request_id::RequestId for GetGeoLocationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetGeoLocationOutput {
pub fn builder() -> crate::operation::get_geo_location::builders::GetGeoLocationOutputBuilder {
crate::operation::get_geo_location::builders::GetGeoLocationOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetGeoLocationOutputBuilder {
pub(crate) geo_location_details: std::option::Option<crate::types::GeoLocationDetails>,
_request_id: Option<String>,
}
impl GetGeoLocationOutputBuilder {
pub fn geo_location_details(mut self, input: crate::types::GeoLocationDetails) -> Self {
self.geo_location_details = Some(input);
self
}
pub fn set_geo_location_details(
mut self,
input: std::option::Option<crate::types::GeoLocationDetails>,
) -> Self {
self.geo_location_details = input;
self
}
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
}
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,
}
}
}