{-# 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.ExternalWorkflowExecutionSignaledEventAttributes 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.WorkflowExecution
data ExternalWorkflowExecutionSignaledEventAttributes = ExternalWorkflowExecutionSignaledEventAttributes'
{
ExternalWorkflowExecutionSignaledEventAttributes
-> WorkflowExecution
workflowExecution :: WorkflowExecution,
ExternalWorkflowExecutionSignaledEventAttributes -> Integer
initiatedEventId :: Prelude.Integer
}
deriving (ExternalWorkflowExecutionSignaledEventAttributes
-> ExternalWorkflowExecutionSignaledEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExternalWorkflowExecutionSignaledEventAttributes
-> ExternalWorkflowExecutionSignaledEventAttributes -> Bool
$c/= :: ExternalWorkflowExecutionSignaledEventAttributes
-> ExternalWorkflowExecutionSignaledEventAttributes -> Bool
== :: ExternalWorkflowExecutionSignaledEventAttributes
-> ExternalWorkflowExecutionSignaledEventAttributes -> Bool
$c== :: ExternalWorkflowExecutionSignaledEventAttributes
-> ExternalWorkflowExecutionSignaledEventAttributes -> Bool
Prelude.Eq, ReadPrec [ExternalWorkflowExecutionSignaledEventAttributes]
ReadPrec ExternalWorkflowExecutionSignaledEventAttributes
Int -> ReadS ExternalWorkflowExecutionSignaledEventAttributes
ReadS [ExternalWorkflowExecutionSignaledEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExternalWorkflowExecutionSignaledEventAttributes]
$creadListPrec :: ReadPrec [ExternalWorkflowExecutionSignaledEventAttributes]
readPrec :: ReadPrec ExternalWorkflowExecutionSignaledEventAttributes
$creadPrec :: ReadPrec ExternalWorkflowExecutionSignaledEventAttributes
readList :: ReadS [ExternalWorkflowExecutionSignaledEventAttributes]
$creadList :: ReadS [ExternalWorkflowExecutionSignaledEventAttributes]
readsPrec :: Int -> ReadS ExternalWorkflowExecutionSignaledEventAttributes
$creadsPrec :: Int -> ReadS ExternalWorkflowExecutionSignaledEventAttributes
Prelude.Read, Int -> ExternalWorkflowExecutionSignaledEventAttributes -> ShowS
[ExternalWorkflowExecutionSignaledEventAttributes] -> ShowS
ExternalWorkflowExecutionSignaledEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExternalWorkflowExecutionSignaledEventAttributes] -> ShowS
$cshowList :: [ExternalWorkflowExecutionSignaledEventAttributes] -> ShowS
show :: ExternalWorkflowExecutionSignaledEventAttributes -> String
$cshow :: ExternalWorkflowExecutionSignaledEventAttributes -> String
showsPrec :: Int -> ExternalWorkflowExecutionSignaledEventAttributes -> ShowS
$cshowsPrec :: Int -> ExternalWorkflowExecutionSignaledEventAttributes -> ShowS
Prelude.Show, forall x.
Rep ExternalWorkflowExecutionSignaledEventAttributes x
-> ExternalWorkflowExecutionSignaledEventAttributes
forall x.
ExternalWorkflowExecutionSignaledEventAttributes
-> Rep ExternalWorkflowExecutionSignaledEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExternalWorkflowExecutionSignaledEventAttributes x
-> ExternalWorkflowExecutionSignaledEventAttributes
$cfrom :: forall x.
ExternalWorkflowExecutionSignaledEventAttributes
-> Rep ExternalWorkflowExecutionSignaledEventAttributes x
Prelude.Generic)
newExternalWorkflowExecutionSignaledEventAttributes ::
WorkflowExecution ->
Prelude.Integer ->
ExternalWorkflowExecutionSignaledEventAttributes
newExternalWorkflowExecutionSignaledEventAttributes :: WorkflowExecution
-> Integer -> ExternalWorkflowExecutionSignaledEventAttributes
newExternalWorkflowExecutionSignaledEventAttributes
WorkflowExecution
pWorkflowExecution_
Integer
pInitiatedEventId_ =
ExternalWorkflowExecutionSignaledEventAttributes'
{ $sel:workflowExecution:ExternalWorkflowExecutionSignaledEventAttributes' :: WorkflowExecution
workflowExecution =
WorkflowExecution
pWorkflowExecution_,
$sel:initiatedEventId:ExternalWorkflowExecutionSignaledEventAttributes' :: Integer
initiatedEventId =
Integer
pInitiatedEventId_
}
externalWorkflowExecutionSignaledEventAttributes_workflowExecution :: Lens.Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution
externalWorkflowExecutionSignaledEventAttributes_workflowExecution :: Lens'
ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution
externalWorkflowExecutionSignaledEventAttributes_workflowExecution = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExternalWorkflowExecutionSignaledEventAttributes' {WorkflowExecution
workflowExecution :: WorkflowExecution
$sel:workflowExecution:ExternalWorkflowExecutionSignaledEventAttributes' :: ExternalWorkflowExecutionSignaledEventAttributes
-> WorkflowExecution
workflowExecution} -> WorkflowExecution
workflowExecution) (\s :: ExternalWorkflowExecutionSignaledEventAttributes
s@ExternalWorkflowExecutionSignaledEventAttributes' {} WorkflowExecution
a -> ExternalWorkflowExecutionSignaledEventAttributes
s {$sel:workflowExecution:ExternalWorkflowExecutionSignaledEventAttributes' :: WorkflowExecution
workflowExecution = WorkflowExecution
a} :: ExternalWorkflowExecutionSignaledEventAttributes)
externalWorkflowExecutionSignaledEventAttributes_initiatedEventId :: Lens.Lens' ExternalWorkflowExecutionSignaledEventAttributes Prelude.Integer
externalWorkflowExecutionSignaledEventAttributes_initiatedEventId :: Lens' ExternalWorkflowExecutionSignaledEventAttributes Integer
externalWorkflowExecutionSignaledEventAttributes_initiatedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExternalWorkflowExecutionSignaledEventAttributes' {Integer
initiatedEventId :: Integer
$sel:initiatedEventId:ExternalWorkflowExecutionSignaledEventAttributes' :: ExternalWorkflowExecutionSignaledEventAttributes -> Integer
initiatedEventId} -> Integer
initiatedEventId) (\s :: ExternalWorkflowExecutionSignaledEventAttributes
s@ExternalWorkflowExecutionSignaledEventAttributes' {} Integer
a -> ExternalWorkflowExecutionSignaledEventAttributes
s {$sel:initiatedEventId:ExternalWorkflowExecutionSignaledEventAttributes' :: Integer
initiatedEventId = Integer
a} :: ExternalWorkflowExecutionSignaledEventAttributes)
instance
Data.FromJSON
ExternalWorkflowExecutionSignaledEventAttributes
where
parseJSON :: Value -> Parser ExternalWorkflowExecutionSignaledEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ExternalWorkflowExecutionSignaledEventAttributes"
( \Object
x ->
WorkflowExecution
-> Integer -> ExternalWorkflowExecutionSignaledEventAttributes
ExternalWorkflowExecutionSignaledEventAttributes'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"workflowExecution")
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")
)
instance
Prelude.Hashable
ExternalWorkflowExecutionSignaledEventAttributes
where
hashWithSalt :: Int -> ExternalWorkflowExecutionSignaledEventAttributes -> Int
hashWithSalt
Int
_salt
ExternalWorkflowExecutionSignaledEventAttributes' {Integer
WorkflowExecution
initiatedEventId :: Integer
workflowExecution :: WorkflowExecution
$sel:initiatedEventId:ExternalWorkflowExecutionSignaledEventAttributes' :: ExternalWorkflowExecutionSignaledEventAttributes -> Integer
$sel:workflowExecution:ExternalWorkflowExecutionSignaledEventAttributes' :: ExternalWorkflowExecutionSignaledEventAttributes
-> WorkflowExecution
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` WorkflowExecution
workflowExecution
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
initiatedEventId
instance
Prelude.NFData
ExternalWorkflowExecutionSignaledEventAttributes
where
rnf :: ExternalWorkflowExecutionSignaledEventAttributes -> ()
rnf
ExternalWorkflowExecutionSignaledEventAttributes' {Integer
WorkflowExecution
initiatedEventId :: Integer
workflowExecution :: WorkflowExecution
$sel:initiatedEventId:ExternalWorkflowExecutionSignaledEventAttributes' :: ExternalWorkflowExecutionSignaledEventAttributes -> Integer
$sel:workflowExecution:ExternalWorkflowExecutionSignaledEventAttributes' :: ExternalWorkflowExecutionSignaledEventAttributes
-> WorkflowExecution
..} =
forall a. NFData a => a -> ()
Prelude.rnf WorkflowExecution
workflowExecution
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
initiatedEventId