{-# 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.SWF.Types.LambdaFunctionStartedEventAttributes 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 LambdaFunctionStartedEventAttributes = LambdaFunctionStartedEventAttributes'
{
LambdaFunctionStartedEventAttributes -> Integer
scheduledEventId :: Prelude.Integer
}
deriving (LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool
$c/= :: LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool
== :: LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool
$c== :: LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool
Prelude.Eq, ReadPrec [LambdaFunctionStartedEventAttributes]
ReadPrec LambdaFunctionStartedEventAttributes
Int -> ReadS LambdaFunctionStartedEventAttributes
ReadS [LambdaFunctionStartedEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LambdaFunctionStartedEventAttributes]
$creadListPrec :: ReadPrec [LambdaFunctionStartedEventAttributes]
readPrec :: ReadPrec LambdaFunctionStartedEventAttributes
$creadPrec :: ReadPrec LambdaFunctionStartedEventAttributes
readList :: ReadS [LambdaFunctionStartedEventAttributes]
$creadList :: ReadS [LambdaFunctionStartedEventAttributes]
readsPrec :: Int -> ReadS LambdaFunctionStartedEventAttributes
$creadsPrec :: Int -> ReadS LambdaFunctionStartedEventAttributes
Prelude.Read, Int -> LambdaFunctionStartedEventAttributes -> ShowS
[LambdaFunctionStartedEventAttributes] -> ShowS
LambdaFunctionStartedEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LambdaFunctionStartedEventAttributes] -> ShowS
$cshowList :: [LambdaFunctionStartedEventAttributes] -> ShowS
show :: LambdaFunctionStartedEventAttributes -> String
$cshow :: LambdaFunctionStartedEventAttributes -> String
showsPrec :: Int -> LambdaFunctionStartedEventAttributes -> ShowS
$cshowsPrec :: Int -> LambdaFunctionStartedEventAttributes -> ShowS
Prelude.Show, forall x.
Rep LambdaFunctionStartedEventAttributes x
-> LambdaFunctionStartedEventAttributes
forall x.
LambdaFunctionStartedEventAttributes
-> Rep LambdaFunctionStartedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LambdaFunctionStartedEventAttributes x
-> LambdaFunctionStartedEventAttributes
$cfrom :: forall x.
LambdaFunctionStartedEventAttributes
-> Rep LambdaFunctionStartedEventAttributes x
Prelude.Generic)
newLambdaFunctionStartedEventAttributes ::
Prelude.Integer ->
LambdaFunctionStartedEventAttributes
newLambdaFunctionStartedEventAttributes :: Integer -> LambdaFunctionStartedEventAttributes
newLambdaFunctionStartedEventAttributes
Integer
pScheduledEventId_ =
LambdaFunctionStartedEventAttributes'
{ $sel:scheduledEventId:LambdaFunctionStartedEventAttributes' :: Integer
scheduledEventId =
Integer
pScheduledEventId_
}
lambdaFunctionStartedEventAttributes_scheduledEventId :: Lens.Lens' LambdaFunctionStartedEventAttributes Prelude.Integer
lambdaFunctionStartedEventAttributes_scheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer
lambdaFunctionStartedEventAttributes_scheduledEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaFunctionStartedEventAttributes' {Integer
scheduledEventId :: Integer
$sel:scheduledEventId:LambdaFunctionStartedEventAttributes' :: LambdaFunctionStartedEventAttributes -> Integer
scheduledEventId} -> Integer
scheduledEventId) (\s :: LambdaFunctionStartedEventAttributes
s@LambdaFunctionStartedEventAttributes' {} Integer
a -> LambdaFunctionStartedEventAttributes
s {$sel:scheduledEventId:LambdaFunctionStartedEventAttributes' :: Integer
scheduledEventId = Integer
a} :: LambdaFunctionStartedEventAttributes)
instance
Data.FromJSON
LambdaFunctionStartedEventAttributes
where
parseJSON :: Value -> Parser LambdaFunctionStartedEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LambdaFunctionStartedEventAttributes"
( \Object
x ->
Integer -> LambdaFunctionStartedEventAttributes
LambdaFunctionStartedEventAttributes'
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
"scheduledEventId")
)
instance
Prelude.Hashable
LambdaFunctionStartedEventAttributes
where
hashWithSalt :: Int -> LambdaFunctionStartedEventAttributes -> Int
hashWithSalt
Int
_salt
LambdaFunctionStartedEventAttributes' {Integer
scheduledEventId :: Integer
$sel:scheduledEventId:LambdaFunctionStartedEventAttributes' :: LambdaFunctionStartedEventAttributes -> Integer
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
scheduledEventId
instance
Prelude.NFData
LambdaFunctionStartedEventAttributes
where
rnf :: LambdaFunctionStartedEventAttributes -> ()
rnf LambdaFunctionStartedEventAttributes' {Integer
scheduledEventId :: Integer
$sel:scheduledEventId:LambdaFunctionStartedEventAttributes' :: LambdaFunctionStartedEventAttributes -> Integer
..} =
forall a. NFData a => a -> ()
Prelude.rnf Integer
scheduledEventId