{-# 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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data LambdaFunctionStartedEventAttributes = LambdaFunctionStartedEventAttributes'
{
LambdaFunctionStartedEventAttributes -> Integer
scheduledEventId :: Prelude.Integer
}
deriving (LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool
(LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool)
-> (LambdaFunctionStartedEventAttributes
-> LambdaFunctionStartedEventAttributes -> Bool)
-> Eq LambdaFunctionStartedEventAttributes
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]
(Int -> ReadS LambdaFunctionStartedEventAttributes)
-> ReadS [LambdaFunctionStartedEventAttributes]
-> ReadPrec LambdaFunctionStartedEventAttributes
-> ReadPrec [LambdaFunctionStartedEventAttributes]
-> Read 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
(Int -> LambdaFunctionStartedEventAttributes -> ShowS)
-> (LambdaFunctionStartedEventAttributes -> String)
-> ([LambdaFunctionStartedEventAttributes] -> ShowS)
-> Show LambdaFunctionStartedEventAttributes
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.
LambdaFunctionStartedEventAttributes
-> Rep LambdaFunctionStartedEventAttributes x)
-> (forall x.
Rep LambdaFunctionStartedEventAttributes x
-> LambdaFunctionStartedEventAttributes)
-> Generic LambdaFunctionStartedEventAttributes
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' :: Integer -> LambdaFunctionStartedEventAttributes
LambdaFunctionStartedEventAttributes'
{ $sel:scheduledEventId:LambdaFunctionStartedEventAttributes' :: Integer
scheduledEventId =
Integer
pScheduledEventId_
}
lambdaFunctionStartedEventAttributes_scheduledEventId :: Lens.Lens' LambdaFunctionStartedEventAttributes Prelude.Integer
lambdaFunctionStartedEventAttributes_scheduledEventId :: (Integer -> f Integer)
-> LambdaFunctionStartedEventAttributes
-> f LambdaFunctionStartedEventAttributes
lambdaFunctionStartedEventAttributes_scheduledEventId = (LambdaFunctionStartedEventAttributes -> Integer)
-> (LambdaFunctionStartedEventAttributes
-> Integer -> LambdaFunctionStartedEventAttributes)
-> Lens
LambdaFunctionStartedEventAttributes
LambdaFunctionStartedEventAttributes
Integer
Integer
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
Core.FromJSON
LambdaFunctionStartedEventAttributes
where
parseJSON :: Value -> Parser LambdaFunctionStartedEventAttributes
parseJSON =
String
-> (Object -> Parser LambdaFunctionStartedEventAttributes)
-> Value
-> Parser LambdaFunctionStartedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"LambdaFunctionStartedEventAttributes"
( \Object
x ->
Integer -> LambdaFunctionStartedEventAttributes
LambdaFunctionStartedEventAttributes'
(Integer -> LambdaFunctionStartedEventAttributes)
-> Parser Integer -> Parser LambdaFunctionStartedEventAttributes
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"scheduledEventId")
)
instance
Prelude.Hashable
LambdaFunctionStartedEventAttributes
instance
Prelude.NFData
LambdaFunctionStartedEventAttributes