{-# 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.SignalExternalWorkflowExecutionInitiatedEventAttributes 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
data SignalExternalWorkflowExecutionInitiatedEventAttributes = SignalExternalWorkflowExecutionInitiatedEventAttributes'
{
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
control :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
input :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
workflowId :: Prelude.Text,
SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
signalName :: Prelude.Text,
SignalExternalWorkflowExecutionInitiatedEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer
}
deriving (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
$c/= :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
== :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
$c== :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool
Prelude.Eq, ReadPrec [SignalExternalWorkflowExecutionInitiatedEventAttributes]
ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
Int
-> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes
ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SignalExternalWorkflowExecutionInitiatedEventAttributes]
$creadListPrec :: ReadPrec [SignalExternalWorkflowExecutionInitiatedEventAttributes]
readPrec :: ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
$creadPrec :: ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
readList :: ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
$creadList :: ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
readsPrec :: Int
-> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes
$creadsPrec :: Int
-> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes
Prelude.Read, Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> ShowS
[SignalExternalWorkflowExecutionInitiatedEventAttributes] -> ShowS
SignalExternalWorkflowExecutionInitiatedEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SignalExternalWorkflowExecutionInitiatedEventAttributes] -> ShowS
$cshowList :: [SignalExternalWorkflowExecutionInitiatedEventAttributes] -> ShowS
show :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> String
$cshow :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> String
showsPrec :: Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> ShowS
$cshowsPrec :: Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> ShowS
Prelude.Show, forall x.
Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
forall x.
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
$cfrom :: forall x.
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
Prelude.Generic)
newSignalExternalWorkflowExecutionInitiatedEventAttributes ::
Prelude.Text ->
Prelude.Text ->
Prelude.Integer ->
SignalExternalWorkflowExecutionInitiatedEventAttributes
newSignalExternalWorkflowExecutionInitiatedEventAttributes :: Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
newSignalExternalWorkflowExecutionInitiatedEventAttributes
Text
pWorkflowId_
Text
pSignalName_
Integer
pDecisionTaskCompletedEventId_ =
SignalExternalWorkflowExecutionInitiatedEventAttributes'
{ $sel:control:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control =
forall a. Maybe a
Prelude.Nothing,
$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
input =
forall a. Maybe a
Prelude.Nothing,
$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
runId =
forall a. Maybe a
Prelude.Nothing,
$sel:workflowId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Text
workflowId =
Text
pWorkflowId_,
$sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Text
signalName =
Text
pSignalName_,
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Integer
decisionTaskCompletedEventId =
Integer
pDecisionTaskCompletedEventId_
}
signalExternalWorkflowExecutionInitiatedEventAttributes_control :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_control :: Lens'
SignalExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_control = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Maybe Text
control :: Maybe Text
$sel:control:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
control} -> Maybe Text
control) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:control:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control = Maybe Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)
signalExternalWorkflowExecutionInitiatedEventAttributes_input :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_input :: Lens'
SignalExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_input = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Maybe Text
input :: Maybe Text
$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
input} -> Maybe Text
input) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
input = Maybe Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)
signalExternalWorkflowExecutionInitiatedEventAttributes_runId :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_runId :: Lens'
SignalExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
signalExternalWorkflowExecutionInitiatedEventAttributes_runId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Maybe Text
runId :: Maybe Text
$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
runId} -> Maybe Text
runId) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
runId = Maybe Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)
signalExternalWorkflowExecutionInitiatedEventAttributes_workflowId :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Prelude.Text
signalExternalWorkflowExecutionInitiatedEventAttributes_workflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text
signalExternalWorkflowExecutionInitiatedEventAttributes_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Text
workflowId :: Text
$sel:workflowId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
workflowId} -> Text
workflowId) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:workflowId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Text
workflowId = Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Prelude.Text
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Text
signalName :: Text
$sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
signalName} -> Text
signalName) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Text
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Text
signalName = Text
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)
signalExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Prelude.Integer
signalExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId :: Lens'
SignalExternalWorkflowExecutionInitiatedEventAttributes Integer
signalExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionInitiatedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: SignalExternalWorkflowExecutionInitiatedEventAttributes
s@SignalExternalWorkflowExecutionInitiatedEventAttributes' {} Integer
a -> SignalExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: SignalExternalWorkflowExecutionInitiatedEventAttributes)
instance
Data.FromJSON
SignalExternalWorkflowExecutionInitiatedEventAttributes
where
parseJSON :: Value
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SignalExternalWorkflowExecutionInitiatedEventAttributes"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes'
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
"input")
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
"signalName")
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
SignalExternalWorkflowExecutionInitiatedEventAttributes
where
hashWithSalt :: Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Int
hashWithSalt
Int
_salt
SignalExternalWorkflowExecutionInitiatedEventAttributes' {Integer
Maybe Text
Text
decisionTaskCompletedEventId :: Integer
signalName :: Text
workflowId :: Text
runId :: Maybe Text
input :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Integer
$sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
$sel:workflowId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
$sel:control:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> 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
input
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` Text
signalName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
decisionTaskCompletedEventId
instance
Prelude.NFData
SignalExternalWorkflowExecutionInitiatedEventAttributes
where
rnf :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> ()
rnf
SignalExternalWorkflowExecutionInitiatedEventAttributes' {Integer
Maybe Text
Text
decisionTaskCompletedEventId :: Integer
signalName :: Text
workflowId :: Text
runId :: Maybe Text
input :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Integer
$sel:signalName:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
$sel:workflowId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text
$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
$sel:control:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: SignalExternalWorkflowExecutionInitiatedEventAttributes
-> 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
input
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 Text
signalName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
decisionTaskCompletedEventId