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