{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Route53.GetGeoLocation
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets information about whether a specified geographic location is
-- supported for Amazon Route 53 geolocation resource record sets.
--
-- Route 53 does not perform authorization for this API because it
-- retrieves information that is already available to the public.
--
-- Use the following syntax to determine whether a continent is supported
-- for geolocation:
--
-- @GET \/2013-04-01\/geolocation?continentcode=two-letter abbreviation for a continent @
--
-- Use the following syntax to determine whether a country is supported for
-- geolocation:
--
-- @GET \/2013-04-01\/geolocation?countrycode=two-character country code @
--
-- Use the following syntax to determine whether a subdivision of a country
-- is supported for geolocation:
--
-- @GET \/2013-04-01\/geolocation?countrycode=two-character country code&subdivisioncode=subdivision code @
module Amazonka.Route53.GetGeoLocation
  ( -- * Creating a Request
    GetGeoLocation (..),
    newGetGeoLocation,

    -- * Request Lenses
    getGeoLocation_subdivisionCode,
    getGeoLocation_countryCode,
    getGeoLocation_continentCode,

    -- * Destructuring the Response
    GetGeoLocationResponse (..),
    newGetGeoLocationResponse,

    -- * Response Lenses
    getGeoLocationResponse_httpStatus,
    getGeoLocationResponse_geoLocationDetails,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53.Types

-- | A request for information about whether a specified geographic location
-- is supported for Amazon Route 53 geolocation resource record sets.
--
-- /See:/ 'newGetGeoLocation' smart constructor.
data GetGeoLocation = GetGeoLocation'
  { -- | The code for the subdivision, such as a particular state within the
    -- United States. For a list of US state abbreviations, see
    -- <https://pe.usps.com/text/pub28/28apb.htm Appendix B: Two–Letter State and Possession Abbreviations>
    -- on the United States Postal Service website. For a list of all supported
    -- subdivision codes, use the
    -- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html ListGeoLocations>
    -- API.
    GetGeoLocation -> Maybe Text
subdivisionCode :: Prelude.Maybe Prelude.Text,
    -- | Amazon Route 53 uses the two-letter country codes that are specified in
    -- <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO standard 3166-1 alpha-2>.
    GetGeoLocation -> Maybe Text
countryCode :: Prelude.Maybe Prelude.Text,
    -- | For geolocation resource record sets, a two-letter abbreviation that
    -- identifies a continent. Amazon Route 53 supports the following continent
    -- codes:
    --
    -- -   __AF__: Africa
    --
    -- -   __AN__: Antarctica
    --
    -- -   __AS__: Asia
    --
    -- -   __EU__: Europe
    --
    -- -   __OC__: Oceania
    --
    -- -   __NA__: North America
    --
    -- -   __SA__: South America
    GetGeoLocation -> Maybe Text
continentCode :: Prelude.Maybe Prelude.Text
  }
  deriving (GetGeoLocation -> GetGeoLocation -> Bool
(GetGeoLocation -> GetGeoLocation -> Bool)
-> (GetGeoLocation -> GetGeoLocation -> Bool) -> Eq GetGeoLocation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGeoLocation -> GetGeoLocation -> Bool
$c/= :: GetGeoLocation -> GetGeoLocation -> Bool
== :: GetGeoLocation -> GetGeoLocation -> Bool
$c== :: GetGeoLocation -> GetGeoLocation -> Bool
Prelude.Eq, ReadPrec [GetGeoLocation]
ReadPrec GetGeoLocation
Int -> ReadS GetGeoLocation
ReadS [GetGeoLocation]
(Int -> ReadS GetGeoLocation)
-> ReadS [GetGeoLocation]
-> ReadPrec GetGeoLocation
-> ReadPrec [GetGeoLocation]
-> Read GetGeoLocation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGeoLocation]
$creadListPrec :: ReadPrec [GetGeoLocation]
readPrec :: ReadPrec GetGeoLocation
$creadPrec :: ReadPrec GetGeoLocation
readList :: ReadS [GetGeoLocation]
$creadList :: ReadS [GetGeoLocation]
readsPrec :: Int -> ReadS GetGeoLocation
$creadsPrec :: Int -> ReadS GetGeoLocation
Prelude.Read, Int -> GetGeoLocation -> ShowS
[GetGeoLocation] -> ShowS
GetGeoLocation -> String
(Int -> GetGeoLocation -> ShowS)
-> (GetGeoLocation -> String)
-> ([GetGeoLocation] -> ShowS)
-> Show GetGeoLocation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGeoLocation] -> ShowS
$cshowList :: [GetGeoLocation] -> ShowS
show :: GetGeoLocation -> String
$cshow :: GetGeoLocation -> String
showsPrec :: Int -> GetGeoLocation -> ShowS
$cshowsPrec :: Int -> GetGeoLocation -> ShowS
Prelude.Show, (forall x. GetGeoLocation -> Rep GetGeoLocation x)
-> (forall x. Rep GetGeoLocation x -> GetGeoLocation)
-> Generic GetGeoLocation
forall x. Rep GetGeoLocation x -> GetGeoLocation
forall x. GetGeoLocation -> Rep GetGeoLocation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetGeoLocation x -> GetGeoLocation
$cfrom :: forall x. GetGeoLocation -> Rep GetGeoLocation x
Prelude.Generic)

