{-# 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.Location.DescribeGeofenceCollection
-- 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)
--
-- Retrieves the geofence collection details.
module Amazonka.Location.DescribeGeofenceCollection
  ( -- * Creating a Request
    DescribeGeofenceCollection (..),
    newDescribeGeofenceCollection,

    -- * Request Lenses
    describeGeofenceCollection_collectionName,

    -- * Destructuring the Response
    DescribeGeofenceCollectionResponse (..),
    newDescribeGeofenceCollectionResponse,

    -- * Response Lenses
    describeGeofenceCollectionResponse_pricingPlanDataSource,
    describeGeofenceCollectionResponse_kmsKeyId,
    describeGeofenceCollectionResponse_tags,
    describeGeofenceCollectionResponse_httpStatus,
    describeGeofenceCollectionResponse_collectionArn,
    describeGeofenceCollectionResponse_collectionName,
    describeGeofenceCollectionResponse_createTime,
    describeGeofenceCollectionResponse_description,
    describeGeofenceCollectionResponse_pricingPlan,
    describeGeofenceCollectionResponse_updateTime,
  )
where

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

-- | /See:/ 'newDescribeGeofenceCollection' smart constructor.
data DescribeGeofenceCollection = DescribeGeofenceCollection'
  { -- | The name of the geofence collection.
    DescribeGeofenceCollection -> Text
collectionName :: Prelude.Text
  }
  deriving (DescribeGeofenceCollection -> DescribeGeofenceCollection -> Bool
(DescribeGeofenceCollection -> DescribeGeofenceCollection -> Bool)
-> (DescribeGeofenceCollection
    -> DescribeGeofenceCollection -> Bool)
-> Eq DescribeGeofenceCollection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeGeofenceCollection -> DescribeGeofenceCollection -> Bool
$c/= :: DescribeGeofenceCollection -> DescribeGeofenceCollection -> Bool
== :: DescribeGeofenceCollection -> DescribeGeofenceCollection -> Bool
$c== :: DescribeGeofenceCollection -> DescribeGeofenceCollection -> Bool
Prelude.Eq, ReadPrec [DescribeGeofenceCollection]
ReadPrec DescribeGeofenceCollection
Int -> ReadS DescribeGeofenceCollection
ReadS [DescribeGeofenceCollection]
(Int -> ReadS DescribeGeofenceCollection)
-> ReadS [DescribeGeofenceCollection]
-> ReadPrec DescribeGeofenceCollection
-> ReadPrec [DescribeGeofenceCollection]
-> Read DescribeGeofenceCollection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeGeofenceCollection]
$creadListPrec :: ReadPrec [DescribeGeofenceCollection]
readPrec :: ReadPrec DescribeGeofenceCollection
$creadPrec :: ReadPrec DescribeGeofenceCollection
readList :: ReadS [DescribeGeofenceCollection]
$creadList :: ReadS [DescribeGeofenceCollection]
readsPrec :: Int -> ReadS DescribeGeofenceCollection
$creadsPrec :: Int -> ReadS DescribeGeofenceCollection
Prelude.Read, Int -> DescribeGeofenceCollection -> ShowS
[DescribeGeofenceCollection] -> ShowS
DescribeGeofenceCollection -> String
(Int -> DescribeGeofenceCollection -> ShowS)
-> (DescribeGeofenceCollection -> String)
-> ([DescribeGeofenceCollection] -> ShowS)
-> Show DescribeGeofenceCollection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeGeofenceCollection] -> ShowS
$cshowList :: [DescribeGeofenceCollection] -> ShowS
show :: DescribeGeofenceCollection -> String
$cshow :: DescribeGeofenceCollection -> String
showsPrec :: Int -> DescribeGeofenceCollection -> ShowS
$cshowsPrec :: Int -> DescribeGeofenceCollection -> ShowS
Prelude.Show, (forall x.
 DescribeGeofenceCollection -> Rep DescribeGeofenceCollection x)
