{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Location.Types.ListGeofenceCollectionsResponseEntry where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Location.Types.PricingPlan
import qualified Amazonka.Prelude as Prelude
data ListGeofenceCollectionsResponseEntry = ListGeofenceCollectionsResponseEntry'
{
ListGeofenceCollectionsResponseEntry -> Maybe Text
pricingPlanDataSource :: Prelude.Maybe Prelude.Text,
ListGeofenceCollectionsResponseEntry -> Text
collectionName :: Prelude.Text,
ListGeofenceCollectionsResponseEntry -> POSIX
createTime :: Core.POSIX,
ListGeofenceCollectionsResponseEntry -> Text
description :: Prelude.Text,
ListGeofenceCollectionsResponseEntry -> PricingPlan
pricingPlan :: PricingPlan,
ListGeofenceCollectionsResponseEntry -> POSIX
updateTime :: Core.POSIX
}
deriving (ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool
(ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool)
-> (ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool)
-> Eq ListGeofenceCollectionsResponseEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool
$c/= :: ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool
== :: ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool
$c== :: ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool
Prelude.Eq, ReadPrec [ListGeofenceCollectionsResponseEntry]
ReadPrec ListGeofenceCollectionsResponseEntry
Int -> ReadS ListGeofenceCollectionsResponseEntry
ReadS [ListGeofenceCollectionsResponseEntry]
(Int -> ReadS ListGeofenceCollectionsResponseEntry)
-> ReadS [ListGeofenceCollectionsResponseEntry]
-> ReadPrec ListGeofenceCollectionsResponseEntry
-> ReadPrec [ListGeofenceCollectionsResponseEntry]
-> Read ListGeofenceCollectionsResponseEntry
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGeofenceCollectionsResponseEntry]
$creadListPrec :: ReadPrec [ListGeofenceCollectionsResponseEntry]
readPrec :: ReadPrec ListGeofenceCollectionsResponseEntry
$creadPrec :: ReadPrec ListGeofenceCollectionsResponseEntry
readList :: ReadS [ListGeofenceCollectionsResponseEntry]
$creadList :: ReadS [ListGeofenceCollectionsResponseEntry]
readsPrec :: Int -> ReadS ListGeofenceCollectionsResponseEntry
$creadsPrec :: Int -> ReadS ListGeofenceCollectionsResponseEntry
Prelude.Read, Int -> ListGeofenceCollectionsResponseEntry -> ShowS
[ListGeofenceCollectionsResponseEntry] -> ShowS
ListGeofenceCollectionsResponseEntry -> String
(Int -> ListGeofenceCollectionsResponseEntry -> ShowS)
-> (ListGeofenceCollectionsResponseEntry -> String)
-> ([ListGeofenceCollectionsResponseEntry] -> ShowS)
-> Show ListGeofenceCollectionsResponseEntry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGeofenceCollectionsResponseEntry] -> ShowS
$cshowList :: [ListGeofenceCollectionsResponseEntry] -> ShowS
show :: ListGeofenceCollectionsResponseEntry -> String
$cshow :: ListGeofenceCollectionsResponseEntry -> String
showsPrec :: Int -> ListGeofenceCollectionsResponseEntry -> ShowS
$cshowsPrec :: Int -> ListGeofenceCollectionsResponseEntry -> ShowS
Prelude.Show, (forall x.
ListGeofenceCollectionsResponseEntry
-> Rep ListGeofenceCollectionsResponseEntry x)
-> (forall x.
Rep ListGeofenceCollectionsResponseEntry x
-> ListGeofenceCollectionsResponseEntry)
-> Generic ListGeofenceCollectionsResponseEntry
forall x.
Rep ListGeofenceCollectionsResponseEntry x
-> ListGeofenceCollectionsResponseEntry
forall x.
ListGeofenceCollectionsResponseEntry
-> Rep ListGeofenceCollectionsResponseEntry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListGeofenceCollectionsResponseEntry x
-> ListGeofenceCollectionsResponseEntry
$cfrom :: forall x.
ListGeofenceCollectionsResponseEntry
-> Rep ListGeofenceCollectionsResponseEntry x
Prelude.Generic)
newListGeofenceCollectionsResponseEntry ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.Text ->
PricingPlan ->
Prelude.UTCTime ->
ListGeofenceCollectionsResponseEntry
newListGeofenceCollectionsResponseEntry :: Text
-> UTCTime
-> Text
-> PricingPlan
-> UTCTime
-> ListGeofenceCollectionsResponseEntry
newListGeofenceCollectionsResponseEntry
Text
pCollectionName_
UTCTime
pCreateTime_
Text
pDescription_
PricingPlan
pPricingPlan_
UTCTime
pUpdateTime_ =
ListGeofenceCollectionsResponseEntry' :: Maybe Text
-> Text
-> POSIX
-> Text
-> PricingPlan
-> POSIX
-> ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry'
{ $sel:pricingPlanDataSource:ListGeofenceCollectionsResponseEntry' :: Maybe Text
pricingPlanDataSource =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:collectionName:ListGeofenceCollectionsResponseEntry' :: Text
collectionName = Text
pCollectionName_,
$sel:createTime:ListGeofenceCollectionsResponseEntry' :: 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:ListGeofenceCollectionsResponseEntry' :: Text
description = Text
pDescription_,
$sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
pPricingPlan_,
$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: 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_
}
listGeofenceCollectionsResponseEntry_pricingPlanDataSource :: Lens.Lens' ListGeofenceCollectionsResponseEntry (Prelude.Maybe Prelude.Text)
listGeofenceCollectionsResponseEntry_pricingPlanDataSource :: (Maybe Text -> f (Maybe Text))
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
listGeofenceCollectionsResponseEntry_pricingPlanDataSource = (ListGeofenceCollectionsResponseEntry -> Maybe Text)
-> (ListGeofenceCollectionsResponseEntry
-> Maybe Text -> ListGeofenceCollectionsResponseEntry)
-> Lens
ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {Maybe Text
pricingPlanDataSource :: Maybe Text
$sel:pricingPlanDataSource:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Maybe Text
pricingPlanDataSource} -> Maybe Text
pricingPlanDataSource) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} Maybe Text
a -> ListGeofenceCollectionsResponseEntry
s {$sel:pricingPlanDataSource:ListGeofenceCollectionsResponseEntry' :: Maybe Text
pricingPlanDataSource = Maybe Text
a} :: ListGeofenceCollectionsResponseEntry)
listGeofenceCollectionsResponseEntry_collectionName :: Lens.Lens' ListGeofenceCollectionsResponseEntry Prelude.Text
listGeofenceCollectionsResponseEntry_collectionName :: (Text -> f Text)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
listGeofenceCollectionsResponseEntry_collectionName = (ListGeofenceCollectionsResponseEntry -> Text)
-> (ListGeofenceCollectionsResponseEntry
-> Text -> ListGeofenceCollectionsResponseEntry)
-> Lens
ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {Text
collectionName :: Text
$sel:collectionName:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Text
collectionName} -> Text
collectionName) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} Text
a -> ListGeofenceCollectionsResponseEntry
s {$sel:collectionName:ListGeofenceCollectionsResponseEntry' :: Text
collectionName = Text
a} :: ListGeofenceCollectionsResponseEntry)
listGeofenceCollectionsResponseEntry_createTime :: Lens.Lens' ListGeofenceCollectionsResponseEntry Prelude.UTCTime
listGeofenceCollectionsResponseEntry_createTime :: (UTCTime -> f UTCTime)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
listGeofenceCollectionsResponseEntry_createTime = (ListGeofenceCollectionsResponseEntry -> POSIX)
-> (ListGeofenceCollectionsResponseEntry
-> POSIX -> ListGeofenceCollectionsResponseEntry)
-> Lens
ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {POSIX
createTime :: POSIX
$sel:createTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> POSIX
createTime} -> POSIX
createTime) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} POSIX
a -> ListGeofenceCollectionsResponseEntry
s {$sel:createTime:ListGeofenceCollectionsResponseEntry' :: POSIX
createTime = POSIX
a} :: ListGeofenceCollectionsResponseEntry) ((POSIX -> f POSIX)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
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
listGeofenceCollectionsResponseEntry_description :: Lens.Lens' ListGeofenceCollectionsResponseEntry Prelude.Text
listGeofenceCollectionsResponseEntry_description :: (Text -> f Text)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
listGeofenceCollectionsResponseEntry_description = (ListGeofenceCollectionsResponseEntry -> Text)
-> (ListGeofenceCollectionsResponseEntry
-> Text -> ListGeofenceCollectionsResponseEntry)
-> Lens
ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {Text
description :: Text
$sel:description:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Text
description} -> Text
description) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} Text
a -> ListGeofenceCollectionsResponseEntry
s {$sel:description:ListGeofenceCollectionsResponseEntry' :: Text
description = Text
a} :: ListGeofenceCollectionsResponseEntry)
listGeofenceCollectionsResponseEntry_pricingPlan :: Lens.Lens' ListGeofenceCollectionsResponseEntry PricingPlan
listGeofenceCollectionsResponseEntry_pricingPlan :: (PricingPlan -> f PricingPlan)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
listGeofenceCollectionsResponseEntry_pricingPlan = (ListGeofenceCollectionsResponseEntry -> PricingPlan)
-> (ListGeofenceCollectionsResponseEntry
-> PricingPlan -> ListGeofenceCollectionsResponseEntry)
-> Lens
ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry
PricingPlan
PricingPlan
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {PricingPlan
pricingPlan :: PricingPlan
$sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> PricingPlan
pricingPlan} -> PricingPlan
pricingPlan) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} PricingPlan
a -> ListGeofenceCollectionsResponseEntry
s {$sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
a} :: ListGeofenceCollectionsResponseEntry)
listGeofenceCollectionsResponseEntry_updateTime :: Lens.Lens' ListGeofenceCollectionsResponseEntry Prelude.UTCTime
listGeofenceCollectionsResponseEntry_updateTime :: (UTCTime -> f UTCTime)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
listGeofenceCollectionsResponseEntry_updateTime = (ListGeofenceCollectionsResponseEntry -> POSIX)
-> (ListGeofenceCollectionsResponseEntry
-> POSIX -> ListGeofenceCollectionsResponseEntry)
-> Lens
ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {POSIX
updateTime :: POSIX
$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> POSIX
updateTime} -> POSIX
updateTime) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} POSIX
a -> ListGeofenceCollectionsResponseEntry
s {$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: POSIX
updateTime = POSIX
a} :: ListGeofenceCollectionsResponseEntry) ((POSIX -> f POSIX)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListGeofenceCollectionsResponseEntry
-> f ListGeofenceCollectionsResponseEntry
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
Core.FromJSON
ListGeofenceCollectionsResponseEntry
where
parseJSON :: Value -> Parser ListGeofenceCollectionsResponseEntry
parseJSON =
String
-> (Object -> Parser ListGeofenceCollectionsResponseEntry)
-> Value
-> Parser ListGeofenceCollectionsResponseEntry
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ListGeofenceCollectionsResponseEntry"
( \Object
x ->
Maybe Text
-> Text
-> POSIX
-> Text
-> PricingPlan
-> POSIX
-> ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry'
(Maybe Text
-> Text
-> POSIX
-> Text
-> PricingPlan
-> POSIX
-> ListGeofenceCollectionsResponseEntry)
-> Parser (Maybe Text)
-> Parser
(Text
-> POSIX
-> Text
-> PricingPlan
-> POSIX
-> ListGeofenceCollectionsResponseEntry)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PricingPlanDataSource")
Parser
(Text
-> POSIX
-> Text
-> PricingPlan
-> POSIX
-> ListGeofenceCollectionsResponseEntry)
-> Parser Text
-> Parser
(POSIX
-> Text
-> PricingPlan
-> POSIX
-> ListGeofenceCollectionsResponseEntry)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CollectionName")
Parser
(POSIX
-> Text
-> PricingPlan
-> POSIX
-> ListGeofenceCollectionsResponseEntry)
-> Parser POSIX
-> Parser
(Text
-> PricingPlan -> POSIX -> ListGeofenceCollectionsResponseEntry)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CreateTime")
Parser
(Text
-> PricingPlan -> POSIX -> ListGeofenceCollectionsResponseEntry)
-> Parser Text
-> Parser
(PricingPlan -> POSIX -> ListGeofenceCollectionsResponseEntry)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Description")
Parser
(PricingPlan -> POSIX -> ListGeofenceCollectionsResponseEntry)
-> Parser PricingPlan
-> Parser (POSIX -> ListGeofenceCollectionsResponseEntry)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser PricingPlan
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"PricingPlan")
Parser (POSIX -> ListGeofenceCollectionsResponseEntry)
-> Parser POSIX -> Parser ListGeofenceCollectionsResponseEntry
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"UpdateTime")
)
instance
Prelude.Hashable
ListGeofenceCollectionsResponseEntry
instance
Prelude.NFData
ListGeofenceCollectionsResponseEntry