-- |
-- Create a value of 'GetGeoLocation' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'subdivisionCode', 'getGeoLocation_subdivisionCode' - The code for the subdivision, such as a particular state within the
-- United States. For a list of US state abbreviations, see
-- <https://pe.usps.com/text/pub28/28apb.htm Appendix B: Two–Letter State and Possession Abbreviations>
-- on the United States Postal Service website. For a list of all supported
-- subdivision codes, use the
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html ListGeoLocations>
-- API.
--
-- 'countryCode', 'getGeoLocation_countryCode' - Amazon Route 53 uses the two-letter country codes that are specified in
-- <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO standard 3166-1 alpha-2>.
--
-- 'continentCode', 'getGeoLocation_continentCode' - For geolocation resource record sets, a two-letter abbreviation that
-- identifies a continent. Amazon Route 53 supports the following continent
-- codes:
--
-- -   __AF__: Africa
--
-- -   __AN__: Antarctica
--
-- -   __AS__: Asia
--
-- -   __EU__: Europe
--
-- -   __OC__: Oceania
--
-- -   __NA__: North America
--
-- -   __SA__: South America
newGetGeoLocation ::
  GetGeoLocation
newGetGeoLocation :: GetGeoLocation
newGetGeoLocation =
  GetGeoLocation' :: Maybe Text -> Maybe Text -> Maybe Text -> GetGeoLocation
GetGeoLocation'
    { $sel:subdivisionCode:GetGeoLocation' :: Maybe Text
subdivisionCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:countryCode:GetGeoLocation' :: Maybe Text
countryCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:continentCode:GetGeoLocation' :: Maybe Text
continentCode = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The code for the subdivision, such as a particular state within the
-- United States. For a list of US state abbreviations, see
-- <https://pe.usps.com/text/pub28/28apb.htm Appendix B: Two–Letter State and Possession Abbreviations>
-- on the United States Postal Service website. For a list of all supported
-- subdivision codes, use the
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html ListGeoLocations>
-- API.
getGeoLocation_subdivisionCode :: Lens.Lens' GetGeoLocation (Prelude.Maybe Prelude.Text)
getGeoLocation_subdivisionCode :: (Maybe Text -> f (Maybe Text))
-> GetGeoLocation -> f GetGeoLocation
getGeoLocation_subdivisionCode = (GetGeoLocation -> Maybe Text)
-> (GetGeoLocation -> Maybe Text -> GetGeoLocation)
-> Lens GetGeoLocation GetGeoLocation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeoLocation' {Maybe Text
subdivisionCode :: Maybe Text
$sel:subdivisionCode:GetGeoLocation' :: GetGeoLocation -> Maybe Text
subdivisionCode} -> Maybe Text
subdivisionCode) (\s :: GetGeoLocation
s@GetGeoLocation' {} Maybe Text
a -> GetGeoLocation
s {$sel:subdivisionCode:GetGeoLocation' :: Maybe Text
subdivisionCode = Maybe Text
a} :: GetGeoLocation)