-> (forall x.
    Rep DescribeGeofenceCollection x -> DescribeGeofenceCollection)
-> Generic DescribeGeofenceCollection
forall x.
Rep DescribeGeofenceCollection x -> DescribeGeofenceCollection
forall x.
DescribeGeofenceCollection -> Rep DescribeGeofenceCollection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeGeofenceCollection x -> DescribeGeofenceCollection
$cfrom :: forall x.
DescribeGeofenceCollection -> Rep DescribeGeofenceCollection x
Prelude.Generic)

-- |
-- Create a value of 'DescribeGeofenceCollection' 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:
--
-- 'collectionName', 'describeGeofenceCollection_collectionName' - The name of the geofence collection.
newDescribeGeofenceCollection ::
  -- | 'collectionName'
  Prelude.Text ->
  DescribeGeofenceCollection
newDescribeGeofenceCollection :: Text -> DescribeGeofenceCollection
newDescribeGeofenceCollection Text
pCollectionName_ =
  DescribeGeofenceCollection' :: Text -> DescribeGeofenceCollection
DescribeGeofenceCollection'
    { $sel:collectionName:DescribeGeofenceCollection' :: Text
collectionName =
        Text
pCollectionName_
    }

-- | The name of the geofence collection.
describeGeofenceCollection_collectionName :: Lens.Lens' DescribeGeofenceCollection Prelude.Text
describeGeofenceCollection_collectionName :: (Text -> f Text)
-> DescribeGeofenceCollection -> f DescribeGeofenceCollection
describeGeofenceCollection_collectionName = (DescribeGeofenceCollection -> Text)
-> (DescribeGeofenceCollection
    -> Text -> DescribeGeofenceCollection)
-> Lens
     DescribeGeofenceCollection DescribeGeofenceCollection Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollection' {Text
collectionName :: Text
$sel:collectionName:DescribeGeofenceCollection' :: DescribeGeofenceCollection -> Text
collectionName} -> Text
collectionName) (\s :: DescribeGeofenceCollection
s@DescribeGeofenceCollection' {} Text
a -> DescribeGeofenceCollection
s {$sel:collectionName:DescribeGeofenceCollection' :: Text
collectionName = Text
a} :: DescribeGeofenceCollection)

instance Core.AWSRequest DescribeGeofenceCollection where
  type
    AWSResponse DescribeGeofenceCollection =
      DescribeGeofenceCollectionResponse
  request :: DescribeGeofenceCollection -> Request DescribeGeofenceCollection
