{-# 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.FailWorkflowExecutionFailedEventAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.FailWorkflowExecutionFailedCause
data FailWorkflowExecutionFailedEventAttributes = FailWorkflowExecutionFailedEventAttributes'
{
FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedCause
cause :: FailWorkflowExecutionFailedCause,
FailWorkflowExecutionFailedEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer
}
deriving (FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedEventAttributes -> Bool
(FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedEventAttributes -> Bool)
-> (FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedEventAttributes -> Bool)
-> Eq FailWorkflowExecutionFailedEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedEventAttributes -> Bool
$c/= :: FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedEventAttributes -> Bool
== :: FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedEventAttributes -> Bool
$c== :: FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedEventAttributes -> Bool
Prelude.Eq, ReadPrec [FailWorkflowExecutionFailedEventAttributes]
ReadPrec FailWorkflowExecutionFailedEventAttributes
Int -> ReadS FailWorkflowExecutionFailedEventAttributes
ReadS [FailWorkflowExecutionFailedEventAttributes]
(Int -> ReadS FailWorkflowExecutionFailedEventAttributes)
-> ReadS [FailWorkflowExecutionFailedEventAttributes]
-> ReadPrec FailWorkflowExecutionFailedEventAttributes
-> ReadPrec [FailWorkflowExecutionFailedEventAttributes]
-> Read FailWorkflowExecutionFailedEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FailWorkflowExecutionFailedEventAttributes]
$creadListPrec :: ReadPrec [FailWorkflowExecutionFailedEventAttributes]
readPrec :: ReadPrec FailWorkflowExecutionFailedEventAttributes
$creadPrec :: ReadPrec FailWorkflowExecutionFailedEventAttributes
readList :: ReadS [FailWorkflowExecutionFailedEventAttributes]
$creadList :: ReadS [FailWorkflowExecutionFailedEventAttributes]
readsPrec :: Int -> ReadS FailWorkflowExecutionFailedEventAttributes
$creadsPrec :: Int -> ReadS FailWorkflowExecutionFailedEventAttributes
Prelude.Read, Int -> FailWorkflowExecutionFailedEventAttributes -> ShowS
[FailWorkflowExecutionFailedEventAttributes] -> ShowS
FailWorkflowExecutionFailedEventAttributes -> String
(Int -> FailWorkflowExecutionFailedEventAttributes -> ShowS)
-> (FailWorkflowExecutionFailedEventAttributes -> String)
-> ([FailWorkflowExecutionFailedEventAttributes] -> ShowS)
-> Show FailWorkflowExecutionFailedEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FailWorkflowExecutionFailedEventAttributes] -> ShowS
$cshowList :: [FailWorkflowExecutionFailedEventAttributes] -> ShowS
show :: FailWorkflowExecutionFailedEventAttributes -> String
$cshow :: FailWorkflowExecutionFailedEventAttributes -> String
showsPrec :: Int -> FailWorkflowExecutionFailedEventAttributes -> ShowS
$cshowsPrec :: Int -> FailWorkflowExecutionFailedEventAttributes -> ShowS
Prelude.Show, (forall x.
FailWorkflowExecutionFailedEventAttributes
-> Rep FailWorkflowExecutionFailedEventAttributes x)
-> (forall x.
Rep FailWorkflowExecutionFailedEventAttributes x
-> FailWorkflowExecutionFailedEventAttributes)
-> Generic FailWorkflowExecutionFailedEventAttributes
forall x.
Rep FailWorkflowExecutionFailedEventAttributes x
-> FailWorkflowExecutionFailedEventAttributes
forall x.
FailWorkflowExecutionFailedEventAttributes
-> Rep FailWorkflowExecutionFailedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FailWorkflowExecutionFailedEventAttributes x
-> FailWorkflowExecutionFailedEventAttributes
$cfrom :: forall x.
FailWorkflowExecutionFailedEventAttributes
-> Rep FailWorkflowExecutionFailedEventAttributes x
Prelude.Generic)
newFailWorkflowExecutionFailedEventAttributes ::
FailWorkflowExecutionFailedCause ->
Prelude.Integer ->
FailWorkflowExecutionFailedEventAttributes
newFailWorkflowExecutionFailedEventAttributes :: FailWorkflowExecutionFailedCause
-> Integer -> FailWorkflowExecutionFailedEventAttributes
newFailWorkflowExecutionFailedEventAttributes
FailWorkflowExecutionFailedCause
pCause_
Integer
pDecisionTaskCompletedEventId_ =
FailWorkflowExecutionFailedEventAttributes' :: FailWorkflowExecutionFailedCause
-> Integer -> FailWorkflowExecutionFailedEventAttributes
FailWorkflowExecutionFailedEventAttributes'
{ $sel:cause:FailWorkflowExecutionFailedEventAttributes' :: FailWorkflowExecutionFailedCause
cause =
FailWorkflowExecutionFailedCause
pCause_,
$sel:decisionTaskCompletedEventId:FailWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId =
Integer
pDecisionTaskCompletedEventId_
}
failWorkflowExecutionFailedEventAttributes_cause :: Lens.Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause
failWorkflowExecutionFailedEventAttributes_cause :: (FailWorkflowExecutionFailedCause
-> f FailWorkflowExecutionFailedCause)
-> FailWorkflowExecutionFailedEventAttributes
-> f FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes_cause = (FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedCause)
-> (FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedCause
-> FailWorkflowExecutionFailedEventAttributes)
-> Lens
FailWorkflowExecutionFailedEventAttributes
FailWorkflowExecutionFailedEventAttributes
FailWorkflowExecutionFailedCause
FailWorkflowExecutionFailedCause
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FailWorkflowExecutionFailedEventAttributes' {FailWorkflowExecutionFailedCause
cause :: FailWorkflowExecutionFailedCause
$sel:cause:FailWorkflowExecutionFailedEventAttributes' :: FailWorkflowExecutionFailedEventAttributes
-> FailWorkflowExecutionFailedCause
cause} -> FailWorkflowExecutionFailedCause
cause) (\s :: FailWorkflowExecutionFailedEventAttributes
s@FailWorkflowExecutionFailedEventAttributes' {} FailWorkflowExecutionFailedCause
a -> FailWorkflowExecutionFailedEventAttributes
s {$sel:cause:FailWorkflowExecutionFailedEventAttributes' :: FailWorkflowExecutionFailedCause
cause = FailWorkflowExecutionFailedCause
a} :: FailWorkflowExecutionFailedEventAttributes)
failWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' FailWorkflowExecutionFailedEventAttributes Prelude.Integer
failWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: (Integer -> f Integer)
-> FailWorkflowExecutionFailedEventAttributes
-> f FailWorkflowExecutionFailedEventAttributes
failWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId = (FailWorkflowExecutionFailedEventAttributes -> Integer)
-> (FailWorkflowExecutionFailedEventAttributes
-> Integer -> FailWorkflowExecutionFailedEventAttributes)
-> Lens
FailWorkflowExecutionFailedEventAttributes
FailWorkflowExecutionFailedEventAttributes
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FailWorkflowExecutionFailedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:FailWorkflowExecutionFailedEventAttributes' :: FailWorkflowExecutionFailedEventAttributes -> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: FailWorkflowExecutionFailedEventAttributes
s@FailWorkflowExecutionFailedEventAttributes' {} Integer
a -> FailWorkflowExecutionFailedEventAttributes
s {$sel:decisionTaskCompletedEventId:FailWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: FailWorkflowExecutionFailedEventAttributes)
instance
Core.FromJSON
FailWorkflowExecutionFailedEventAttributes
where
parseJSON :: Value -> Parser FailWorkflowExecutionFailedEventAttributes
parseJSON =
String
-> (Object -> Parser FailWorkflowExecutionFailedEventAttributes)
-> Value
-> Parser FailWorkflowExecutionFailedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"FailWorkflowExecutionFailedEventAttributes"
( \Object
x ->
FailWorkflowExecutionFailedCause
-> Integer -> FailWorkflowExecutionFailedEventAttributes
FailWorkflowExecutionFailedEventAttributes'
(FailWorkflowExecutionFailedCause
-> Integer -> FailWorkflowExecutionFailedEventAttributes)
-> Parser FailWorkflowExecutionFailedCause
-> Parser (Integer -> FailWorkflowExecutionFailedEventAttributes)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser FailWorkflowExecutionFailedCause
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"cause")
Parser (Integer -> FailWorkflowExecutionFailedEventAttributes)
-> Parser Integer
-> Parser FailWorkflowExecutionFailedEventAttributes
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
FailWorkflowExecutionFailedEventAttributes
instance
Prelude.NFData
FailWorkflowExecutionFailedEventAttributes