{-# 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.ListMapsResponseEntry 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 ListMapsResponseEntry = ListMapsResponseEntry'
{
ListMapsResponseEntry -> POSIX
createTime :: Core.POSIX,
ListMapsResponseEntry -> Text
dataSource :: Prelude.Text,
ListMapsResponseEntry -> Text
description :: Prelude.Text,
ListMapsResponseEntry -> Text
mapName :: Prelude.Text,
ListMapsResponseEntry -> PricingPlan
pricingPlan :: PricingPlan,
ListMapsResponseEntry -> POSIX
updateTime :: Core.POSIX
}
deriving (ListMapsResponseEntry -> ListMapsResponseEntry -> Bool
(ListMapsResponseEntry -> ListMapsResponseEntry -> Bool)
-> (ListMapsResponseEntry -> ListMapsResponseEntry -> Bool)
-> Eq ListMapsResponseEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMapsResponseEntry -> ListMapsResponseEntry -> Bool
$c/= :: ListMapsResponseEntry -> ListMapsResponseEntry -> Bool
== :: ListMapsResponseEntry -> ListMapsResponseEntry -> Bool
$c== :: ListMapsResponseEntry -> ListMapsResponseEntry -> Bool
Prelude.Eq, ReadPrec [ListMapsResponseEntry]
ReadPrec ListMapsResponseEntry
Int -> ReadS ListMapsResponseEntry
ReadS [ListMapsResponseEntry]
(Int -> ReadS ListMapsResponseEntry)
-> ReadS [ListMapsResponseEntry]
-> ReadPrec ListMapsResponseEntry
-> ReadPrec [ListMapsResponseEntry]
-> Read ListMapsResponseEntry
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMapsResponseEntry]
$creadListPrec :: ReadPrec [ListMapsResponseEntry]
readPrec :: ReadPrec ListMapsResponseEntry
$creadPrec :: ReadPrec ListMapsResponseEntry
readList :: ReadS [ListMapsResponseEntry]
$creadList :: ReadS [ListMapsResponseEntry]
readsPrec :: Int -> ReadS ListMapsResponseEntry
$creadsPrec :: Int -> ReadS ListMapsResponseEntry
Prelude.Read, Int -> ListMapsResponseEntry -> ShowS
[ListMapsResponseEntry] -> ShowS
ListMapsResponseEntry -> String
(Int -> ListMapsResponseEntry -> ShowS)
-> (ListMapsResponseEntry -> String)
-> ([ListMapsResponseEntry] -> ShowS)
-> Show ListMapsResponseEntry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMapsResponseEntry] -> ShowS
$cshowList :: [ListMapsResponseEntry] -> ShowS
show :: ListMapsResponseEntry -> String
$cshow :: ListMapsResponseEntry -> String
showsPrec :: Int -> ListMapsResponseEntry -> ShowS
$cshowsPrec :: Int -> ListMapsResponseEntry -> ShowS
Prelude.Show, (forall x. ListMapsResponseEntry -> Rep ListMapsResponseEntry x)
-> (forall x. Rep ListMapsResponseEntry x -> ListMapsResponseEntry)
-> Generic ListMapsResponseEntry
forall x. Rep ListMapsResponseEntry x -> ListMapsResponseEntry
forall x. ListMapsResponseEntry -> Rep ListMapsResponseEntry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListMapsResponseEntry x -> ListMapsResponseEntry
$cfrom :: forall x. ListMapsResponseEntry -> Rep ListMapsResponseEntry x
Prelude.Generic)
newListMapsResponseEntry ::
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
PricingPlan ->
Prelude.UTCTime ->
ListMapsResponseEntry
newListMapsResponseEntry :: UTCTime
-> Text
-> Text
-> Text
-> PricingPlan
-> UTCTime
-> ListMapsResponseEntry
newListMapsResponseEntry
UTCTime
pCreateTime_
Text
pDataSource_
Text
pDescription_
Text
pMapName_
PricingPlan
pPricingPlan_
UTCTime
pUpdateTime_ =
ListMapsResponseEntry' :: POSIX
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListMapsResponseEntry
ListMapsResponseEntry'
{ $sel:createTime:ListMapsResponseEntry' :: 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:dataSource:ListMapsResponseEntry' :: Text
dataSource = Text
pDataSource_,
$sel:description:ListMapsResponseEntry' :: Text
description = Text
pDescription_,
$sel:mapName:ListMapsResponseEntry' :: Text
mapName = Text
pMapName_,
$sel:pricingPlan:ListMapsResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
pPricingPlan_,
$sel:updateTime:ListMapsResponseEntry' :: 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_
}
listMapsResponseEntry_createTime :: Lens.Lens' ListMapsResponseEntry Prelude.UTCTime
listMapsResponseEntry_createTime :: (UTCTime -> f UTCTime)
-> ListMapsResponseEntry -> f ListMapsResponseEntry
listMapsResponseEntry_createTime = (ListMapsResponseEntry -> POSIX)
-> (ListMapsResponseEntry -> POSIX -> ListMapsResponseEntry)
-> Lens ListMapsResponseEntry ListMapsResponseEntry POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMapsResponseEntry' {POSIX
createTime :: POSIX
$sel:createTime:ListMapsResponseEntry' :: ListMapsResponseEntry -> POSIX
createTime} -> POSIX
createTime) (\s :: ListMapsResponseEntry
s@ListMapsResponseEntry' {} POSIX
a -> ListMapsResponseEntry
s {$sel:createTime:ListMapsResponseEntry' :: POSIX
createTime = POSIX
a} :: ListMapsResponseEntry) ((POSIX -> f POSIX)
-> ListMapsResponseEntry -> f ListMapsResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListMapsResponseEntry
-> f ListMapsResponseEntry
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
listMapsResponseEntry_dataSource :: Lens.Lens' ListMapsResponseEntry Prelude.Text
listMapsResponseEntry_dataSource :: (Text -> f Text)
-> ListMapsResponseEntry -> f ListMapsResponseEntry
listMapsResponseEntry_dataSource = (ListMapsResponseEntry -> Text)
-> (ListMapsResponseEntry -> Text -> ListMapsResponseEntry)
-> Lens ListMapsResponseEntry ListMapsResponseEntry Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMapsResponseEntry' {Text
dataSource :: Text
$sel:dataSource:ListMapsResponseEntry' :: ListMapsResponseEntry -> Text
dataSource} -> Text
dataSource) (\s :: ListMapsResponseEntry
s@ListMapsResponseEntry' {} Text
a -> ListMapsResponseEntry
s {$sel:dataSource:ListMapsResponseEntry' :: Text
dataSource = Text
a} :: ListMapsResponseEntry)
listMapsResponseEntry_description :: Lens.Lens' ListMapsResponseEntry Prelude.Text
listMapsResponseEntry_description :: (Text -> f Text)
-> ListMapsResponseEntry -> f ListMapsResponseEntry
listMapsResponseEntry_description = (ListMapsResponseEntry -> Text)
-> (ListMapsResponseEntry -> Text -> ListMapsResponseEntry)
-> Lens ListMapsResponseEntry ListMapsResponseEntry Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMapsResponseEntry' {Text
description :: Text
$sel:description:ListMapsResponseEntry' :: ListMapsResponseEntry -> Text
description} -> Text
description) (\s :: ListMapsResponseEntry
s@ListMapsResponseEntry' {} Text
a -> ListMapsResponseEntry
s {$sel:description:ListMapsResponseEntry' :: Text
description = Text
a} :: ListMapsResponseEntry)
listMapsResponseEntry_mapName :: Lens.Lens' ListMapsResponseEntry Prelude.Text
listMapsResponseEntry_mapName :: (Text -> f Text)
-> ListMapsResponseEntry -> f ListMapsResponseEntry
listMapsResponseEntry_mapName = (ListMapsResponseEntry -> Text)
-> (ListMapsResponseEntry -> Text -> ListMapsResponseEntry)
-> Lens ListMapsResponseEntry ListMapsResponseEntry Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMapsResponseEntry' {Text
mapName :: Text
$sel:mapName:ListMapsResponseEntry' :: ListMapsResponseEntry -> Text
mapName} -> Text
mapName) (\s :: ListMapsResponseEntry
s@ListMapsResponseEntry' {} Text
a -> ListMapsResponseEntry
s {$sel:mapName:ListMapsResponseEntry' :: Text
mapName = Text
a} :: ListMapsResponseEntry)
listMapsResponseEntry_pricingPlan :: Lens.Lens' ListMapsResponseEntry PricingPlan
listMapsResponseEntry_pricingPlan :: (PricingPlan -> f PricingPlan)
-> ListMapsResponseEntry -> f ListMapsResponseEntry
listMapsResponseEntry_pricingPlan = (ListMapsResponseEntry -> PricingPlan)
-> (ListMapsResponseEntry -> PricingPlan -> ListMapsResponseEntry)
-> Lens
ListMapsResponseEntry ListMapsResponseEntry PricingPlan PricingPlan
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMapsResponseEntry' {PricingPlan
pricingPlan :: PricingPlan
$sel:pricingPlan:ListMapsResponseEntry' :: ListMapsResponseEntry -> PricingPlan
pricingPlan} -> PricingPlan
pricingPlan) (\s :: ListMapsResponseEntry
s@ListMapsResponseEntry' {} PricingPlan
a -> ListMapsResponseEntry
s {$sel:pricingPlan:ListMapsResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
a} :: ListMapsResponseEntry)
listMapsResponseEntry_updateTime :: Lens.Lens' ListMapsResponseEntry Prelude.UTCTime
listMapsResponseEntry_updateTime :: (UTCTime -> f UTCTime)
-> ListMapsResponseEntry -> f ListMapsResponseEntry
listMapsResponseEntry_updateTime = (ListMapsResponseEntry -> POSIX)
-> (ListMapsResponseEntry -> POSIX -> ListMapsResponseEntry)
-> Lens ListMapsResponseEntry ListMapsResponseEntry POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMapsResponseEntry' {POSIX
updateTime :: POSIX
$sel:updateTime:ListMapsResponseEntry' :: ListMapsResponseEntry -> POSIX
updateTime} -> POSIX
updateTime) (\s :: ListMapsResponseEntry
s@ListMapsResponseEntry' {} POSIX
a -> ListMapsResponseEntry
s {$sel:updateTime:ListMapsResponseEntry' :: POSIX
updateTime = POSIX
a} :: ListMapsResponseEntry) ((POSIX -> f POSIX)
-> ListMapsResponseEntry -> f ListMapsResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListMapsResponseEntry
-> f ListMapsResponseEntry
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 ListMapsResponseEntry where
parseJSON :: Value -> Parser ListMapsResponseEntry
parseJSON =
String
-> (Object -> Parser ListMapsResponseEntry)
-> Value
-> Parser ListMapsResponseEntry
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ListMapsResponseEntry"
( \Object
x ->
POSIX
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListMapsResponseEntry
ListMapsResponseEntry'
(POSIX
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListMapsResponseEntry)
-> Parser POSIX
-> Parser
(Text
-> Text -> Text -> PricingPlan -> POSIX -> ListMapsResponseEntry)
forall (f :: * -> *) a b. Functor 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
-> Text -> Text -> PricingPlan -> POSIX -> ListMapsResponseEntry)
-> Parser Text
-> Parser
(Text -> Text -> PricingPlan -> POSIX -> ListMapsResponseEntry)
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
"DataSource")
Parser
(Text -> Text -> PricingPlan -> POSIX -> ListMapsResponseEntry)
-> Parser Text
-> Parser (Text -> PricingPlan -> POSIX -> ListMapsResponseEntry)
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 (Text -> PricingPlan -> POSIX -> ListMapsResponseEntry)
-> Parser Text
-> Parser (PricingPlan -> POSIX -> ListMapsResponseEntry)
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
"MapName")
Parser (PricingPlan -> POSIX -> ListMapsResponseEntry)
-> Parser PricingPlan -> Parser (POSIX -> ListMapsResponseEntry)
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 -> ListMapsResponseEntry)
-> Parser POSIX -> Parser ListMapsResponseEntry
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 ListMapsResponseEntry
instance Prelude.NFData ListMapsResponseEntry