request = Service
-> DescribeGeofenceCollection -> Request DescribeGeofenceCollection
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeGeofenceCollection
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeGeofenceCollection)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeGeofenceCollection))
-> Logger
-> Service
-> Proxy DescribeGeofenceCollection
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeGeofenceCollection)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> Text
-> POSIX
-> Text
-> PricingPlan
-> POSIX
-> DescribeGeofenceCollectionResponse
DescribeGeofenceCollectionResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> Text
 -> Text
 -> POSIX
 -> Text
 -> PricingPlan
 -> POSIX
 -> DescribeGeofenceCollectionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PricingPlanDataSource")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeGeofenceCollectionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"KmsKeyId")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeGeofenceCollectionResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String
     (Int
      -> Text
      -> Text
      -> POSIX
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Int
   -> Text
   -> Text
   -> POSIX
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeGeofenceCollectionResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text
      -> POSIX
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => 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
  (Text
   -> Text
   -> POSIX
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeGeofenceCollectionResponse)
-> Either String Text
-> Either
     String
     (Text
      -> POSIX
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CollectionArn")
            Either
  String
  (Text
   -> POSIX
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeGeofenceCollectionResponse)
-> Either String Text
-> Either
     String
     (POSIX
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CollectionName")
            Either
  String
  (POSIX
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeGeofenceCollectionResponse)
-> Either String POSIX
-> Either
     String
     (Text
      -> PricingPlan -> POSIX -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreateTime")
            Either
  String
  (Text
   -> PricingPlan -> POSIX -> DescribeGeofenceCollectionResponse)
-> Either String Text
-> Either
     String (PricingPlan -> POSIX -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Description")
            Either
  String (PricingPlan -> POSIX -> DescribeGeofenceCollectionResponse)
-> Either String PricingPlan
-> Either String (POSIX -> DescribeGeofenceCollectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String PricingPlan
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"PricingPlan")
            Either String (POSIX -> DescribeGeofenceCollectionResponse)
-> Either String POSIX
-> Either String DescribeGeofenceCollectionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"UpdateTime")
      )

instance Prelude.Hashable DescribeGeofenceCollection

instance Prelude.NFData DescribeGeofenceCollection

instance Core.ToHeaders DescribeGeofenceCollection where
  toHeaders :: DescribeGeofenceCollection -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeGeofenceCollection -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeGeofenceCollection where
  toPath :: DescribeGeofenceCollection -> ByteString
toPath DescribeGeofenceCollection' {Text
collectionName :: Text
$sel:collectionName:DescribeGeofenceCollection' :: DescribeGeofenceCollection -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/geofencing/v0/collections/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
collectionName
      ]

instance Core.ToQuery DescribeGeofenceCollection where
  toQuery :: DescribeGeofenceCollection -> QueryString
toQuery = QueryString -> DescribeGeofenceCollection -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeGeofenceCollectionResponse' smart constructor.
data DescribeGeofenceCollectionResponse = DescribeGeofenceCollectionResponse'
  { -- | The specified data provider for the geofence collection.
    DescribeGeofenceCollectionResponse -> Maybe Text
pricingPlanDataSource :: Prelude.Maybe Prelude.Text,
    -- | A key identifier for an
    -- <https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html AWS KMS customer managed key>
    -- assigned to the Amazon Location resource
    DescribeGeofenceCollectionResponse -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | Displays the key, value pairs of tags associated with this resource.
    DescribeGeofenceCollectionResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeGeofenceCollectionResponse -> Int
httpStatus :: Prelude.Int,
    -- | The Amazon Resource Name (ARN) for the geofence collection resource.
    -- Used when you need to specify a resource across all AWS.
    --
    -- -   Format example:
    --     @arn:aws:geo:region:account-id:geofence-collection\/ExampleGeofenceCollection@
    DescribeGeofenceCollectionResponse -> Text
collectionArn :: Prelude.Text,
    -- | The name of the geofence collection.
    DescribeGeofenceCollectionResponse -> Text
collectionName :: Prelude.Text,
    -- | The timestamp for when the geofence resource was created in
    -- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
    -- format: @YYYY-MM-DDThh:mm:ss.sssZ@
    DescribeGeofenceCollectionResponse -> POSIX
createTime :: Core.POSIX,
    -- | The optional description for the geofence collection.
    DescribeGeofenceCollectionResponse -> Text
description :: Prelude.Text,
    -- | The pricing plan selected for the specified geofence collection.
    --
    -- For additional details and restrictions on each pricing plan option, see
    -- the
    -- <https://aws.amazon.com/location/pricing/ Amazon Location Service pricing page>.
    DescribeGeofenceCollectionResponse -> PricingPlan
pricingPlan :: PricingPlan,
    -- | The timestamp for when the geofence collection was last updated in
    -- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
    -- format: @YYYY-MM-DDThh:mm:ss.sssZ@
    DescribeGeofenceCollectionResponse -> POSIX
updateTime :: Core.POSIX
  }
  deriving (DescribeGeofenceCollectionResponse
-> DescribeGeofenceCollectionResponse -> Bool
(DescribeGeofenceCollectionResponse
 -> DescribeGeofenceCollectionResponse -> Bool)
-> (DescribeGeofenceCollectionResponse
    -> DescribeGeofenceCollectionResponse -> Bool)
-> Eq DescribeGeofenceCollectionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeGeofenceCollectionResponse
-> DescribeGeofenceCollectionResponse -> Bool
$c/= :: DescribeGeofenceCollectionResponse
-> DescribeGeofenceCollectionResponse -> Bool
== :: DescribeGeofenceCollectionResponse
-> DescribeGeofenceCollectionResponse -> Bool
$c== :: DescribeGeofenceCollectionResponse
-> DescribeGeofenceCollectionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeGeofenceCollectionResponse]
ReadPrec DescribeGeofenceCollectionResponse
Int -> ReadS DescribeGeofenceCollectionResponse
ReadS [DescribeGeofenceCollectionResponse]
(Int -> ReadS DescribeGeofenceCollectionResponse)
-> ReadS [DescribeGeofenceCollectionResponse]
-> ReadPrec DescribeGeofenceCollectionResponse
-> ReadPrec [DescribeGeofenceCollectionResponse]
-> Read DescribeGeofenceCollectionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeGeofenceCollectionResponse]
$creadListPrec :: ReadPrec [DescribeGeofenceCollectionResponse]
readPrec :: ReadPrec DescribeGeofenceCollectionResponse
$creadPrec :: ReadPrec DescribeGeofenceCollectionResponse
readList :: ReadS [DescribeGeofenceCollectionResponse]
$creadList :: ReadS [DescribeGeofenceCollectionResponse]
readsPrec :: Int -> ReadS DescribeGeofenceCollectionResponse
$creadsPrec :: Int -> ReadS DescribeGeofenceCollectionResponse
Prelude.Read, Int -> DescribeGeofenceCollectionResponse -> ShowS
[DescribeGeofenceCollectionResponse] -> ShowS
DescribeGeofenceCollectionResponse -> String
(Int -> DescribeGeofenceCollectionResponse -> ShowS)
-> (DescribeGeofenceCollectionResponse -> String)
-> ([DescribeGeofenceCollectionResponse] -> ShowS)
-> Show DescribeGeofenceCollectionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeGeofenceCollectionResponse] -> ShowS
$cshowList :: [DescribeGeofenceCollectionResponse] -> ShowS
show :: DescribeGeofenceCollectionResponse -> String
$cshow :: DescribeGeofenceCollectionResponse -> String
showsPrec :: Int -> DescribeGeofenceCollectionResponse -> ShowS
$cshowsPrec :: Int -> DescribeGeofenceCollectionResponse -> ShowS
Prelude.Show, (forall x.
 DescribeGeofenceCollectionResponse
 -> Rep DescribeGeofenceCollectionResponse x)