-- | Amazon Route 53 uses the two-letter country codes that are specified in
-- <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO standard 3166-1 alpha-2>.
getGeoLocation_countryCode :: Lens.Lens' GetGeoLocation (Prelude.Maybe Prelude.Text)
getGeoLocation_countryCode :: (Maybe Text -> f (Maybe Text))
-> GetGeoLocation -> f GetGeoLocation
getGeoLocation_countryCode = (GetGeoLocation -> Maybe Text)
-> (GetGeoLocation -> Maybe Text -> GetGeoLocation)
-> Lens GetGeoLocation GetGeoLocation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeoLocation' {Maybe Text
countryCode :: Maybe Text
$sel:countryCode:GetGeoLocation' :: GetGeoLocation -> Maybe Text
countryCode} -> Maybe Text
countryCode) (\s :: GetGeoLocation
s@GetGeoLocation' {} Maybe Text
a -> GetGeoLocation
s {$sel:countryCode:GetGeoLocation' :: Maybe Text
countryCode = Maybe Text
a} :: GetGeoLocation)

-- | For geolocation resource record sets, a two-letter abbreviation that
-- identifies a continent. Amazon Route 53 supports the following continent
-- codes:
--
-- -   __AF__: Africa
--
-- -   __AN__: Antarctica
--
-- -   __AS__: Asia
--
-- -   __EU__: Europe
--
-- -   __OC__: Oceania
--
-- -   __NA__: North America
--
-- -   __SA__: South America
getGeoLocation_continentCode :: Lens.Lens' GetGeoLocation (Prelude.Maybe Prelude.Text)
getGeoLocation_continentCode :: (Maybe Text -> f (Maybe Text))
-> GetGeoLocation -> f GetGeoLocation
getGeoLocation_continentCode = (GetGeoLocation -> Maybe Text)
-> (GetGeoLocation -> Maybe Text -> GetGeoLocation)
-> Lens GetGeoLocation GetGeoLocation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeoLocation' {Maybe Text
continentCode :: Maybe Text
$sel:continentCode:GetGeoLocation' :: GetGeoLocation -> Maybe Text
continentCode} -> Maybe Text
continentCode) (\s :: GetGeoLocation
s@GetGeoLocation' {} Maybe Text
a -> GetGeoLocation
s {$sel:continentCode:GetGeoLocation' :: Maybe Text
continentCode = Maybe Text
a} :: GetGeoLocation)

instance Core.AWSRequest GetGeoLocation where
  type
    AWSResponse GetGeoLocation =
      GetGeoLocationResponse
  request :: GetGeoLocation -> Request GetGeoLocation
request = Service -> GetGeoLocation -> Request GetGeoLocation
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetGeoLocation
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetGeoLocation)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either String (AWSResponse GetGeoLocation))
-> Logger
-> Service
-> Proxy GetGeoLocation
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetGeoLocation)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int -> GeoLocationDetails -> GetGeoLocationResponse
GetGeoLocationResponse'
            (Int -> GeoLocationDetails -> GetGeoLocationResponse)
-> Either String Int
-> Either String (GeoLocationDetails -> GetGeoLocationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either String (GeoLocationDetails -> GetGeoLocationResponse)
-> Either String GeoLocationDetails
-> Either String GetGeoLocationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String GeoLocationDetails
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"GeoLocationDetails")
      )

instance Prelude.Hashable GetGeoLocation

