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