-> (forall x.
    Rep DescribeGeofenceCollectionResponse x
    -> DescribeGeofenceCollectionResponse)
-> Generic DescribeGeofenceCollectionResponse
forall x.
Rep DescribeGeofenceCollectionResponse x
-> DescribeGeofenceCollectionResponse
forall x.
DescribeGeofenceCollectionResponse
-> Rep DescribeGeofenceCollectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeGeofenceCollectionResponse x
-> DescribeGeofenceCollectionResponse
$cfrom :: forall x.
DescribeGeofenceCollectionResponse
-> Rep DescribeGeofenceCollectionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeGeofenceCollectionResponse' 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:
--
-- 'pricingPlanDataSource', 'describeGeofenceCollectionResponse_pricingPlanDataSource' - The specified data provider for the geofence collection.
--
-- 'kmsKeyId', 'describeGeofenceCollectionResponse_kmsKeyId' - A key identifier for an
-- <https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html AWS KMS customer managed key>
-- assigned to the Amazon Location resource
--
-- 'tags', 'describeGeofenceCollectionResponse_tags' - Displays the key, value pairs of tags associated with this resource.
--
-- 'httpStatus', 'describeGeofenceCollectionResponse_httpStatus' - The response's http status code.
--
-- 'collectionArn', 'describeGeofenceCollectionResponse_collectionArn' - The Amazon Resource Name (ARN) for the geofence collection resource.
-- Used when you need to specify a resource across all AWS.
--
-- -   Format example:
--     @arn:aws:geo:region:account-id:geofence-collection\/ExampleGeofenceCollection@
--
-- 'collectionName', 'describeGeofenceCollectionResponse_collectionName' - The name of the geofence collection.
--
-- 'createTime', 'describeGeofenceCollectionResponse_createTime' - The timestamp for when the geofence resource was created in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@
--
-- 'description', 'describeGeofenceCollectionResponse_description' - The optional description for the geofence collection.
--
-- 'pricingPlan', 'describeGeofenceCollectionResponse_pricingPlan' - The pricing plan selected for the specified geofence collection.
--
-- For additional details and restrictions on each pricing plan option, see
-- the
-- <https://aws.amazon.com/location/pricing/ Amazon Location Service pricing page>.
--
-- 'updateTime', 'describeGeofenceCollectionResponse_updateTime' - The timestamp for when the geofence collection was last updated in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@
newDescribeGeofenceCollectionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'collectionArn'
  Prelude.Text ->
  -- | 'collectionName'
  Prelude.Text ->
  -- | 'createTime'
  Prelude.UTCTime ->
  -- | 'description'
  Prelude.Text ->
  -- | 'pricingPlan'
  PricingPlan ->
  -- | 'updateTime'
  Prelude.UTCTime ->
  DescribeGeofenceCollectionResponse
