{-# 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.Lens as Lens
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
(CompleteWorkflowExecutionFailedEventAttributes
-> CompleteWorkflowExecutionFailedEventAttributes -> Bool)
-> (CompleteWorkflowExecutionFailedEventAttributes
-> CompleteWorkflowExecutionFailedEventAttributes -> Bool)
-> Eq CompleteWorkflowExecutionFailedEventAttributes
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]
(Int -> ReadS CompleteWorkflowExecutionFailedEventAttributes)
-> ReadS [CompleteWorkflowExecutionFailedEventAttributes]
-> ReadPrec CompleteWorkflowExecutionFailedEventAttributes
-> ReadPrec [CompleteWorkflowExecutionFailedEventAttributes]
-> Read 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
(Int -> CompleteWorkflowExecutionFailedEventAttributes -> ShowS)
-> (CompleteWorkflowExecutionFailedEventAttributes -> String)
-> ([CompleteWorkflowExecutionFailedEventAttributes] -> ShowS)
-> Show CompleteWorkflowExecutionFailedEventAttributes
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.
CompleteWorkflowExecutionFailedEventAttributes
-> Rep CompleteWorkflowExecutionFailedEventAttributes x)
-> (forall x.
Rep CompleteWorkflowExecutionFailedEventAttributes x
-> CompleteWorkflowExecutionFailedEventAttributes)
-> Generic CompleteWorkflowExecutionFailedEventAttributes
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' :: CompleteWorkflowExecutionFailedCause
-> Integer -> CompleteWorkflowExecutionFailedEventAttributes
CompleteWorkflowExecutionFailedEventAttributes'
{ $sel:cause:CompleteWorkflowExecutionFailedEventAttributes' :: CompleteWorkflowExecutionFailedCause
cause =
CompleteWorkflowExecutionFailedCause
pCause_,
$sel:decisionTaskCompletedEventId:CompleteWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId =
Integer
pDecisionTaskCompletedEventId_
}
completeWorkflowExecutionFailedEventAttributes_cause :: Lens.Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause
completeWorkflowExecutionFailedEventAttributes_cause :: (CompleteWorkflowExecutionFailedCause
-> f CompleteWorkflowExecutionFailedCause)
-> CompleteWorkflowExecutionFailedEventAttributes
-> f CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes_cause = (CompleteWorkflowExecutionFailedEventAttributes
-> CompleteWorkflowExecutionFailedCause)
-> (CompleteWorkflowExecutionFailedEventAttributes
-> CompleteWorkflowExecutionFailedCause
-> CompleteWorkflowExecutionFailedEventAttributes)
-> Lens
CompleteWorkflowExecutionFailedEventAttributes
CompleteWorkflowExecutionFailedEventAttributes
CompleteWorkflowExecutionFailedCause
CompleteWorkflowExecutionFailedCause
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 :: (Integer -> f Integer)
-> CompleteWorkflowExecutionFailedEventAttributes
-> f CompleteWorkflowExecutionFailedEventAttributes
completeWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId = (CompleteWorkflowExecutionFailedEventAttributes -> Integer)
-> (CompleteWorkflowExecutionFailedEventAttributes
-> Integer -> CompleteWorkflowExecutionFailedEventAttributes)
-> Lens
CompleteWorkflowExecutionFailedEventAttributes
CompleteWorkflowExecutionFailedEventAttributes
Integer
Integer
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
Core.FromJSON
CompleteWorkflowExecutionFailedEventAttributes
where
parseJSON :: Value -> Parser CompleteWorkflowExecutionFailedEventAttributes
parseJSON =
String
-> (Object
-> Parser CompleteWorkflowExecutionFailedEventAttributes)
-> Value
-> Parser CompleteWorkflowExecutionFailedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"CompleteWorkflowExecutionFailedEventAttributes"
( \Object
x ->
CompleteWorkflowExecutionFailedCause
-> Integer -> CompleteWorkflowExecutionFailedEventAttributes
CompleteWorkflowExecutionFailedEventAttributes'
(CompleteWorkflowExecutionFailedCause
-> Integer -> CompleteWorkflowExecutionFailedEventAttributes)
-> Parser CompleteWorkflowExecutionFailedCause
-> Parser
(Integer -> CompleteWorkflowExecutionFailedEventAttributes)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser CompleteWorkflowExecutionFailedCause
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"cause")
Parser (Integer -> CompleteWorkflowExecutionFailedEventAttributes)
-> Parser Integer
-> Parser CompleteWorkflowExecutionFailedEventAttributes
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"decisionTaskCompletedEventId")
)
instance
Prelude.Hashable
CompleteWorkflowExecutionFailedEventAttributes
instance
Prelude.NFData
CompleteWorkflowExecutionFailedEventAttributes