{-# 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.SignalExternalWorkflowExecutionDecisionAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data SignalExternalWorkflowExecutionDecisionAttributes = SignalExternalWorkflowExecutionDecisionAttributes'
{
SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
control :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
input :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
SignalExternalWorkflowExecutionDecisionAttributes -> Text
workflowId :: Prelude.Text,
SignalExternalWorkflowExecutionDecisionAttributes -> Text
signalName :: Prelude.Text
}
deriving (SignalExternalWorkflowExecutionDecisionAttributes
-> SignalExternalWorkflowExecutionDecisionAttributes -> Bool
(SignalExternalWorkflowExecutionDecisionAttributes
-> SignalExternalWorkflowExecutionDecisionAttributes -> Bool)
-> (SignalExternalWorkflowExecutionDecisionAttributes
-> SignalExternalWorkflowExecutionDecisionAttributes -> Bool)
-> Eq SignalExternalWorkflowExecutionDecisionAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SignalExternalWorkflowExecutionDecisionAttributes
-> SignalExternalWorkflowExecutionDecisionAttributes -> Bool
$c/= :: SignalExternalWorkflowExecutionDecisionAttributes
-> SignalExternalWorkflowExecutionDecisionAttributes -> Bool
== :: SignalExternalWorkflowExecutionDecisionAttributes
-> SignalExternalWorkflowExecutionDecisionAttributes -> Bool
$c== :: SignalExternalWorkflowExecutionDecisionAttributes
-> SignalExternalWorkflowExecutionDecisionAttributes -> Bool
Prelude.Eq, ReadPrec [SignalExternalWorkflowExecutionDecisionAttributes]
ReadPrec SignalExternalWorkflowExecutionDecisionAttributes
Int -> ReadS SignalExternalWorkflowExecutionDecisionAttributes
ReadS [SignalExternalWorkflowExecutionDecisionAttributes]
(Int -> ReadS SignalExternalWorkflowExecutionDecisionAttributes)
-> ReadS [SignalExternalWorkflowExecutionDecisionAttributes]
-> ReadPrec SignalExternalWorkflowExecutionDecisionAttributes
-> ReadPrec [SignalExternalWorkflowExecutionDecisionAttributes]
-> Read SignalExternalWorkflowExecutionDecisionAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SignalExternalWorkflowExecutionDecisionAttributes]
$creadListPrec :: ReadPrec [SignalExternalWorkflowExecutionDecisionAttributes]
readPrec :: ReadPrec SignalExternalWorkflowExecutionDecisionAttributes
$creadPrec :: ReadPrec SignalExternalWorkflowExecutionDecisionAttributes
readList :: ReadS [SignalExternalWorkflowExecutionDecisionAttributes]
$creadList :: ReadS [SignalExternalWorkflowExecutionDecisionAttributes]
readsPrec :: Int -> ReadS SignalExternalWorkflowExecutionDecisionAttributes
$creadsPrec :: Int -> ReadS SignalExternalWorkflowExecutionDecisionAttributes
Prelude.Read, Int -> SignalExternalWorkflowExecutionDecisionAttributes -> ShowS
[SignalExternalWorkflowExecutionDecisionAttributes] -> ShowS
SignalExternalWorkflowExecutionDecisionAttributes -> String
(Int -> SignalExternalWorkflowExecutionDecisionAttributes -> ShowS)
-> (SignalExternalWorkflowExecutionDecisionAttributes -> String)
-> ([SignalExternalWorkflowExecutionDecisionAttributes] -> ShowS)
-> Show SignalExternalWorkflowExecutionDecisionAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SignalExternalWorkflowExecutionDecisionAttributes] -> ShowS
$cshowList :: [SignalExternalWorkflowExecutionDecisionAttributes] -> ShowS
show :: SignalExternalWorkflowExecutionDecisionAttributes -> String
$cshow :: SignalExternalWorkflowExecutionDecisionAttributes -> String
showsPrec :: Int -> SignalExternalWorkflowExecutionDecisionAttributes -> ShowS
$cshowsPrec :: Int -> SignalExternalWorkflowExecutionDecisionAttributes -> ShowS
Prelude.Show, (forall x.
SignalExternalWorkflowExecutionDecisionAttributes
-> Rep SignalExternalWorkflowExecutionDecisionAttributes x)
-> (forall x.
Rep SignalExternalWorkflowExecutionDecisionAttributes x
-> SignalExternalWorkflowExecutionDecisionAttributes)
-> Generic SignalExternalWorkflowExecutionDecisionAttributes
forall x.
Rep SignalExternalWorkflowExecutionDecisionAttributes x
-> SignalExternalWorkflowExecutionDecisionAttributes
forall x.
SignalExternalWorkflowExecutionDecisionAttributes
-> Rep SignalExternalWorkflowExecutionDecisionAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SignalExternalWorkflowExecutionDecisionAttributes x
-> SignalExternalWorkflowExecutionDecisionAttributes
$cfrom :: forall x.
SignalExternalWorkflowExecutionDecisionAttributes
-> Rep SignalExternalWorkflowExecutionDecisionAttributes x
Prelude.Generic)
newSignalExternalWorkflowExecutionDecisionAttributes ::
Prelude.Text ->
Prelude.Text ->
SignalExternalWorkflowExecutionDecisionAttributes
newSignalExternalWorkflowExecutionDecisionAttributes :: Text -> Text -> SignalExternalWorkflowExecutionDecisionAttributes
newSignalExternalWorkflowExecutionDecisionAttributes
Text
pWorkflowId_
Text
pSignalName_ =
SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> SignalExternalWorkflowExecutionDecisionAttributes
SignalExternalWorkflowExecutionDecisionAttributes'
{ $sel:control:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
control =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:input:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
input = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:runId:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
runId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:workflowId:SignalExternalWorkflowExecutionDecisionAttributes' :: Text
workflowId =
Text
pWorkflowId_,
$sel:signalName:SignalExternalWorkflowExecutionDecisionAttributes' :: Text
signalName =
Text
pSignalName_
}
signalExternalWorkflowExecutionDecisionAttributes_control :: Lens.Lens' SignalExternalWorkflowExecutionDecisionAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionDecisionAttributes_control :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionDecisionAttributes
-> f SignalExternalWorkflowExecutionDecisionAttributes
signalExternalWorkflowExecutionDecisionAttributes_control = (SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text)
-> (SignalExternalWorkflowExecutionDecisionAttributes
-> Maybe Text -> SignalExternalWorkflowExecutionDecisionAttributes)
-> Lens
SignalExternalWorkflowExecutionDecisionAttributes
SignalExternalWorkflowExecutionDecisionAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionDecisionAttributes' {Maybe Text
control :: Maybe Text
$sel:control:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
control} -> Maybe Text
control) (\s :: SignalExternalWorkflowExecutionDecisionAttributes
s@SignalExternalWorkflowExecutionDecisionAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionDecisionAttributes
s {$sel:control:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
control = Maybe Text
a} :: SignalExternalWorkflowExecutionDecisionAttributes)
signalExternalWorkflowExecutionDecisionAttributes_input :: Lens.Lens' SignalExternalWorkflowExecutionDecisionAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionDecisionAttributes_input :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionDecisionAttributes
-> f SignalExternalWorkflowExecutionDecisionAttributes
signalExternalWorkflowExecutionDecisionAttributes_input = (SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text)
-> (SignalExternalWorkflowExecutionDecisionAttributes
-> Maybe Text -> SignalExternalWorkflowExecutionDecisionAttributes)
-> Lens
SignalExternalWorkflowExecutionDecisionAttributes
SignalExternalWorkflowExecutionDecisionAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionDecisionAttributes' {Maybe Text
input :: Maybe Text
$sel:input:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
input} -> Maybe Text
input) (\s :: SignalExternalWorkflowExecutionDecisionAttributes
s@SignalExternalWorkflowExecutionDecisionAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionDecisionAttributes
s {$sel:input:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
input = Maybe Text
a} :: SignalExternalWorkflowExecutionDecisionAttributes)
signalExternalWorkflowExecutionDecisionAttributes_runId :: Lens.Lens' SignalExternalWorkflowExecutionDecisionAttributes (Prelude.Maybe Prelude.Text)
signalExternalWorkflowExecutionDecisionAttributes_runId :: (Maybe Text -> f (Maybe Text))
-> SignalExternalWorkflowExecutionDecisionAttributes
-> f SignalExternalWorkflowExecutionDecisionAttributes
signalExternalWorkflowExecutionDecisionAttributes_runId = (SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text)
-> (SignalExternalWorkflowExecutionDecisionAttributes
-> Maybe Text -> SignalExternalWorkflowExecutionDecisionAttributes)
-> Lens
SignalExternalWorkflowExecutionDecisionAttributes
SignalExternalWorkflowExecutionDecisionAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionDecisionAttributes' {Maybe Text
runId :: Maybe Text
$sel:runId:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
runId} -> Maybe Text
runId) (\s :: SignalExternalWorkflowExecutionDecisionAttributes
s@SignalExternalWorkflowExecutionDecisionAttributes' {} Maybe Text
a -> SignalExternalWorkflowExecutionDecisionAttributes
s {$sel:runId:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
runId = Maybe Text
a} :: SignalExternalWorkflowExecutionDecisionAttributes)
signalExternalWorkflowExecutionDecisionAttributes_workflowId :: Lens.Lens' SignalExternalWorkflowExecutionDecisionAttributes Prelude.Text
signalExternalWorkflowExecutionDecisionAttributes_workflowId :: (Text -> f Text)
-> SignalExternalWorkflowExecutionDecisionAttributes
-> f SignalExternalWorkflowExecutionDecisionAttributes
signalExternalWorkflowExecutionDecisionAttributes_workflowId = (SignalExternalWorkflowExecutionDecisionAttributes -> Text)
-> (SignalExternalWorkflowExecutionDecisionAttributes
-> Text -> SignalExternalWorkflowExecutionDecisionAttributes)
-> Lens
SignalExternalWorkflowExecutionDecisionAttributes
SignalExternalWorkflowExecutionDecisionAttributes
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionDecisionAttributes' {Text
workflowId :: Text
$sel:workflowId:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Text
workflowId} -> Text
workflowId) (\s :: SignalExternalWorkflowExecutionDecisionAttributes
s@SignalExternalWorkflowExecutionDecisionAttributes' {} Text
a -> SignalExternalWorkflowExecutionDecisionAttributes
s {$sel:workflowId:SignalExternalWorkflowExecutionDecisionAttributes' :: Text
workflowId = Text
a} :: SignalExternalWorkflowExecutionDecisionAttributes)
signalExternalWorkflowExecutionDecisionAttributes_signalName :: Lens.Lens' SignalExternalWorkflowExecutionDecisionAttributes Prelude.Text
signalExternalWorkflowExecutionDecisionAttributes_signalName :: (Text -> f Text)
-> SignalExternalWorkflowExecutionDecisionAttributes
-> f SignalExternalWorkflowExecutionDecisionAttributes
signalExternalWorkflowExecutionDecisionAttributes_signalName = (SignalExternalWorkflowExecutionDecisionAttributes -> Text)
-> (SignalExternalWorkflowExecutionDecisionAttributes
-> Text -> SignalExternalWorkflowExecutionDecisionAttributes)
-> Lens
SignalExternalWorkflowExecutionDecisionAttributes
SignalExternalWorkflowExecutionDecisionAttributes
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SignalExternalWorkflowExecutionDecisionAttributes' {Text
signalName :: Text
$sel:signalName:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Text
signalName} -> Text
signalName) (\s :: SignalExternalWorkflowExecutionDecisionAttributes
s@SignalExternalWorkflowExecutionDecisionAttributes' {} Text
a -> SignalExternalWorkflowExecutionDecisionAttributes
s {$sel:signalName:SignalExternalWorkflowExecutionDecisionAttributes' :: Text
signalName = Text
a} :: SignalExternalWorkflowExecutionDecisionAttributes)
instance
Prelude.Hashable
SignalExternalWorkflowExecutionDecisionAttributes
instance
Prelude.NFData
SignalExternalWorkflowExecutionDecisionAttributes
instance
Core.ToJSON
SignalExternalWorkflowExecutionDecisionAttributes
where
toJSON :: SignalExternalWorkflowExecutionDecisionAttributes -> Value
toJSON
SignalExternalWorkflowExecutionDecisionAttributes' {Maybe Text
Text
signalName :: Text
workflowId :: Text
runId :: Maybe Text
input :: Maybe Text
control :: Maybe Text
$sel:signalName:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Text
$sel:workflowId:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Text
$sel:runId:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
$sel:input:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
$sel:control:SignalExternalWorkflowExecutionDecisionAttributes' :: SignalExternalWorkflowExecutionDecisionAttributes -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"control" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
control,
(Text
"input" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
input,
(Text
"runId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
runId,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"workflowId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
workflowId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"signalName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
signalName)
]
)