newDescribeGeofenceCollectionResponse :: Int
-> Text
-> Text
-> UTCTime
-> Text
-> PricingPlan
-> UTCTime
-> DescribeGeofenceCollectionResponse
newDescribeGeofenceCollectionResponse
  Int
pHttpStatus_
  Text
pCollectionArn_
  Text
pCollectionName_
  UTCTime
pCreateTime_
  Text
pDescription_
  PricingPlan
pPricingPlan_
  UTCTime
pUpdateTime_ =
    DescribeGeofenceCollectionResponse' :: Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> Text
-> POSIX
-> Text
-> PricingPlan
-> POSIX
-> DescribeGeofenceCollectionResponse
DescribeGeofenceCollectionResponse'
      { $sel:pricingPlanDataSource:DescribeGeofenceCollectionResponse' :: Maybe Text
pricingPlanDataSource =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:kmsKeyId:DescribeGeofenceCollectionResponse' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:DescribeGeofenceCollectionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeGeofenceCollectionResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:collectionArn:DescribeGeofenceCollectionResponse' :: Text
collectionArn = Text
pCollectionArn_,
        $sel:collectionName:DescribeGeofenceCollectionResponse' :: Text
collectionName = Text
pCollectionName_,
        $sel:createTime:DescribeGeofenceCollectionResponse' :: POSIX
createTime =
          Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreateTime_,
        $sel:description:DescribeGeofenceCollectionResponse' :: Text
description = Text
pDescription_,
        $sel:pricingPlan:DescribeGeofenceCollectionResponse' :: PricingPlan
pricingPlan = PricingPlan
pPricingPlan_,
        $sel:updateTime:DescribeGeofenceCollectionResponse' :: POSIX
updateTime =
          Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pUpdateTime_
      }