instance Prelude.NFData GetGeoLocation

instance Core.ToHeaders GetGeoLocation where
  toHeaders :: GetGeoLocation -> ResponseHeaders
toHeaders = ResponseHeaders -> GetGeoLocation -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath GetGeoLocation where
  toPath :: GetGeoLocation -> ByteString
toPath = ByteString -> GetGeoLocation -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2013-04-01/geolocation"

instance Core.ToQuery GetGeoLocation where
  toQuery :: GetGeoLocation -> QueryString
toQuery GetGeoLocation' {Maybe Text
continentCode :: Maybe Text
countryCode :: Maybe Text
subdivisionCode :: Maybe Text
$sel:continentCode:GetGeoLocation' :: GetGeoLocation -> Maybe Text
$sel:countryCode:GetGeoLocation' :: GetGeoLocation -> Maybe Text
$sel:subdivisionCode:GetGeoLocation' :: GetGeoLocation -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"subdivisioncode" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
subdivisionCode,
        ByteString
"countrycode" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
countryCode,
        ByteString
"continentcode" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
continentCode
      ]

-- | A complex type that contains the response information for the specified
-- geolocation code.
--
-- /See:/ 'newGetGeoLocationResponse' smart constructor.
data GetGeoLocationResponse = GetGeoLocationResponse'
  { -- | The response's http status code.
    GetGeoLocationResponse -> Int
httpStatus :: Prelude.Int,
    -- | A complex type that contains the codes and full continent, country, and
    -- subdivision names for the specified geolocation code.
    GetGeoLocationResponse -> GeoLocationDetails
geoLocationDetails :: GeoLocationDetails
  }
  deriving (GetGeoLocationResponse -> GetGeoLocationResponse -> Bool
(GetGeoLocationResponse -> GetGeoLocationResponse -> Bool)
-> (GetGeoLocationResponse -> GetGeoLocationResponse -> Bool)
-> Eq GetGeoLocationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGeoLocationResponse -> GetGeoLocationResponse -> Bool
$c/= :: GetGeoLocationResponse -> GetGeoLocationResponse -> Bool
== :: GetGeoLocationResponse -> GetGeoLocationResponse -> Bool
$c== :: GetGeoLocationResponse -> GetGeoLocationResponse -> Bool
Prelude.Eq, ReadPrec [GetGeoLocationResponse]
ReadPrec GetGeoLocationResponse
Int -> ReadS GetGeoLocationResponse
ReadS [GetGeoLocationResponse]
(Int -> ReadS GetGeoLocationResponse)
-> ReadS [GetGeoLocationResponse]
-> ReadPrec GetGeoLocationResponse
-> ReadPrec [GetGeoLocationResponse]
-> Read GetGeoLocationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGeoLocationResponse]
$creadListPrec :: ReadPrec [GetGeoLocationResponse]
readPrec :: ReadPrec GetGeoLocationResponse
$creadPrec :: ReadPrec GetGeoLocationResponse
readList :: ReadS [GetGeoLocationResponse]
$creadList :: ReadS [GetGeoLocationResponse]
readsPrec :: Int -> ReadS GetGeoLocationResponse
$creadsPrec :: Int -> ReadS GetGeoLocationResponse
Prelude.Read, Int -> GetGeoLocationResponse -> ShowS
[GetGeoLocationResponse] -> ShowS
GetGeoLocationResponse -> String
(Int -> GetGeoLocationResponse -> ShowS)
-> (GetGeoLocationResponse -> String)
-> ([GetGeoLocationResponse] -> ShowS)
-> Show GetGeoLocationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGeoLocationResponse] -> ShowS
$cshowList :: [GetGeoLocationResponse] -> ShowS
show :: GetGeoLocationResponse -> String
$cshow :: GetGeoLocationResponse -> String
showsPrec :: Int -> GetGeoLocationResponse -> ShowS
$cshowsPrec :: Int -> GetGeoLocationResponse -> ShowS
Prelude.Show, (forall x. GetGeoLocationResponse -> Rep GetGeoLocationResponse x)
-> (forall x.
    Rep GetGeoLocationResponse x -> GetGeoLocationResponse)
