{-# 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.StartChildWorkflowExecutionFailedEventAttributes 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.StartChildWorkflowExecutionFailedCause
import Amazonka.SWF.Types.WorkflowType
data StartChildWorkflowExecutionFailedEventAttributes = StartChildWorkflowExecutionFailedEventAttributes'
{
StartChildWorkflowExecutionFailedEventAttributes -> Maybe Text
control :: Prelude.Maybe Prelude.Text,
StartChildWorkflowExecutionFailedEventAttributes -> WorkflowType
workflowType :: WorkflowType,
StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedCause
cause :: StartChildWorkflowExecutionFailedCause,
StartChildWorkflowExecutionFailedEventAttributes -> Text
workflowId :: Prelude.Text,
StartChildWorkflowExecutionFailedEventAttributes -> Integer
initiatedEventId :: Prelude.Integer,
StartChildWorkflowExecutionFailedEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer
}
deriving (StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedEventAttributes -> Bool
$c/= :: StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedEventAttributes -> Bool
== :: StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedEventAttributes -> Bool
$c== :: StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedEventAttributes -> Bool
Prelude.Eq, ReadPrec [StartChildWorkflowExecutionFailedEventAttributes]
ReadPrec StartChildWorkflowExecutionFailedEventAttributes
Int -> ReadS StartChildWorkflowExecutionFailedEventAttributes
ReadS [StartChildWorkflowExecutionFailedEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartChildWorkflowExecutionFailedEventAttributes]
$creadListPrec :: ReadPrec [StartChildWorkflowExecutionFailedEventAttributes]
readPrec :: ReadPrec StartChildWorkflowExecutionFailedEventAttributes
$creadPrec :: ReadPrec StartChildWorkflowExecutionFailedEventAttributes
readList :: ReadS [StartChildWorkflowExecutionFailedEventAttributes]
$creadList :: ReadS [StartChildWorkflowExecutionFailedEventAttributes]
readsPrec :: Int -> ReadS StartChildWorkflowExecutionFailedEventAttributes
$creadsPrec :: Int -> ReadS StartChildWorkflowExecutionFailedEventAttributes
Prelude.Read, Int -> StartChildWorkflowExecutionFailedEventAttributes -> ShowS
[StartChildWorkflowExecutionFailedEventAttributes] -> ShowS
StartChildWorkflowExecutionFailedEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartChildWorkflowExecutionFailedEventAttributes] -> ShowS
$cshowList :: [StartChildWorkflowExecutionFailedEventAttributes] -> ShowS
show :: StartChildWorkflowExecutionFailedEventAttributes -> String
$cshow :: StartChildWorkflowExecutionFailedEventAttributes -> String
showsPrec :: Int -> StartChildWorkflowExecutionFailedEventAttributes -> ShowS
$cshowsPrec :: Int -> StartChildWorkflowExecutionFailedEventAttributes -> ShowS
Prelude.Show, forall x.
Rep StartChildWorkflowExecutionFailedEventAttributes x
-> StartChildWorkflowExecutionFailedEventAttributes
forall x.
StartChildWorkflowExecutionFailedEventAttributes
-> Rep StartChildWorkflowExecutionFailedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartChildWorkflowExecutionFailedEventAttributes x
-> StartChildWorkflowExecutionFailedEventAttributes
$cfrom :: forall x.
StartChildWorkflowExecutionFailedEventAttributes
-> Rep StartChildWorkflowExecutionFailedEventAttributes x
Prelude.Generic)
newStartChildWorkflowExecutionFailedEventAttributes ::
WorkflowType ->
StartChildWorkflowExecutionFailedCause ->
Prelude.Text ->
Prelude.Integer ->
Prelude.Integer ->
StartChildWorkflowExecutionFailedEventAttributes
newStartChildWorkflowExecutionFailedEventAttributes :: WorkflowType
-> StartChildWorkflowExecutionFailedCause
-> Text
-> Integer
-> Integer
-> StartChildWorkflowExecutionFailedEventAttributes
newStartChildWorkflowExecutionFailedEventAttributes
WorkflowType
pWorkflowType_
StartChildWorkflowExecutionFailedCause
pCause_
Text
pWorkflowId_
Integer
pInitiatedEventId_
Integer
pDecisionTaskCompletedEventId_ =
StartChildWorkflowExecutionFailedEventAttributes'
{ $sel:control:StartChildWorkflowExecutionFailedEventAttributes' :: Maybe Text
control =
forall a. Maybe a
Prelude.Nothing,
$sel:workflowType:StartChildWorkflowExecutionFailedEventAttributes' :: WorkflowType
workflowType =
WorkflowType
pWorkflowType_,
$sel:cause:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedCause
cause = StartChildWorkflowExecutionFailedCause
pCause_,
$sel:workflowId:StartChildWorkflowExecutionFailedEventAttributes' :: Text
workflowId = Text
pWorkflowId_,
$sel:initiatedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId =
Integer
pInitiatedEventId_,
$sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId =
Integer
pDecisionTaskCompletedEventId_
}
startChildWorkflowExecutionFailedEventAttributes_control :: Lens.Lens' StartChildWorkflowExecutionFailedEventAttributes (Prelude.Maybe Prelude.Text)
startChildWorkflowExecutionFailedEventAttributes_control :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)
startChildWorkflowExecutionFailedEventAttributes_control = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionFailedEventAttributes' {Maybe Text
control :: Maybe Text
$sel:control:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Maybe Text
control} -> Maybe Text
control) (\s :: StartChildWorkflowExecutionFailedEventAttributes
s@StartChildWorkflowExecutionFailedEventAttributes' {} Maybe Text
a -> StartChildWorkflowExecutionFailedEventAttributes
s {$sel:control:StartChildWorkflowExecutionFailedEventAttributes' :: Maybe Text
control = Maybe Text
a} :: StartChildWorkflowExecutionFailedEventAttributes)
startChildWorkflowExecutionFailedEventAttributes_workflowType :: Lens.Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType
startChildWorkflowExecutionFailedEventAttributes_workflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType
startChildWorkflowExecutionFailedEventAttributes_workflowType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionFailedEventAttributes' {WorkflowType
workflowType :: WorkflowType
$sel:workflowType:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> WorkflowType
workflowType} -> WorkflowType
workflowType) (\s :: StartChildWorkflowExecutionFailedEventAttributes
s@StartChildWorkflowExecutionFailedEventAttributes' {} WorkflowType
a -> StartChildWorkflowExecutionFailedEventAttributes
s {$sel:workflowType:StartChildWorkflowExecutionFailedEventAttributes' :: WorkflowType
workflowType = WorkflowType
a} :: StartChildWorkflowExecutionFailedEventAttributes)
startChildWorkflowExecutionFailedEventAttributes_cause :: Lens.Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause
startChildWorkflowExecutionFailedEventAttributes_cause :: Lens'
StartChildWorkflowExecutionFailedEventAttributes
StartChildWorkflowExecutionFailedCause
startChildWorkflowExecutionFailedEventAttributes_cause = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionFailedEventAttributes' {StartChildWorkflowExecutionFailedCause
cause :: StartChildWorkflowExecutionFailedCause
$sel:cause:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedCause
cause} -> StartChildWorkflowExecutionFailedCause
cause) (\s :: StartChildWorkflowExecutionFailedEventAttributes
s@StartChildWorkflowExecutionFailedEventAttributes' {} StartChildWorkflowExecutionFailedCause
a -> StartChildWorkflowExecutionFailedEventAttributes
s {$sel:cause:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedCause
cause = StartChildWorkflowExecutionFailedCause
a} :: StartChildWorkflowExecutionFailedEventAttributes)
startChildWorkflowExecutionFailedEventAttributes_workflowId :: Lens.Lens' StartChildWorkflowExecutionFailedEventAttributes Prelude.Text
startChildWorkflowExecutionFailedEventAttributes_workflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text
startChildWorkflowExecutionFailedEventAttributes_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionFailedEventAttributes' {Text
workflowId :: Text
$sel:workflowId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Text
workflowId} -> Text
workflowId) (\s :: StartChildWorkflowExecutionFailedEventAttributes
s@StartChildWorkflowExecutionFailedEventAttributes' {} Text
a -> StartChildWorkflowExecutionFailedEventAttributes
s {$sel:workflowId:StartChildWorkflowExecutionFailedEventAttributes' :: Text
workflowId = Text
a} :: StartChildWorkflowExecutionFailedEventAttributes)
startChildWorkflowExecutionFailedEventAttributes_initiatedEventId :: Lens.Lens' StartChildWorkflowExecutionFailedEventAttributes Prelude.Integer
startChildWorkflowExecutionFailedEventAttributes_initiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer
startChildWorkflowExecutionFailedEventAttributes_initiatedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionFailedEventAttributes' {Integer
initiatedEventId :: Integer
$sel:initiatedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Integer
initiatedEventId} -> Integer
initiatedEventId) (\s :: StartChildWorkflowExecutionFailedEventAttributes
s@StartChildWorkflowExecutionFailedEventAttributes' {} Integer
a -> StartChildWorkflowExecutionFailedEventAttributes
s {$sel:initiatedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId = Integer
a} :: StartChildWorkflowExecutionFailedEventAttributes)
startChildWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' StartChildWorkflowExecutionFailedEventAttributes Prelude.Integer
startChildWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer
startChildWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartChildWorkflowExecutionFailedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: StartChildWorkflowExecutionFailedEventAttributes
s@StartChildWorkflowExecutionFailedEventAttributes' {} Integer
a -> StartChildWorkflowExecutionFailedEventAttributes
s {$sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: StartChildWorkflowExecutionFailedEventAttributes)
instance
Data.FromJSON
StartChildWorkflowExecutionFailedEventAttributes
where
parseJSON :: Value -> Parser StartChildWorkflowExecutionFailedEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"StartChildWorkflowExecutionFailedEventAttributes"
( \Object
x ->
Maybe Text
-> WorkflowType
-> StartChildWorkflowExecutionFailedCause
-> Text
-> Integer
-> Integer
-> StartChildWorkflowExecutionFailedEventAttributes
StartChildWorkflowExecutionFailedEventAttributes'
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
"control")
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
"workflowType")
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
"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
"workflowId")
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
"initiatedEventId")
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
StartChildWorkflowExecutionFailedEventAttributes
where
hashWithSalt :: Int -> StartChildWorkflowExecutionFailedEventAttributes -> Int
hashWithSalt
Int
_salt
StartChildWorkflowExecutionFailedEventAttributes' {Integer
Maybe Text
Text
StartChildWorkflowExecutionFailedCause
WorkflowType
decisionTaskCompletedEventId :: Integer
initiatedEventId :: Integer
workflowId :: Text
cause :: StartChildWorkflowExecutionFailedCause
workflowType :: WorkflowType
control :: Maybe Text
$sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Integer
$sel:initiatedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Integer
$sel:workflowId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Text
$sel:cause:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedCause
$sel:workflowType:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> WorkflowType
$sel:control:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
control
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` WorkflowType
workflowType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` StartChildWorkflowExecutionFailedCause
cause
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
workflowId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
initiatedEventId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
decisionTaskCompletedEventId
instance
Prelude.NFData
StartChildWorkflowExecutionFailedEventAttributes
where
rnf :: StartChildWorkflowExecutionFailedEventAttributes -> ()
rnf
StartChildWorkflowExecutionFailedEventAttributes' {Integer
Maybe Text
Text
StartChildWorkflowExecutionFailedCause
WorkflowType
decisionTaskCompletedEventId :: Integer
initiatedEventId :: Integer
workflowId :: Text
cause :: StartChildWorkflowExecutionFailedCause
workflowType :: WorkflowType
control :: Maybe Text
$sel:decisionTaskCompletedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Integer
$sel:initiatedEventId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Integer
$sel:workflowId:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Text
$sel:cause:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes
-> StartChildWorkflowExecutionFailedCause
$sel:workflowType:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> WorkflowType
$sel:control:StartChildWorkflowExecutionFailedEventAttributes' :: StartChildWorkflowExecutionFailedEventAttributes -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
control
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf WorkflowType
workflowType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf StartChildWorkflowExecutionFailedCause
cause
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
workflowId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
initiatedEventId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
decisionTaskCompletedEventId