-- | The specified data provider for the geofence collection.
describeGeofenceCollectionResponse_pricingPlanDataSource :: Lens.Lens' DescribeGeofenceCollectionResponse (Prelude.Maybe Prelude.Text)
describeGeofenceCollectionResponse_pricingPlanDataSource :: (Maybe Text -> f (Maybe Text))
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_pricingPlanDataSource = (DescribeGeofenceCollectionResponse -> Maybe Text)
-> (DescribeGeofenceCollectionResponse
    -> Maybe Text -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {Maybe Text
pricingPlanDataSource :: Maybe Text
$sel:pricingPlanDataSource:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> Maybe Text
pricingPlanDataSource} -> Maybe Text
pricingPlanDataSource) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} Maybe Text
a -> DescribeGeofenceCollectionResponse
s {$sel:pricingPlanDataSource:DescribeGeofenceCollectionResponse' :: Maybe Text
pricingPlanDataSource = Maybe Text
a} :: DescribeGeofenceCollectionResponse)

-- | A key identifier for an
-- <https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html AWS KMS customer managed key>
-- assigned to the Amazon Location resource
describeGeofenceCollectionResponse_kmsKeyId :: Lens.Lens' DescribeGeofenceCollectionResponse (Prelude.Maybe Prelude.Text)
describeGeofenceCollectionResponse_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_kmsKeyId = (DescribeGeofenceCollectionResponse -> Maybe Text)
-> (DescribeGeofenceCollectionResponse
    -> Maybe Text -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} Maybe Text
a -> DescribeGeofenceCollectionResponse
s {$sel:kmsKeyId:DescribeGeofenceCollectionResponse' :: Maybe Text
kmsKeyId = Maybe Text
a} :: DescribeGeofenceCollectionResponse)

-- | Displays the key, value pairs of tags associated with this resource.
describeGeofenceCollectionResponse_tags :: Lens.Lens' DescribeGeofenceCollectionResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeGeofenceCollectionResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_tags = (DescribeGeofenceCollectionResponse -> Maybe (HashMap Text Text))
-> (DescribeGeofenceCollectionResponse
    -> Maybe (HashMap Text Text) -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} Maybe (HashMap Text Text)
a -> DescribeGeofenceCollectionResponse
s {$sel:tags:DescribeGeofenceCollectionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeGeofenceCollectionResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeGeofenceCollectionResponse
 -> f DescribeGeofenceCollectionResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

-- | The Amazon Resource Name (ARN) for the geofence collection resource.
-- Used when you need to specify a resource across all AWS.
--
-- -   Format example:
--     @arn:aws:geo:region:account-id:geofence-collection\/ExampleGeofenceCollection@
describeGeofenceCollectionResponse_collectionArn :: Lens.Lens' DescribeGeofenceCollectionResponse Prelude.Text
describeGeofenceCollectionResponse_collectionArn :: (Text -> f Text)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_collectionArn = (DescribeGeofenceCollectionResponse -> Text)
-> (DescribeGeofenceCollectionResponse
    -> Text -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {Text
collectionArn :: Text
$sel:collectionArn:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> Text
collectionArn} -> Text
collectionArn) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} Text
a -> DescribeGeofenceCollectionResponse
s {$sel:collectionArn:DescribeGeofenceCollectionResponse' :: Text
collectionArn = Text
a} :: DescribeGeofenceCollectionResponse)

-- | The name of the geofence collection.
describeGeofenceCollectionResponse_collectionName :: Lens.Lens' DescribeGeofenceCollectionResponse Prelude.Text
describeGeofenceCollectionResponse_collectionName :: (Text -> f Text)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_collectionName = (DescribeGeofenceCollectionResponse -> Text)
-> (DescribeGeofenceCollectionResponse
    -> Text -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {Text
collectionName :: Text
$sel:collectionName:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> Text
collectionName} -> Text
collectionName) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} Text
a -> DescribeGeofenceCollectionResponse
s {$sel:collectionName:DescribeGeofenceCollectionResponse' :: Text
collectionName = Text
a} :: DescribeGeofenceCollectionResponse)

