{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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
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]
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
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.
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'
{ $sel:control:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
control =
forall a. Maybe a
Prelude.Nothing,
$sel:input:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
input = forall a. Maybe a
Prelude.Nothing,
$sel:runId:SignalExternalWorkflowExecutionDecisionAttributes' :: Maybe Text
runId = 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 :: Lens'
SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)
signalExternalWorkflowExecutionDecisionAttributes_control = 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 :: Lens'
SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)
signalExternalWorkflowExecutionDecisionAttributes_input = 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 :: Lens'
SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)
signalExternalWorkflowExecutionDecisionAttributes_runId = 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 :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text
signalExternalWorkflowExecutionDecisionAttributes_workflowId = 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 :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text
signalExternalWorkflowExecutionDecisionAttributes_signalName = 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
where
hashWithSalt :: Int -> SignalExternalWorkflowExecutionDecisionAttributes -> Int
hashWithSalt
Int
_salt
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
..} =
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
instance
Prelude.NFData
SignalExternalWorkflowExecutionDecisionAttributes
where
rnf :: SignalExternalWorkflowExecutionDecisionAttributes -> ()
rnf
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
..} =
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
instance
Data.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
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"control" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
control,
(Key
"input" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
input,
(Key
"runId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
runId,
forall a. a -> Maybe a
Prelude.Just (Key
"workflowId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
workflowId),
forall a. a -> Maybe a
Prelude.Just (Key
"signalName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
signalName)
]
)