{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Location.Types.PricingPlan
import qualified Amazonka.Prelude as Prelude
data ListGeofenceCollectionsResponseEntry = ListGeofenceCollectionsResponseEntry'
{
ListGeofenceCollectionsResponseEntry -> Maybe PricingPlan
pricingPlan :: Prelude.Maybe PricingPlan,
ListGeofenceCollectionsResponseEntry -> Maybe Text
pricingPlanDataSource :: Prelude.Maybe Prelude.Text,
ListGeofenceCollectionsResponseEntry -> Text
collectionName :: Prelude.Text,
ListGeofenceCollectionsResponseEntry -> ISO8601
createTime :: Data.ISO8601,
ListGeofenceCollectionsResponseEntry -> Text
description :: Prelude.Text,
ListGeofenceCollectionsResponseEntry -> ISO8601
updateTime :: Data.ISO8601
}
deriving (ListGeofenceCollectionsResponseEntry
-> ListGeofenceCollectionsResponseEntry -> Bool
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]
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
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.
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 ->
Prelude.UTCTime ->
ListGeofenceCollectionsResponseEntry
newListGeofenceCollectionsResponseEntry :: Text
-> UTCTime
-> Text
-> UTCTime
-> ListGeofenceCollectionsResponseEntry
newListGeofenceCollectionsResponseEntry
Text
pCollectionName_
UTCTime
pCreateTime_
Text
pDescription_
UTCTime
pUpdateTime_ =
ListGeofenceCollectionsResponseEntry'
{ $sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: Maybe PricingPlan
pricingPlan =
forall a. Maybe a
Prelude.Nothing,
$sel:pricingPlanDataSource:ListGeofenceCollectionsResponseEntry' :: Maybe Text
pricingPlanDataSource =
forall a. Maybe a
Prelude.Nothing,
$sel:collectionName:ListGeofenceCollectionsResponseEntry' :: Text
collectionName = Text
pCollectionName_,
$sel:createTime:ListGeofenceCollectionsResponseEntry' :: ISO8601
createTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreateTime_,
$sel:description:ListGeofenceCollectionsResponseEntry' :: Text
description = Text
pDescription_,
$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: ISO8601
updateTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pUpdateTime_
}
listGeofenceCollectionsResponseEntry_pricingPlan :: Lens.Lens' ListGeofenceCollectionsResponseEntry (Prelude.Maybe PricingPlan)
listGeofenceCollectionsResponseEntry_pricingPlan :: Lens' ListGeofenceCollectionsResponseEntry (Maybe PricingPlan)
listGeofenceCollectionsResponseEntry_pricingPlan = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {Maybe PricingPlan
pricingPlan :: Maybe PricingPlan
$sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Maybe PricingPlan
pricingPlan} -> Maybe PricingPlan
pricingPlan) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} Maybe PricingPlan
a -> ListGeofenceCollectionsResponseEntry
s {$sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: Maybe PricingPlan
pricingPlan = Maybe PricingPlan
a} :: ListGeofenceCollectionsResponseEntry)
listGeofenceCollectionsResponseEntry_pricingPlanDataSource :: Lens.Lens' ListGeofenceCollectionsResponseEntry (Prelude.Maybe Prelude.Text)
listGeofenceCollectionsResponseEntry_pricingPlanDataSource :: Lens' ListGeofenceCollectionsResponseEntry (Maybe Text)
listGeofenceCollectionsResponseEntry_pricingPlanDataSource = 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 :: Lens' ListGeofenceCollectionsResponseEntry Text
listGeofenceCollectionsResponseEntry_collectionName = 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 :: Lens' ListGeofenceCollectionsResponseEntry UTCTime
listGeofenceCollectionsResponseEntry_createTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {ISO8601
createTime :: ISO8601
$sel:createTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> ISO8601
createTime} -> ISO8601
createTime) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} ISO8601
a -> ListGeofenceCollectionsResponseEntry
s {$sel:createTime:ListGeofenceCollectionsResponseEntry' :: ISO8601
createTime = ISO8601
a} :: ListGeofenceCollectionsResponseEntry) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
listGeofenceCollectionsResponseEntry_description :: Lens.Lens' ListGeofenceCollectionsResponseEntry Prelude.Text
listGeofenceCollectionsResponseEntry_description :: Lens' ListGeofenceCollectionsResponseEntry Text
listGeofenceCollectionsResponseEntry_description = 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_updateTime :: Lens.Lens' ListGeofenceCollectionsResponseEntry Prelude.UTCTime
listGeofenceCollectionsResponseEntry_updateTime :: Lens' ListGeofenceCollectionsResponseEntry UTCTime
listGeofenceCollectionsResponseEntry_updateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeofenceCollectionsResponseEntry' {ISO8601
updateTime :: ISO8601
$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> ISO8601
updateTime} -> ISO8601
updateTime) (\s :: ListGeofenceCollectionsResponseEntry
s@ListGeofenceCollectionsResponseEntry' {} ISO8601
a -> ListGeofenceCollectionsResponseEntry
s {$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: ISO8601
updateTime = ISO8601
a} :: ListGeofenceCollectionsResponseEntry) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance
Data.FromJSON
ListGeofenceCollectionsResponseEntry
where
parseJSON :: Value -> Parser ListGeofenceCollectionsResponseEntry
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ListGeofenceCollectionsResponseEntry"
( \Object
x ->
Maybe PricingPlan
-> Maybe Text
-> Text
-> ISO8601
-> Text
-> ISO8601
-> ListGeofenceCollectionsResponseEntry
ListGeofenceCollectionsResponseEntry'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PricingPlan")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PricingPlanDataSource")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CollectionName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreateTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"UpdateTime")
)
instance
Prelude.Hashable
ListGeofenceCollectionsResponseEntry
where
hashWithSalt :: Int -> ListGeofenceCollectionsResponseEntry -> Int
hashWithSalt
Int
_salt
ListGeofenceCollectionsResponseEntry' {Maybe Text
Maybe PricingPlan
Text
ISO8601
updateTime :: ISO8601
description :: Text
createTime :: ISO8601
collectionName :: Text
pricingPlanDataSource :: Maybe Text
pricingPlan :: Maybe PricingPlan
$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> ISO8601
$sel:description:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Text
$sel:createTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> ISO8601
$sel:collectionName:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Text
$sel:pricingPlanDataSource:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Maybe Text
$sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Maybe PricingPlan
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PricingPlan
pricingPlan
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
pricingPlanDataSource
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
collectionName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
createTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
updateTime
instance
Prelude.NFData
ListGeofenceCollectionsResponseEntry
where
rnf :: ListGeofenceCollectionsResponseEntry -> ()
rnf ListGeofenceCollectionsResponseEntry' {Maybe Text
Maybe PricingPlan
Text
ISO8601
updateTime :: ISO8601
description :: Text
createTime :: ISO8601
collectionName :: Text
pricingPlanDataSource :: Maybe Text
pricingPlan :: Maybe PricingPlan
$sel:updateTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> ISO8601
$sel:description:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Text
$sel:createTime:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> ISO8601
$sel:collectionName:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Text
$sel:pricingPlanDataSource:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Maybe Text
$sel:pricingPlan:ListGeofenceCollectionsResponseEntry' :: ListGeofenceCollectionsResponseEntry -> Maybe PricingPlan
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe PricingPlan
pricingPlan
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
pricingPlanDataSource
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
collectionName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
createTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
updateTime