-- | The timestamp for when the geofence resource was created in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@
describeGeofenceCollectionResponse_createTime :: Lens.Lens' DescribeGeofenceCollectionResponse Prelude.UTCTime
describeGeofenceCollectionResponse_createTime :: (UTCTime -> f UTCTime)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_createTime = (DescribeGeofenceCollectionResponse -> POSIX)
-> (DescribeGeofenceCollectionResponse
    -> POSIX -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {POSIX
createTime :: POSIX
$sel:createTime:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> POSIX
createTime} -> POSIX
createTime) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} POSIX
a -> DescribeGeofenceCollectionResponse
s {$sel:createTime:DescribeGeofenceCollectionResponse' :: POSIX
createTime = POSIX
a} :: DescribeGeofenceCollectionResponse) ((POSIX -> f POSIX)
 -> DescribeGeofenceCollectionResponse
 -> f DescribeGeofenceCollectionResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The optional description for the geofence collection.
describeGeofenceCollectionResponse_description :: Lens.Lens' DescribeGeofenceCollectionResponse Prelude.Text
describeGeofenceCollectionResponse_description :: (Text -> f Text)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_description = (DescribeGeofenceCollectionResponse -> Text)
-> (DescribeGeofenceCollectionResponse
    -> Text -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {Text
description :: Text
$sel:description:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> Text
description} -> Text
description) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} Text
a -> DescribeGeofenceCollectionResponse
s {$sel:description:DescribeGeofenceCollectionResponse' :: Text
description = Text
a} :: DescribeGeofenceCollectionResponse)

-- | The pricing plan selected for the specified geofence collection.
--
-- For additional details and restrictions on each pricing plan option, see
-- the
-- <https://aws.amazon.com/location/pricing/ Amazon Location Service pricing page>.
describeGeofenceCollectionResponse_pricingPlan :: Lens.Lens' DescribeGeofenceCollectionResponse PricingPlan
describeGeofenceCollectionResponse_pricingPlan :: (PricingPlan -> f PricingPlan)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_pricingPlan = (DescribeGeofenceCollectionResponse -> PricingPlan)
-> (DescribeGeofenceCollectionResponse
    -> PricingPlan -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     PricingPlan
     PricingPlan
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {PricingPlan
pricingPlan :: PricingPlan
$sel:pricingPlan:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> PricingPlan
pricingPlan} -> PricingPlan
pricingPlan) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} PricingPlan
a -> DescribeGeofenceCollectionResponse
s {$sel:pricingPlan:DescribeGeofenceCollectionResponse' :: PricingPlan
pricingPlan = PricingPlan
a} :: DescribeGeofenceCollectionResponse)

-- | The timestamp for when the geofence collection was last updated in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@
describeGeofenceCollectionResponse_updateTime :: Lens.Lens' DescribeGeofenceCollectionResponse Prelude.UTCTime
describeGeofenceCollectionResponse_updateTime :: (UTCTime -> f UTCTime)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
describeGeofenceCollectionResponse_updateTime = (DescribeGeofenceCollectionResponse -> POSIX)
-> (DescribeGeofenceCollectionResponse
    -> POSIX -> DescribeGeofenceCollectionResponse)
-> Lens
     DescribeGeofenceCollectionResponse
     DescribeGeofenceCollectionResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGeofenceCollectionResponse' {POSIX
updateTime :: POSIX
$sel:updateTime:DescribeGeofenceCollectionResponse' :: DescribeGeofenceCollectionResponse -> POSIX
updateTime} -> POSIX
updateTime) (\s :: DescribeGeofenceCollectionResponse
s@DescribeGeofenceCollectionResponse' {} POSIX
a -> DescribeGeofenceCollectionResponse
s {$sel:updateTime:DescribeGeofenceCollectionResponse' :: POSIX
updateTime = POSIX
a} :: DescribeGeofenceCollectionResponse) ((POSIX -> f POSIX)
 -> DescribeGeofenceCollectionResponse
 -> f DescribeGeofenceCollectionResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeGeofenceCollectionResponse
-> f DescribeGeofenceCollectionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance
  Prelude.NFData
    DescribeGeofenceCollectionResponse