{-# 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.ListRouteCalculatorsResponseEntry 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 ListRouteCalculatorsResponseEntry = ListRouteCalculatorsResponseEntry'
{
ListRouteCalculatorsResponseEntry -> Text
calculatorName :: Prelude.Text,
ListRouteCalculatorsResponseEntry -> POSIX
createTime :: Core.POSIX,
ListRouteCalculatorsResponseEntry -> Text
dataSource :: Prelude.Text,
ListRouteCalculatorsResponseEntry -> Text
description :: Prelude.Text,
ListRouteCalculatorsResponseEntry -> PricingPlan
pricingPlan :: PricingPlan,
ListRouteCalculatorsResponseEntry -> POSIX
updateTime :: Core.POSIX
}
deriving (ListRouteCalculatorsResponseEntry
-> ListRouteCalculatorsResponseEntry -> Bool
(ListRouteCalculatorsResponseEntry
-> ListRouteCalculatorsResponseEntry -> Bool)
-> (ListRouteCalculatorsResponseEntry
-> ListRouteCalculatorsResponseEntry -> Bool)
-> Eq ListRouteCalculatorsResponseEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRouteCalculatorsResponseEntry
-> ListRouteCalculatorsResponseEntry -> Bool
$c/= :: ListRouteCalculatorsResponseEntry
-> ListRouteCalculatorsResponseEntry -> Bool
== :: ListRouteCalculatorsResponseEntry
-> ListRouteCalculatorsResponseEntry -> Bool
$c== :: ListRouteCalculatorsResponseEntry
-> ListRouteCalculatorsResponseEntry -> Bool
Prelude.Eq, ReadPrec [ListRouteCalculatorsResponseEntry]
ReadPrec ListRouteCalculatorsResponseEntry
Int -> ReadS ListRouteCalculatorsResponseEntry
ReadS [ListRouteCalculatorsResponseEntry]
(Int -> ReadS ListRouteCalculatorsResponseEntry)
-> ReadS [ListRouteCalculatorsResponseEntry]
-> ReadPrec ListRouteCalculatorsResponseEntry
-> ReadPrec [ListRouteCalculatorsResponseEntry]
-> Read ListRouteCalculatorsResponseEntry
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRouteCalculatorsResponseEntry]
$creadListPrec :: ReadPrec [ListRouteCalculatorsResponseEntry]
readPrec :: ReadPrec ListRouteCalculatorsResponseEntry
$creadPrec :: ReadPrec ListRouteCalculatorsResponseEntry
readList :: ReadS [ListRouteCalculatorsResponseEntry]
$creadList :: ReadS [ListRouteCalculatorsResponseEntry]
readsPrec :: Int -> ReadS ListRouteCalculatorsResponseEntry
$creadsPrec :: Int -> ReadS ListRouteCalculatorsResponseEntry
Prelude.Read, Int -> ListRouteCalculatorsResponseEntry -> ShowS
[ListRouteCalculatorsResponseEntry] -> ShowS
ListRouteCalculatorsResponseEntry -> String
(Int -> ListRouteCalculatorsResponseEntry -> ShowS)
-> (ListRouteCalculatorsResponseEntry -> String)
-> ([ListRouteCalculatorsResponseEntry] -> ShowS)
-> Show ListRouteCalculatorsResponseEntry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRouteCalculatorsResponseEntry] -> ShowS
$cshowList :: [ListRouteCalculatorsResponseEntry] -> ShowS
show :: ListRouteCalculatorsResponseEntry -> String
$cshow :: ListRouteCalculatorsResponseEntry -> String
showsPrec :: Int -> ListRouteCalculatorsResponseEntry -> ShowS
$cshowsPrec :: Int -> ListRouteCalculatorsResponseEntry -> ShowS
Prelude.Show, (forall x.
ListRouteCalculatorsResponseEntry
-> Rep ListRouteCalculatorsResponseEntry x)
-> (forall x.
Rep ListRouteCalculatorsResponseEntry x
-> ListRouteCalculatorsResponseEntry)
-> Generic ListRouteCalculatorsResponseEntry
forall x.
Rep ListRouteCalculatorsResponseEntry x
-> ListRouteCalculatorsResponseEntry
forall x.
ListRouteCalculatorsResponseEntry
-> Rep ListRouteCalculatorsResponseEntry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRouteCalculatorsResponseEntry x
-> ListRouteCalculatorsResponseEntry
$cfrom :: forall x.
ListRouteCalculatorsResponseEntry
-> Rep ListRouteCalculatorsResponseEntry x
Prelude.Generic)
newListRouteCalculatorsResponseEntry ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
PricingPlan ->
Prelude.UTCTime ->
ListRouteCalculatorsResponseEntry
newListRouteCalculatorsResponseEntry :: Text
-> UTCTime
-> Text
-> Text
-> PricingPlan
-> UTCTime
-> ListRouteCalculatorsResponseEntry
newListRouteCalculatorsResponseEntry
Text
pCalculatorName_
UTCTime
pCreateTime_
Text
pDataSource_
Text
pDescription_
PricingPlan
pPricingPlan_
UTCTime
pUpdateTime_ =
ListRouteCalculatorsResponseEntry' :: Text
-> POSIX
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry'
{ $sel:calculatorName:ListRouteCalculatorsResponseEntry' :: Text
calculatorName =
Text
pCalculatorName_,
$sel:createTime:ListRouteCalculatorsResponseEntry' :: 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:ListRouteCalculatorsResponseEntry' :: Text
dataSource = Text
pDataSource_,
$sel:description:ListRouteCalculatorsResponseEntry' :: Text
description = Text
pDescription_,
$sel:pricingPlan:ListRouteCalculatorsResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
pPricingPlan_,
$sel:updateTime:ListRouteCalculatorsResponseEntry' :: 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_
}
listRouteCalculatorsResponseEntry_calculatorName :: Lens.Lens' ListRouteCalculatorsResponseEntry Prelude.Text
listRouteCalculatorsResponseEntry_calculatorName :: (Text -> f Text)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
listRouteCalculatorsResponseEntry_calculatorName = (ListRouteCalculatorsResponseEntry -> Text)
-> (ListRouteCalculatorsResponseEntry
-> Text -> ListRouteCalculatorsResponseEntry)
-> Lens
ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRouteCalculatorsResponseEntry' {Text
calculatorName :: Text
$sel:calculatorName:ListRouteCalculatorsResponseEntry' :: ListRouteCalculatorsResponseEntry -> Text
calculatorName} -> Text
calculatorName) (\s :: ListRouteCalculatorsResponseEntry
s@ListRouteCalculatorsResponseEntry' {} Text
a -> ListRouteCalculatorsResponseEntry
s {$sel:calculatorName:ListRouteCalculatorsResponseEntry' :: Text
calculatorName = Text
a} :: ListRouteCalculatorsResponseEntry)
listRouteCalculatorsResponseEntry_createTime :: Lens.Lens' ListRouteCalculatorsResponseEntry Prelude.UTCTime
listRouteCalculatorsResponseEntry_createTime :: (UTCTime -> f UTCTime)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
listRouteCalculatorsResponseEntry_createTime = (ListRouteCalculatorsResponseEntry -> POSIX)
-> (ListRouteCalculatorsResponseEntry
-> POSIX -> ListRouteCalculatorsResponseEntry)
-> Lens
ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRouteCalculatorsResponseEntry' {POSIX
createTime :: POSIX
$sel:createTime:ListRouteCalculatorsResponseEntry' :: ListRouteCalculatorsResponseEntry -> POSIX
createTime} -> POSIX
createTime) (\s :: ListRouteCalculatorsResponseEntry
s@ListRouteCalculatorsResponseEntry' {} POSIX
a -> ListRouteCalculatorsResponseEntry
s {$sel:createTime:ListRouteCalculatorsResponseEntry' :: POSIX
createTime = POSIX
a} :: ListRouteCalculatorsResponseEntry) ((POSIX -> f POSIX)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
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
listRouteCalculatorsResponseEntry_dataSource :: Lens.Lens' ListRouteCalculatorsResponseEntry Prelude.Text
listRouteCalculatorsResponseEntry_dataSource :: (Text -> f Text)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
listRouteCalculatorsResponseEntry_dataSource = (ListRouteCalculatorsResponseEntry -> Text)
-> (ListRouteCalculatorsResponseEntry
-> Text -> ListRouteCalculatorsResponseEntry)
-> Lens
ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRouteCalculatorsResponseEntry' {Text
dataSource :: Text
$sel:dataSource:ListRouteCalculatorsResponseEntry' :: ListRouteCalculatorsResponseEntry -> Text
dataSource} -> Text
dataSource) (\s :: ListRouteCalculatorsResponseEntry
s@ListRouteCalculatorsResponseEntry' {} Text
a -> ListRouteCalculatorsResponseEntry
s {$sel:dataSource:ListRouteCalculatorsResponseEntry' :: Text
dataSource = Text
a} :: ListRouteCalculatorsResponseEntry)
listRouteCalculatorsResponseEntry_description :: Lens.Lens' ListRouteCalculatorsResponseEntry Prelude.Text
listRouteCalculatorsResponseEntry_description :: (Text -> f Text)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
listRouteCalculatorsResponseEntry_description = (ListRouteCalculatorsResponseEntry -> Text)
-> (ListRouteCalculatorsResponseEntry
-> Text -> ListRouteCalculatorsResponseEntry)
-> Lens
ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRouteCalculatorsResponseEntry' {Text
description :: Text
$sel:description:ListRouteCalculatorsResponseEntry' :: ListRouteCalculatorsResponseEntry -> Text
description} -> Text
description) (\s :: ListRouteCalculatorsResponseEntry
s@ListRouteCalculatorsResponseEntry' {} Text
a -> ListRouteCalculatorsResponseEntry
s {$sel:description:ListRouteCalculatorsResponseEntry' :: Text
description = Text
a} :: ListRouteCalculatorsResponseEntry)
listRouteCalculatorsResponseEntry_pricingPlan :: Lens.Lens' ListRouteCalculatorsResponseEntry PricingPlan
listRouteCalculatorsResponseEntry_pricingPlan :: (PricingPlan -> f PricingPlan)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
listRouteCalculatorsResponseEntry_pricingPlan = (ListRouteCalculatorsResponseEntry -> PricingPlan)
-> (ListRouteCalculatorsResponseEntry
-> PricingPlan -> ListRouteCalculatorsResponseEntry)
-> Lens
ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry
PricingPlan
PricingPlan
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRouteCalculatorsResponseEntry' {PricingPlan
pricingPlan :: PricingPlan
$sel:pricingPlan:ListRouteCalculatorsResponseEntry' :: ListRouteCalculatorsResponseEntry -> PricingPlan
pricingPlan} -> PricingPlan
pricingPlan) (\s :: ListRouteCalculatorsResponseEntry
s@ListRouteCalculatorsResponseEntry' {} PricingPlan
a -> ListRouteCalculatorsResponseEntry
s {$sel:pricingPlan:ListRouteCalculatorsResponseEntry' :: PricingPlan
pricingPlan = PricingPlan
a} :: ListRouteCalculatorsResponseEntry)
listRouteCalculatorsResponseEntry_updateTime :: Lens.Lens' ListRouteCalculatorsResponseEntry Prelude.UTCTime
listRouteCalculatorsResponseEntry_updateTime :: (UTCTime -> f UTCTime)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
listRouteCalculatorsResponseEntry_updateTime = (ListRouteCalculatorsResponseEntry -> POSIX)
-> (ListRouteCalculatorsResponseEntry
-> POSIX -> ListRouteCalculatorsResponseEntry)
-> Lens
ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRouteCalculatorsResponseEntry' {POSIX
updateTime :: POSIX
$sel:updateTime:ListRouteCalculatorsResponseEntry' :: ListRouteCalculatorsResponseEntry -> POSIX
updateTime} -> POSIX
updateTime) (\s :: ListRouteCalculatorsResponseEntry
s@ListRouteCalculatorsResponseEntry' {} POSIX
a -> ListRouteCalculatorsResponseEntry
s {$sel:updateTime:ListRouteCalculatorsResponseEntry' :: POSIX
updateTime = POSIX
a} :: ListRouteCalculatorsResponseEntry) ((POSIX -> f POSIX)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ListRouteCalculatorsResponseEntry
-> f ListRouteCalculatorsResponseEntry
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
ListRouteCalculatorsResponseEntry
where
parseJSON :: Value -> Parser ListRouteCalculatorsResponseEntry
parseJSON =
String
-> (Object -> Parser ListRouteCalculatorsResponseEntry)
-> Value
-> Parser ListRouteCalculatorsResponseEntry
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ListRouteCalculatorsResponseEntry"
( \Object
x ->
Text
-> POSIX
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListRouteCalculatorsResponseEntry
ListRouteCalculatorsResponseEntry'
(Text
-> POSIX
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListRouteCalculatorsResponseEntry)
-> Parser Text
-> Parser
(POSIX
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListRouteCalculatorsResponseEntry)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CalculatorName")
Parser
(POSIX
-> Text
-> Text
-> PricingPlan
-> POSIX
-> ListRouteCalculatorsResponseEntry)
-> Parser POSIX
-> Parser
(Text
-> Text
-> PricingPlan
-> POSIX
-> ListRouteCalculatorsResponseEntry)
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
-> Text
-> PricingPlan
-> POSIX
-> ListRouteCalculatorsResponseEntry)
-> Parser Text
-> Parser
(Text -> PricingPlan -> POSIX -> ListRouteCalculatorsResponseEntry)
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 -> PricingPlan -> POSIX -> ListRouteCalculatorsResponseEntry)
-> Parser Text
-> Parser
(PricingPlan -> POSIX -> ListRouteCalculatorsResponseEntry)
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 -> ListRouteCalculatorsResponseEntry)
-> Parser PricingPlan
-> Parser (POSIX -> ListRouteCalculatorsResponseEntry)
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 -> ListRouteCalculatorsResponseEntry)
-> Parser POSIX -> Parser ListRouteCalculatorsResponseEntry
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
ListRouteCalculatorsResponseEntry
instance
Prelude.NFData
ListRouteCalculatorsResponseEntry