{-# 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.SignalExternalWorkflowExecutionFailedEventAttributes 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.SignalExternalWorkflowExecutionFailedCause
data SignalExternalWorkflowExecutionFailedEventAttributes = SignalExternalWorkflowExecutionFailedEventAttributes'
{
SignalExternalWorkflowExecutionFailedEventAttributes -> Maybe Text
control :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionFailedEventAttributes -> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionFailedEventAttributes -> Text
workflowId :: Prelude.Text,
SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedCause
cause :: SignalExternalWorkflowExecutionFailedCause,
SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
initiatedEventId :: Prelude.Integer,
SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer
}
deriving (SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedEventAttributes -> Bool
$c/= :: SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedEventAttributes -> Bool
== :: SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedEventAttributes -> Bool
$c== :: SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedEventAttributes -> Bool
Prelude.Eq, ReadPrec [SignalExternalWorkflowExecutionFailedEventAttributes]
ReadPrec SignalExternalWorkflowExecutionFailedEventAttributes
Int -> ReadS SignalExternalWorkflowExecutionFailedEventAttributes
ReadS [SignalExternalWorkflowExecutionFailedEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SignalExternalWorkflowExecutionFailedEventAttributes]
$creadListPrec :: ReadPrec [SignalExternalWorkflowExecutionFailedEventAttributes]
readPrec :: ReadPrec SignalExternalWorkflowExecutionFailedEventAttributes
$creadPrec :: ReadPrec SignalExternalWorkflowExecutionFailedEventAttributes
readList :: ReadS [SignalExternalWorkflowExecutionFailedEventAttributes]
$creadList :: ReadS [SignalExternalWorkflowExecutionFailedEventAttributes]
readsPrec :: Int -> ReadS SignalExternalWorkflowExecutionFailedEventAttributes
$creadsPrec :: Int -> ReadS SignalExternalWorkflowExecutionFailedEventAttributes
Prelude.Read, Int
-> SignalExternalWorkflowExecutionFailedEventAttributes -> ShowS
[SignalExternalWorkflowExecutionFailedEventAttributes] -> ShowS
SignalExternalWorkflowExecutionFailedEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SignalExternalWorkflowExecutionFailedEventAttributes] -> ShowS
$cshowList :: [SignalExternalWorkflowExecutionFailedEventAttributes] -> ShowS
show :: SignalExternalWorkflowExecutionFailedEventAttributes -> String
$cshow :: SignalExternalWorkflowExecutionFailedEventAttributes -> String
showsPrec :: Int
-> SignalExternalWorkflowExecutionFailedEventAttributes -> ShowS
$cshowsPrec :: Int
-> SignalExternalWorkflowExecutionFailedEventAttributes -> ShowS
Prelude.Show, forall x.
Rep SignalExternalWorkflowExecutionFailedEventAttributes x
-> SignalExternalWorkflowExecutionFailedEventAttributes
forall x.
SignalExternalWorkflowExecutionFailedEventAttributes
-> Rep SignalExternalWorkflowExecutionFailedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SignalExternalWorkflowExecutionFailedEventAttributes x
-> SignalExternalWorkflowExecutionFailedEventAttributes
$cfrom :: forall x.
SignalExternalWorkflowExecutionFailedEventAttributes
-> Rep SignalExternalWorkflowExecutionFailedEventAttributes x
Prelude.Generic)
newSignalExternalWorkflowExecutionFailedEventAttributes ::
Prelude.Text ->
SignalExternalWorkflowExecutionFailedCause ->
Prelude.Integer ->
Prelude.Integer ->
SignalExternalWorkflowExecutionFailedEventAttributes
newSignalExternalWorkflowExecutionFailedEventAttributes :: Text
-> SignalExternalWorkflowExecutionFailedCause
-> Integer
-> Integer
-> SignalExternalWorkflowExecutionFailedEventAttributes
newSignalExternalWorkflowExecutionFailedEventAttributes
Text
pWorkflowId_
SignalExternalWorkflowExecutionFailedCause
pCause_
Integer
pInitiatedEventId_
Integer
pDecisionTaskCompletedEventId_ =
SignalExternalWorkflowExecutionFailedEventAttributes'
{ $sel:control:SignalExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
control =
forall a. Maybe a
Prelude.Nothing,
$sel:runId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
runId =
forall a. Maybe a
Prelude.Nothing,
$sel:workflowId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Text
workflowId =
Text
pWorkflowId_,
$sel:cause:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedCause
cause = SignalExternalWorkflowExecutionFailedCause
pCause_,
$sel:initiatedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId =
Integer
pInitiatedEventId_,
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId =
Integer
pDecisionTaskCompletedEventId_
}
signalExternalWorkflowExecutionFailedEventAttributes_control :: Lens.Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionFailedEventAttributes_control :: Lens'
SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)
signalExternalWorkflowExecutionFailedEventAttributes_control = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionFailedEventAttributes' {Maybe Text
control :: Maybe Text
$sel:control:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Maybe Text
control} -> Maybe Text
control) (\s :: SignalExternalWorkflowExecutionFailedEventAttributes
s@SignalExternalWorkflowExecutionFailedEventAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionFailedEventAttributes
s {$sel:control:SignalExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
control = Maybe Text
a} :: SignalExternalWorkflowExecutionFailedEventAttributes)
signalExternalWorkflowExecutionFailedEventAttributes_runId :: Lens.Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionFailedEventAttributes_runId :: Lens'
SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)
signalExternalWorkflowExecutionFailedEventAttributes_runId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionFailedEventAttributes' {Maybe Text
runId :: Maybe Text
$sel:runId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Maybe Text
runId} -> Maybe Text
runId) (\s :: SignalExternalWorkflowExecutionFailedEventAttributes
s@SignalExternalWorkflowExecutionFailedEventAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionFailedEventAttributes
s {$sel:runId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
runId = Maybe Text
a} :: SignalExternalWorkflowExecutionFailedEventAttributes)
signalExternalWorkflowExecutionFailedEventAttributes_workflowId :: Lens.Lens' SignalExternalWorkflowExecutionFailedEventAttributes Prelude.Text
signalExternalWorkflowExecutionFailedEventAttributes_workflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text
signalExternalWorkflowExecutionFailedEventAttributes_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionFailedEventAttributes' {Text
workflowId :: Text
$sel:workflowId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Text
workflowId} -> Text
workflowId) (\s :: SignalExternalWorkflowExecutionFailedEventAttributes
s@SignalExternalWorkflowExecutionFailedEventAttributes' {} Text
a -> SignalExternalWorkflowExecutionFailedEventAttributes
s {$sel:workflowId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Text
workflowId = Text
a} :: SignalExternalWorkflowExecutionFailedEventAttributes)
signalExternalWorkflowExecutionFailedEventAttributes_cause :: Lens.Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause
signalExternalWorkflowExecutionFailedEventAttributes_cause :: Lens'
SignalExternalWorkflowExecutionFailedEventAttributes
SignalExternalWorkflowExecutionFailedCause
signalExternalWorkflowExecutionFailedEventAttributes_cause = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionFailedEventAttributes' {SignalExternalWorkflowExecutionFailedCause
cause :: SignalExternalWorkflowExecutionFailedCause
$sel:cause:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedCause
cause} -> SignalExternalWorkflowExecutionFailedCause
cause) (\s :: SignalExternalWorkflowExecutionFailedEventAttributes
s@SignalExternalWorkflowExecutionFailedEventAttributes' {} SignalExternalWorkflowExecutionFailedCause
a -> SignalExternalWorkflowExecutionFailedEventAttributes
s {$sel:cause:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedCause
cause = SignalExternalWorkflowExecutionFailedCause
a} :: SignalExternalWorkflowExecutionFailedEventAttributes)
signalExternalWorkflowExecutionFailedEventAttributes_initiatedEventId :: Lens.Lens' SignalExternalWorkflowExecutionFailedEventAttributes Prelude.Integer
signalExternalWorkflowExecutionFailedEventAttributes_initiatedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer
signalExternalWorkflowExecutionFailedEventAttributes_initiatedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionFailedEventAttributes' {Integer
initiatedEventId :: Integer
$sel:initiatedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
initiatedEventId} -> Integer
initiatedEventId) (\s :: SignalExternalWorkflowExecutionFailedEventAttributes
s@SignalExternalWorkflowExecutionFailedEventAttributes' {} Integer
a -> SignalExternalWorkflowExecutionFailedEventAttributes
s {$sel:initiatedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId = Integer
a} :: SignalExternalWorkflowExecutionFailedEventAttributes)
signalExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' SignalExternalWorkflowExecutionFailedEventAttributes Prelude.Integer
signalExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer
signalExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionFailedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: SignalExternalWorkflowExecutionFailedEventAttributes
s@SignalExternalWorkflowExecutionFailedEventAttributes' {} Integer
a -> SignalExternalWorkflowExecutionFailedEventAttributes
s {$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: SignalExternalWorkflowExecutionFailedEventAttributes)
instance
Data.FromJSON
SignalExternalWorkflowExecutionFailedEventAttributes
where
parseJSON :: Value
-> Parser SignalExternalWorkflowExecutionFailedEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SignalExternalWorkflowExecutionFailedEventAttributes"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Text
-> SignalExternalWorkflowExecutionFailedCause
-> Integer
-> Integer
-> SignalExternalWorkflowExecutionFailedEventAttributes
SignalExternalWorkflowExecutionFailedEventAttributes'
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 (Maybe a)
Data..:? Key
"runId")
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
"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
"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
SignalExternalWorkflowExecutionFailedEventAttributes
where
hashWithSalt :: Int -> SignalExternalWorkflowExecutionFailedEventAttributes -> Int
hashWithSalt
Int
_salt
SignalExternalWorkflowExecutionFailedEventAttributes' {Integer
Maybe Text
Text
SignalExternalWorkflowExecutionFailedCause
decisionTaskCompletedEventId :: Integer
initiatedEventId :: Integer
cause :: SignalExternalWorkflowExecutionFailedCause
workflowId :: Text
runId :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
$sel:initiatedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
$sel:cause:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedCause
$sel:workflowId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Text
$sel:runId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Maybe Text
$sel:control:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> 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` Maybe Text
runId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
workflowId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` SignalExternalWorkflowExecutionFailedCause
cause
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
SignalExternalWorkflowExecutionFailedEventAttributes
where
rnf :: SignalExternalWorkflowExecutionFailedEventAttributes -> ()
rnf
SignalExternalWorkflowExecutionFailedEventAttributes' {Integer
Maybe Text
Text
SignalExternalWorkflowExecutionFailedCause
decisionTaskCompletedEventId :: Integer
initiatedEventId :: Integer
cause :: SignalExternalWorkflowExecutionFailedCause
workflowId :: Text
runId :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
$sel:initiatedEventId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Integer
$sel:cause:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes
-> SignalExternalWorkflowExecutionFailedCause
$sel:workflowId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Text
$sel:runId:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> Maybe Text
$sel:control:SignalExternalWorkflowExecutionFailedEventAttributes' :: SignalExternalWorkflowExecutionFailedEventAttributes -> 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 Maybe Text
runId
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 SignalExternalWorkflowExecutionFailedCause
cause
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