{-# 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.Lens as Lens
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
(SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> SignalExternalWorkflowExecutionInitiatedEventAttributes -> Bool)
-> Eq SignalExternalWorkflowExecutionInitiatedEventAttributes
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]
(Int
-> ReadS SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> ReadS [SignalExternalWorkflowExecutionInitiatedEventAttributes]
-> ReadPrec SignalExternalWorkflowExecutionInitiatedEventAttributes
-> ReadPrec
[SignalExternalWorkflowExecutionInitiatedEventAttributes]
-> Read 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
(Int
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> ShowS)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> String)
-> ([SignalExternalWorkflowExecutionInitiatedEventAttributes]
-> ShowS)
-> Show SignalExternalWorkflowExecutionInitiatedEventAttributes
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.
SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x)
-> (forall x.
Rep SignalExternalWorkflowExecutionInitiatedEventAttributes x
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Generic SignalExternalWorkflowExecutionInitiatedEventAttributes
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' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes'
{ $sel:control:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:input:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
input =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:runId:SignalExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
runId =
Maybe Text
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 :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_control = (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
(Maybe Text)
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 :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_input = (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
(Maybe Text)
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 :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_runId = (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
(Maybe Text)
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 :: (Text -> f Text)
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_workflowId = (SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Text -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes
Text
Text
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 :: (Text -> f Text)
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName = (SignalExternalWorkflowExecutionInitiatedEventAttributes -> Text)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Text -> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes
Text
Text
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 :: (Integer -> f Integer)
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
-> f SignalExternalWorkflowExecutionInitiatedEventAttributes
signalExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId = (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Integer)
-> (SignalExternalWorkflowExecutionInitiatedEventAttributes
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Lens
SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes
Integer
Integer
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
Core.FromJSON
SignalExternalWorkflowExecutionInitiatedEventAttributes
where
parseJSON :: Value
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes
parseJSON =
String
-> (Object
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Value
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SignalExternalWorkflowExecutionInitiatedEventAttributes"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes
SignalExternalWorkflowExecutionInitiatedEventAttributes'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"control")
Parser
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"input")
Parser
(Maybe Text
-> Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser (Maybe Text)
-> Parser
(Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"runId")
Parser
(Text
-> Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser Text
-> Parser
(Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"workflowId")
Parser
(Text
-> Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser Text
-> Parser
(Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"signalName")
Parser
(Integer
-> SignalExternalWorkflowExecutionInitiatedEventAttributes)
-> Parser Integer
-> Parser SignalExternalWorkflowExecutionInitiatedEventAttributes
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
SignalExternalWorkflowExecutionInitiatedEventAttributes
instance
Prelude.NFData
SignalExternalWorkflowExecutionInitiatedEventAttributes