-> Generic GetGeoLocationResponse
forall x. Rep GetGeoLocationResponse x -> GetGeoLocationResponse
forall x. GetGeoLocationResponse -> Rep GetGeoLocationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetGeoLocationResponse x -> GetGeoLocationResponse
$cfrom :: forall x. GetGeoLocationResponse -> Rep GetGeoLocationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetGeoLocationResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'httpStatus', 'getGeoLocationResponse_httpStatus' - The response's http status code.
--
-- 'geoLocationDetails', 'getGeoLocationResponse_geoLocationDetails' - A complex type that contains the codes and full continent, country, and
-- subdivision names for the specified geolocation code.
newGetGeoLocationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'geoLocationDetails'
  GeoLocationDetails ->
  GetGeoLocationResponse
newGetGeoLocationResponse :: Int -> GeoLocationDetails -> GetGeoLocationResponse
newGetGeoLocationResponse
  Int
pHttpStatus_
  GeoLocationDetails
pGeoLocationDetails_ =
    GetGeoLocationResponse' :: Int -> GeoLocationDetails -> GetGeoLocationResponse
GetGeoLocationResponse'
      { $sel:httpStatus:GetGeoLocationResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:geoLocationDetails:GetGeoLocationResponse' :: GeoLocationDetails
geoLocationDetails = GeoLocationDetails
pGeoLocationDetails_
      }

-- | The response's http status code.
getGeoLocationResponse_httpStatus :: Lens.Lens' GetGeoLocationResponse Prelude.Int
getGeoLocationResponse_httpStatus :: (Int -> f Int)
-> GetGeoLocationResponse -> f GetGeoLocationResponse
getGeoLocationResponse_httpStatus = (GetGeoLocationResponse -> Int)
-> (GetGeoLocationResponse -> Int -> GetGeoLocationResponse)
-> Lens GetGeoLocationResponse GetGeoLocationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeoLocationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetGeoLocationResponse' :: GetGeoLocationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetGeoLocationResponse
s@GetGeoLocationResponse' {} Int
a -> GetGeoLocationResponse
s {$sel:httpStatus:GetGeoLocationResponse' :: Int
httpStatus = Int
a} :: GetGeoLocationResponse)

-- | A complex type that contains the codes and full continent, country, and
-- subdivision names for the specified geolocation code.
getGeoLocationResponse_geoLocationDetails :: Lens.Lens' GetGeoLocationResponse GeoLocationDetails
getGeoLocationResponse_geoLocationDetails :: (GeoLocationDetails -> f GeoLocationDetails)
-> GetGeoLocationResponse -> f GetGeoLocationResponse
getGeoLocationResponse_geoLocationDetails = (GetGeoLocationResponse -> GeoLocationDetails)
-> (GetGeoLocationResponse
    -> GeoLocationDetails -> GetGeoLocationResponse)
-> Lens
     GetGeoLocationResponse
     GetGeoLocationResponse
     GeoLocationDetails
     GeoLocationDetails
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeoLocationResponse' {GeoLocationDetails
geoLocationDetails :: GeoLocationDetails
$sel:geoLocationDetails:GetGeoLocationResponse' :: GetGeoLocationResponse -> GeoLocationDetails
geoLocationDetails} -> GeoLocationDetails
geoLocationDetails) (\s :: GetGeoLocationResponse
s@GetGeoLocationResponse' {} GeoLocationDetails
a -> GetGeoLocationResponse
s {$sel:geoLocationDetails:GetGeoLocationResponse' :: GeoLocationDetails
geoLocationDetails = GeoLocationDetails
a} :: GetGeoLocationResponse)

instance Prelude.NFData GetGeoLocationResponse