{-# 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.ListPlaceIndexesResponseEntry 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 ListPlaceIndexesResponseEntry = ListPlaceIndexesResponseEntry'
{
ListPlaceIndexesResponseEntry -> POSIX
createTime :: Core.POSIX,
ListPlaceIndexesResponseEntry -> Text
dataSource :: Prelude.Text,
ListPlaceIndexesResponseEntry -> Text
description :: Prelude.Text,
ListPlaceIndexesResponseEntry -> Text
indexName :: Prelude.Text,
ListPlaceIndexesResponseEntry -> PricingPlan
pricingPlan :: PricingPlan,
ListPlaceIndexesResponseEntry -> POSIX
updateTime :: Core.POSIX
}
deriving (ListPlaceIndexesResponseEntry
-> ListPlaceIndexesResponseEntry -> Bool
(ListPlaceIndexesResponseEntry
-> ListPlaceIndexesResponseEntry -> Bool)
-> (ListPlaceIndexesResponseEntry
-> ListPlaceIndexesResponseEntry -> Bool)
-> Eq ListPlaceIndexesResponseEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPlaceIndexesResponseEntry
-> ListPlaceIndexesResponseEntry -> Bool
$c/= :: ListPlaceIndexesResponseEntry
-> ListPlaceIndexesResponseEntry -> Bool
== :: ListPlaceIndexesResponseEntry
-> ListPlaceIndexesResponseEntry -> Bool
$c== :: ListPlaceIndexesResponseEntry
-> ListPlaceIndexesResponseEntry -> Bool
Prelude.Eq, ReadPrec [ListPlaceIndexesResponseEntry]
ReadPrec ListPlaceIndexesResponseEntry
Int -> ReadS ListPlaceIndexesResponseEntry
ReadS [ListPlaceIndexesResponseEntry]
(Int -> ReadS ListPlaceIndexesResponseEntry)
-> ReadS [ListPlaceIndexesResponseEntry]
-> ReadPrec ListPlaceIndexesResponseEntry
-> ReadPrec [ListPlaceIndexesResponseEntry]
-> Read ListPlaceIndexesResponseEntry
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPlaceIndexesResponseEntry]
$creadListPrec :: ReadPrec [ListPlaceIndexesResponseEntry]
readPrec :: ReadPrec ListPlaceIndexesResponseEntry
$creadPrec :: ReadPrec ListPlaceIndexesResponseEntry
readList :: ReadS [ListPlaceIndexesResponseEntry]
$creadList :: ReadS [ListPlaceIndexesResponseEntry]
readsPrec :: Int -> ReadS ListPlaceIndexesResponseEntry
$creadsPrec :: Int -> ReadS ListPlaceIndexesResponseEntry
Prelude.Read, Int -> ListPlaceIndexesResponseEntry -> ShowS
[ListPlaceIndexesResponseEntry] -> ShowS
ListPlaceIndexesResponseEntry -> String
(Int -> ListPlaceIndexesResponseEntry -> ShowS)
-> (ListPlaceIndexesResponseEntry -> String)
-> ([ListPlaceIndexesResponseEntry] -> ShowS)
-> Show ListPlaceIndexesResponseEntry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPlaceIndexesResponseEntry] -> ShowS
$cshowList :: [ListPlaceIndexesResponseEntry] -> ShowS
show :: ListPlaceIndexesResponseEntry -> String
$cshow :: ListPlaceIndexesResponseEntry -> String
showsPrec :: Int -> ListPlaceIndexesResponseEntry -> ShowS
$cshowsPrec :: Int -> ListPlaceIndexesResponseEntry -> ShowS
Prelude.Show, (forall x.
ListPlaceIndexesResponseEntry
-> Rep ListPlaceIndexesResponseEntry x)
-> (forall x.
Rep ListPlaceIndexesResponseEntry x
-> ListPlaceIndexesResponseEntry)
-> Generic ListPlaceIndexesResponseEntry
forall x.
Rep ListPlaceIndexesResponseEntry x
-> ListPlaceIndexesResponseEntry
forall x.
ListPlaceIndexesResponseEntry
-> Rep ListPlaceIndexesResponseEntry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPlaceIndexesResponseEntry x
-> ListPlaceIndexesResponseEntry
$cfrom :: forall x.
ListPlaceIndexesResponseEntry
-> Rep ListPlaceIndexesResponseEntry x
Prelude.Generic)
newListPlaceIndexesResponseEntry ::
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
PricingPlan ->
Prelude.UTCTime ->
ListPlaceIndexesResponseEntry
newListPlaceIndexesResponseEntry :: UTCTime
-> Text
-> Text
-> Text
-> PricingPlan
-> UTCTime
-> ListPlaceIndexesResponseEntry
newListPlaceIndexesResponseEntry
UTCTime
pCreateTime_
Text
pDataSource_
Text
pDescription_
Text
pIndexName_
PricingPlan
pPricingPlan_
UTCTime
pUpdateTime_ =
ListPlaceIndexesResponseEntry' :: POSIX
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry'
{ $sel:createTime:ListPlaceIndexesResponseEntry' :: 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:ListPlaceIndexesResponseEntry' :: Text
dataSource = Text
pDataSource_,
$sel:description:ListPlaceIndexesResponseEntry' :: Text
description = Text
pDescription_,
$sel:indexName:ListPlaceIndexesResponseEntry' :: Text
indexName = Text
pIndexName_,
$sel:pricingPlan:ListPlaceIndexesResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
pPricingPlan_,
$sel:updateTime:ListPlaceIndexesResponseEntry' :: 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_
}
listPlaceIndexesResponseEntry_createTime :: Lens.Lens' ListPlaceIndexesResponseEntry Prelude.UTCTime
listPlaceIndexesResponseEntry_createTime :: (UTCTime -> f UTCTime)
-> ListPlaceIndexesResponseEntry -> f ListPlaceIndexesResponseEntry
listPlaceIndexesResponseEntry_createTime = (ListPlaceIndexesResponseEntry -> POSIX)
-> (ListPlaceIndexesResponseEntry
-> POSIX -> ListPlaceIndexesResponseEntry)
-> Lens
ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponseEntry' {POSIX
createTime :: POSIX
$sel:createTime:ListPlaceIndexesResponseEntry' :: ListPlaceIndexesResponseEntry -> POSIX
createTime} -> POSIX
createTime) (\s :: ListPlaceIndexesResponseEntry
s@ListPlaceIndexesResponseEntry' {} POSIX
a -> ListPlaceIndexesResponseEntry
s {$sel:createTime:ListPlaceIndexesResponseEntry' :: POSIX
createTime = POSIX
a} :: ListPlaceIndexesResponseEntry) ((POSIX -> f POSIX)
-> ListPlaceIndexesResponseEntry
-> f ListPlaceIndexesResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListPlaceIndexesResponseEntry
-> f ListPlaceIndexesResponseEntry
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
listPlaceIndexesResponseEntry_dataSource :: Lens.Lens' ListPlaceIndexesResponseEntry Prelude.Text
listPlaceIndexesResponseEntry_dataSource :: (Text -> f Text)
-> ListPlaceIndexesResponseEntry -> f ListPlaceIndexesResponseEntry
listPlaceIndexesResponseEntry_dataSource = (ListPlaceIndexesResponseEntry -> Text)
-> (ListPlaceIndexesResponseEntry
-> Text -> ListPlaceIndexesResponseEntry)
-> Lens
ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponseEntry' {Text
dataSource :: Text
$sel:dataSource:ListPlaceIndexesResponseEntry' :: ListPlaceIndexesResponseEntry -> Text
dataSource} -> Text
dataSource) (\s :: ListPlaceIndexesResponseEntry
s@ListPlaceIndexesResponseEntry' {} Text
a -> ListPlaceIndexesResponseEntry
s {$sel:dataSource:ListPlaceIndexesResponseEntry' :: Text
dataSource = Text
a} :: ListPlaceIndexesResponseEntry)
listPlaceIndexesResponseEntry_description :: Lens.Lens' ListPlaceIndexesResponseEntry Prelude.Text
listPlaceIndexesResponseEntry_description :: (Text -> f Text)
-> ListPlaceIndexesResponseEntry -> f ListPlaceIndexesResponseEntry
listPlaceIndexesResponseEntry_description = (ListPlaceIndexesResponseEntry -> Text)
-> (ListPlaceIndexesResponseEntry
-> Text -> ListPlaceIndexesResponseEntry)
-> Lens
ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponseEntry' {Text
description :: Text
$sel:description:ListPlaceIndexesResponseEntry' :: ListPlaceIndexesResponseEntry -> Text
description} -> Text
description) (\s :: ListPlaceIndexesResponseEntry
s@ListPlaceIndexesResponseEntry' {} Text
a -> ListPlaceIndexesResponseEntry
s {$sel:description:ListPlaceIndexesResponseEntry' :: Text
description = Text
a} :: ListPlaceIndexesResponseEntry)
listPlaceIndexesResponseEntry_indexName :: Lens.Lens' ListPlaceIndexesResponseEntry Prelude.Text
listPlaceIndexesResponseEntry_indexName :: (Text -> f Text)
-> ListPlaceIndexesResponseEntry -> f ListPlaceIndexesResponseEntry
listPlaceIndexesResponseEntry_indexName = (ListPlaceIndexesResponseEntry -> Text)
-> (ListPlaceIndexesResponseEntry
-> Text -> ListPlaceIndexesResponseEntry)
-> Lens
ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponseEntry' {Text
indexName :: Text
$sel:indexName:ListPlaceIndexesResponseEntry' :: ListPlaceIndexesResponseEntry -> Text
indexName} -> Text
indexName) (\s :: ListPlaceIndexesResponseEntry
s@ListPlaceIndexesResponseEntry' {} Text
a -> ListPlaceIndexesResponseEntry
s {$sel:indexName:ListPlaceIndexesResponseEntry' :: Text
indexName = Text
a} :: ListPlaceIndexesResponseEntry)
listPlaceIndexesResponseEntry_pricingPlan :: Lens.Lens' ListPlaceIndexesResponseEntry PricingPlan
listPlaceIndexesResponseEntry_pricingPlan :: (PricingPlan -> f PricingPlan)
-> ListPlaceIndexesResponseEntry -> f ListPlaceIndexesResponseEntry
listPlaceIndexesResponseEntry_pricingPlan = (ListPlaceIndexesResponseEntry -> PricingPlan)
-> (ListPlaceIndexesResponseEntry
-> PricingPlan -> ListPlaceIndexesResponseEntry)
-> Lens
ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry
PricingPlan
PricingPlan
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponseEntry' {PricingPlan
pricingPlan :: PricingPlan
$sel:pricingPlan:ListPlaceIndexesResponseEntry' :: ListPlaceIndexesResponseEntry -> PricingPlan
pricingPlan} -> PricingPlan
pricingPlan) (\s :: ListPlaceIndexesResponseEntry
s@ListPlaceIndexesResponseEntry' {} PricingPlan
a -> ListPlaceIndexesResponseEntry
s {$sel:pricingPlan:ListPlaceIndexesResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
a} :: ListPlaceIndexesResponseEntry)
listPlaceIndexesResponseEntry_updateTime :: Lens.Lens' ListPlaceIndexesResponseEntry Prelude.UTCTime
listPlaceIndexesResponseEntry_updateTime :: (UTCTime -> f UTCTime)
-> ListPlaceIndexesResponseEntry -> f ListPlaceIndexesResponseEntry
listPlaceIndexesResponseEntry_updateTime = (ListPlaceIndexesResponseEntry -> POSIX)
-> (ListPlaceIndexesResponseEntry
-> POSIX -> ListPlaceIndexesResponseEntry)
-> Lens
ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponseEntry' {POSIX
updateTime :: POSIX
$sel:updateTime:ListPlaceIndexesResponseEntry' :: ListPlaceIndexesResponseEntry -> POSIX
updateTime} -> POSIX
updateTime) (\s :: ListPlaceIndexesResponseEntry
s@ListPlaceIndexesResponseEntry' {} POSIX
a -> ListPlaceIndexesResponseEntry
s {$sel:updateTime:ListPlaceIndexesResponseEntry' :: POSIX
updateTime = POSIX
a} :: ListPlaceIndexesResponseEntry) ((POSIX -> f POSIX)
-> ListPlaceIndexesResponseEntry
-> f ListPlaceIndexesResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListPlaceIndexesResponseEntry
-> f ListPlaceIndexesResponseEntry
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 ListPlaceIndexesResponseEntry where
parseJSON :: Value -> Parser ListPlaceIndexesResponseEntry
parseJSON =
String
-> (Object -> Parser ListPlaceIndexesResponseEntry)
-> Value
-> Parser ListPlaceIndexesResponseEntry
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ListPlaceIndexesResponseEntry"
( \Object
x ->
POSIX
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListPlaceIndexesResponseEntry
ListPlaceIndexesResponseEntry'
(POSIX
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListPlaceIndexesResponseEntry)
-> Parser POSIX
-> Parser
(Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListPlaceIndexesResponseEntry)
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
-> ListPlaceIndexesResponseEntry)
-> Parser Text
-> Parser
(Text
-> Text -> PricingPlan -> POSIX -> ListPlaceIndexesResponseEntry)
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 -> ListPlaceIndexesResponseEntry)
-> Parser Text
-> Parser
(Text -> PricingPlan -> POSIX -> ListPlaceIndexesResponseEntry)
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 -> ListPlaceIndexesResponseEntry)
-> Parser Text
-> Parser (PricingPlan -> POSIX -> ListPlaceIndexesResponseEntry)
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
"IndexName")
Parser (PricingPlan -> POSIX -> ListPlaceIndexesResponseEntry)
-> Parser PricingPlan
-> Parser (POSIX -> ListPlaceIndexesResponseEntry)
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 -> ListPlaceIndexesResponseEntry)
-> Parser POSIX -> Parser ListPlaceIndexesResponseEntry
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
ListPlaceIndexesResponseEntry
instance Prelude.NFData ListPlaceIndexesResponseEntry