{-# 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.BatchPutGeofenceSuccess where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data BatchPutGeofenceSuccess = BatchPutGeofenceSuccess'
{
BatchPutGeofenceSuccess -> ISO8601
createTime :: Data.ISO8601,
BatchPutGeofenceSuccess -> Text
geofenceId :: Prelude.Text,
BatchPutGeofenceSuccess -> ISO8601
updateTime :: Data.ISO8601
}
deriving (BatchPutGeofenceSuccess -> BatchPutGeofenceSuccess -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchPutGeofenceSuccess -> BatchPutGeofenceSuccess -> Bool
$c/= :: BatchPutGeofenceSuccess -> BatchPutGeofenceSuccess -> Bool
== :: BatchPutGeofenceSuccess -> BatchPutGeofenceSuccess -> Bool
$c== :: BatchPutGeofenceSuccess -> BatchPutGeofenceSuccess -> Bool
Prelude.Eq, ReadPrec [BatchPutGeofenceSuccess]
ReadPrec BatchPutGeofenceSuccess
Int -> ReadS BatchPutGeofenceSuccess
ReadS [BatchPutGeofenceSuccess]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchPutGeofenceSuccess]
$creadListPrec :: ReadPrec [BatchPutGeofenceSuccess]
readPrec :: ReadPrec BatchPutGeofenceSuccess
$creadPrec :: ReadPrec BatchPutGeofenceSuccess
readList :: ReadS [BatchPutGeofenceSuccess]
$creadList :: ReadS [BatchPutGeofenceSuccess]
readsPrec :: Int -> ReadS BatchPutGeofenceSuccess
$creadsPrec :: Int -> ReadS BatchPutGeofenceSuccess
Prelude.Read, Int -> BatchPutGeofenceSuccess -> ShowS
[BatchPutGeofenceSuccess] -> ShowS
BatchPutGeofenceSuccess -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchPutGeofenceSuccess] -> ShowS
$cshowList :: [BatchPutGeofenceSuccess] -> ShowS
show :: BatchPutGeofenceSuccess -> String
$cshow :: BatchPutGeofenceSuccess -> String
showsPrec :: Int -> BatchPutGeofenceSuccess -> ShowS
$cshowsPrec :: Int -> BatchPutGeofenceSuccess -> ShowS
Prelude.Show, forall x. Rep BatchPutGeofenceSuccess x -> BatchPutGeofenceSuccess
forall x. BatchPutGeofenceSuccess -> Rep BatchPutGeofenceSuccess x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchPutGeofenceSuccess x -> BatchPutGeofenceSuccess
$cfrom :: forall x. BatchPutGeofenceSuccess -> Rep BatchPutGeofenceSuccess x
Prelude.Generic)
newBatchPutGeofenceSuccess ::
Prelude.UTCTime ->
Prelude.Text ->
Prelude.UTCTime ->
BatchPutGeofenceSuccess
newBatchPutGeofenceSuccess :: UTCTime -> Text -> UTCTime -> BatchPutGeofenceSuccess
newBatchPutGeofenceSuccess
UTCTime
pCreateTime_
Text
pGeofenceId_
UTCTime
pUpdateTime_ =
BatchPutGeofenceSuccess'
{ $sel:createTime:BatchPutGeofenceSuccess' :: ISO8601
createTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreateTime_,
$sel:geofenceId:BatchPutGeofenceSuccess' :: Text
geofenceId = Text
pGeofenceId_,
$sel:updateTime:BatchPutGeofenceSuccess' :: ISO8601
updateTime = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pUpdateTime_
}
batchPutGeofenceSuccess_createTime :: Lens.Lens' BatchPutGeofenceSuccess Prelude.UTCTime
batchPutGeofenceSuccess_createTime :: Lens' BatchPutGeofenceSuccess UTCTime
batchPutGeofenceSuccess_createTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPutGeofenceSuccess' {ISO8601
createTime :: ISO8601
$sel:createTime:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> ISO8601
createTime} -> ISO8601
createTime) (\s :: BatchPutGeofenceSuccess
s@BatchPutGeofenceSuccess' {} ISO8601
a -> BatchPutGeofenceSuccess
s {$sel:createTime:BatchPutGeofenceSuccess' :: ISO8601
createTime = ISO8601
a} :: BatchPutGeofenceSuccess) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
batchPutGeofenceSuccess_geofenceId :: Lens.Lens' BatchPutGeofenceSuccess Prelude.Text
batchPutGeofenceSuccess_geofenceId :: Lens' BatchPutGeofenceSuccess Text
batchPutGeofenceSuccess_geofenceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPutGeofenceSuccess' {Text
geofenceId :: Text
$sel:geofenceId:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> Text
geofenceId} -> Text
geofenceId) (\s :: BatchPutGeofenceSuccess
s@BatchPutGeofenceSuccess' {} Text
a -> BatchPutGeofenceSuccess
s {$sel:geofenceId:BatchPutGeofenceSuccess' :: Text
geofenceId = Text
a} :: BatchPutGeofenceSuccess)
batchPutGeofenceSuccess_updateTime :: Lens.Lens' BatchPutGeofenceSuccess Prelude.UTCTime
batchPutGeofenceSuccess_updateTime :: Lens' BatchPutGeofenceSuccess UTCTime
batchPutGeofenceSuccess_updateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPutGeofenceSuccess' {ISO8601
updateTime :: ISO8601
$sel:updateTime:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> ISO8601
updateTime} -> ISO8601
updateTime) (\s :: BatchPutGeofenceSuccess
s@BatchPutGeofenceSuccess' {} ISO8601
a -> BatchPutGeofenceSuccess
s {$sel:updateTime:BatchPutGeofenceSuccess' :: ISO8601
updateTime = ISO8601
a} :: BatchPutGeofenceSuccess) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromJSON BatchPutGeofenceSuccess where
parseJSON :: Value -> Parser BatchPutGeofenceSuccess
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchPutGeofenceSuccess"
( \Object
x ->
ISO8601 -> Text -> ISO8601 -> BatchPutGeofenceSuccess
BatchPutGeofenceSuccess'
forall (f :: * -> *) a b. Functor 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
"GeofenceId")
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 BatchPutGeofenceSuccess where
hashWithSalt :: Int -> BatchPutGeofenceSuccess -> Int
hashWithSalt Int
_salt BatchPutGeofenceSuccess' {Text
ISO8601
updateTime :: ISO8601
geofenceId :: Text
createTime :: ISO8601
$sel:updateTime:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> ISO8601
$sel:geofenceId:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> Text
$sel:createTime:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> ISO8601
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
createTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
geofenceId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
updateTime
instance Prelude.NFData BatchPutGeofenceSuccess where
rnf :: BatchPutGeofenceSuccess -> ()
rnf BatchPutGeofenceSuccess' {Text
ISO8601
updateTime :: ISO8601
geofenceId :: Text
createTime :: ISO8601
$sel:updateTime:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> ISO8601
$sel:geofenceId:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> Text
$sel:createTime:BatchPutGeofenceSuccess' :: BatchPutGeofenceSuccess -> ISO8601
..} =
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
geofenceId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
updateTime