{-# 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.ChildWorkflowExecutionTerminatedEventAttributes 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
import Amazonka.SWF.Types.WorkflowType
data ChildWorkflowExecutionTerminatedEventAttributes = ChildWorkflowExecutionTerminatedEventAttributes'
{
ChildWorkflowExecutionTerminatedEventAttributes
-> WorkflowExecution
workflowExecution :: WorkflowExecution,
ChildWorkflowExecutionTerminatedEventAttributes -> WorkflowType
workflowType :: WorkflowType,
ChildWorkflowExecutionTerminatedEventAttributes -> Integer
initiatedEventId :: Prelude.Integer,
ChildWorkflowExecutionTerminatedEventAttributes -> Integer
startedEventId :: Prelude.Integer
}
deriving (ChildWorkflowExecutionTerminatedEventAttributes
-> ChildWorkflowExecutionTerminatedEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChildWorkflowExecutionTerminatedEventAttributes
-> ChildWorkflowExecutionTerminatedEventAttributes -> Bool
$c/= :: ChildWorkflowExecutionTerminatedEventAttributes
-> ChildWorkflowExecutionTerminatedEventAttributes -> Bool
== :: ChildWorkflowExecutionTerminatedEventAttributes
-> ChildWorkflowExecutionTerminatedEventAttributes -> Bool
$c== :: ChildWorkflowExecutionTerminatedEventAttributes
-> ChildWorkflowExecutionTerminatedEventAttributes -> Bool
Prelude.Eq, ReadPrec [ChildWorkflowExecutionTerminatedEventAttributes]
ReadPrec ChildWorkflowExecutionTerminatedEventAttributes
Int -> ReadS ChildWorkflowExecutionTerminatedEventAttributes
ReadS [ChildWorkflowExecutionTerminatedEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChildWorkflowExecutionTerminatedEventAttributes]
$creadListPrec :: ReadPrec [ChildWorkflowExecutionTerminatedEventAttributes]
readPrec :: ReadPrec ChildWorkflowExecutionTerminatedEventAttributes
$creadPrec :: ReadPrec ChildWorkflowExecutionTerminatedEventAttributes
readList :: ReadS [ChildWorkflowExecutionTerminatedEventAttributes]
$creadList :: ReadS [ChildWorkflowExecutionTerminatedEventAttributes]
readsPrec :: Int -> ReadS ChildWorkflowExecutionTerminatedEventAttributes
$creadsPrec :: Int -> ReadS ChildWorkflowExecutionTerminatedEventAttributes
Prelude.Read, Int -> ChildWorkflowExecutionTerminatedEventAttributes -> ShowS
[ChildWorkflowExecutionTerminatedEventAttributes] -> ShowS
ChildWorkflowExecutionTerminatedEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChildWorkflowExecutionTerminatedEventAttributes] -> ShowS
$cshowList :: [ChildWorkflowExecutionTerminatedEventAttributes] -> ShowS
show :: ChildWorkflowExecutionTerminatedEventAttributes -> String
$cshow :: ChildWorkflowExecutionTerminatedEventAttributes -> String
showsPrec :: Int -> ChildWorkflowExecutionTerminatedEventAttributes -> ShowS
$cshowsPrec :: Int -> ChildWorkflowExecutionTerminatedEventAttributes -> ShowS
Prelude.Show, forall x.
Rep ChildWorkflowExecutionTerminatedEventAttributes x
-> ChildWorkflowExecutionTerminatedEventAttributes
forall x.
ChildWorkflowExecutionTerminatedEventAttributes
-> Rep ChildWorkflowExecutionTerminatedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChildWorkflowExecutionTerminatedEventAttributes x
-> ChildWorkflowExecutionTerminatedEventAttributes
$cfrom :: forall x.
ChildWorkflowExecutionTerminatedEventAttributes
-> Rep ChildWorkflowExecutionTerminatedEventAttributes x
Prelude.Generic)
newChildWorkflowExecutionTerminatedEventAttributes ::
WorkflowExecution ->
WorkflowType ->
Prelude.Integer ->
Prelude.Integer ->
ChildWorkflowExecutionTerminatedEventAttributes
newChildWorkflowExecutionTerminatedEventAttributes :: WorkflowExecution
-> WorkflowType
-> Integer
-> Integer
-> ChildWorkflowExecutionTerminatedEventAttributes
newChildWorkflowExecutionTerminatedEventAttributes
WorkflowExecution
pWorkflowExecution_
WorkflowType
pWorkflowType_
Integer
pInitiatedEventId_
Integer
pStartedEventId_ =
ChildWorkflowExecutionTerminatedEventAttributes'
{ $sel:workflowExecution:ChildWorkflowExecutionTerminatedEventAttributes' :: WorkflowExecution
workflowExecution =
WorkflowExecution
pWorkflowExecution_,
$sel:workflowType:ChildWorkflowExecutionTerminatedEventAttributes' :: WorkflowType
workflowType =
WorkflowType
pWorkflowType_,
$sel:initiatedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: Integer
initiatedEventId =
Integer
pInitiatedEventId_,
$sel:startedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: Integer
startedEventId =
Integer
pStartedEventId_
}
childWorkflowExecutionTerminatedEventAttributes_workflowExecution :: Lens.Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution
childWorkflowExecutionTerminatedEventAttributes_workflowExecution :: Lens'
ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution
childWorkflowExecutionTerminatedEventAttributes_workflowExecution = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTerminatedEventAttributes' {WorkflowExecution
workflowExecution :: WorkflowExecution
$sel:workflowExecution:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes
-> WorkflowExecution
workflowExecution} -> WorkflowExecution
workflowExecution) (\s :: ChildWorkflowExecutionTerminatedEventAttributes
s@ChildWorkflowExecutionTerminatedEventAttributes' {} WorkflowExecution
a -> ChildWorkflowExecutionTerminatedEventAttributes
s {$sel:workflowExecution:ChildWorkflowExecutionTerminatedEventAttributes' :: WorkflowExecution
workflowExecution = WorkflowExecution
a} :: ChildWorkflowExecutionTerminatedEventAttributes)
childWorkflowExecutionTerminatedEventAttributes_workflowType :: Lens.Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType
childWorkflowExecutionTerminatedEventAttributes_workflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType
childWorkflowExecutionTerminatedEventAttributes_workflowType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTerminatedEventAttributes' {WorkflowType
workflowType :: WorkflowType
$sel:workflowType:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> WorkflowType
workflowType} -> WorkflowType
workflowType) (\s :: ChildWorkflowExecutionTerminatedEventAttributes
s@ChildWorkflowExecutionTerminatedEventAttributes' {} WorkflowType
a -> ChildWorkflowExecutionTerminatedEventAttributes
s {$sel:workflowType:ChildWorkflowExecutionTerminatedEventAttributes' :: WorkflowType
workflowType = WorkflowType
a} :: ChildWorkflowExecutionTerminatedEventAttributes)
childWorkflowExecutionTerminatedEventAttributes_initiatedEventId :: Lens.Lens' ChildWorkflowExecutionTerminatedEventAttributes Prelude.Integer
childWorkflowExecutionTerminatedEventAttributes_initiatedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer
childWorkflowExecutionTerminatedEventAttributes_initiatedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTerminatedEventAttributes' {Integer
initiatedEventId :: Integer
$sel:initiatedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> Integer
initiatedEventId} -> Integer
initiatedEventId) (\s :: ChildWorkflowExecutionTerminatedEventAttributes
s@ChildWorkflowExecutionTerminatedEventAttributes' {} Integer
a -> ChildWorkflowExecutionTerminatedEventAttributes
s {$sel:initiatedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: Integer
initiatedEventId = Integer
a} :: ChildWorkflowExecutionTerminatedEventAttributes)
childWorkflowExecutionTerminatedEventAttributes_startedEventId :: Lens.Lens' ChildWorkflowExecutionTerminatedEventAttributes Prelude.Integer
childWorkflowExecutionTerminatedEventAttributes_startedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer
childWorkflowExecutionTerminatedEventAttributes_startedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTerminatedEventAttributes' {Integer
startedEventId :: Integer
$sel:startedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> Integer
startedEventId} -> Integer
startedEventId) (\s :: ChildWorkflowExecutionTerminatedEventAttributes
s@ChildWorkflowExecutionTerminatedEventAttributes' {} Integer
a -> ChildWorkflowExecutionTerminatedEventAttributes
s {$sel:startedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: Integer
startedEventId = Integer
a} :: ChildWorkflowExecutionTerminatedEventAttributes)
instance
Data.FromJSON
ChildWorkflowExecutionTerminatedEventAttributes
where
parseJSON :: Value -> Parser ChildWorkflowExecutionTerminatedEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ChildWorkflowExecutionTerminatedEventAttributes"
( \Object
x ->
WorkflowExecution
-> WorkflowType
-> Integer
-> Integer
-> ChildWorkflowExecutionTerminatedEventAttributes
ChildWorkflowExecutionTerminatedEventAttributes'
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
"workflowType")
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")
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
"startedEventId")
)
instance
Prelude.Hashable
ChildWorkflowExecutionTerminatedEventAttributes
where
hashWithSalt :: Int -> ChildWorkflowExecutionTerminatedEventAttributes -> Int
hashWithSalt
Int
_salt
ChildWorkflowExecutionTerminatedEventAttributes' {Integer
WorkflowExecution
WorkflowType
startedEventId :: Integer
initiatedEventId :: Integer
workflowType :: WorkflowType
workflowExecution :: WorkflowExecution
$sel:startedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> Integer
$sel:initiatedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> Integer
$sel:workflowType:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> WorkflowType
$sel:workflowExecution:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes
-> WorkflowExecution
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` WorkflowExecution
workflowExecution
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` WorkflowType
workflowType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
initiatedEventId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
startedEventId
instance
Prelude.NFData
ChildWorkflowExecutionTerminatedEventAttributes
where
rnf :: ChildWorkflowExecutionTerminatedEventAttributes -> ()
rnf
ChildWorkflowExecutionTerminatedEventAttributes' {Integer
WorkflowExecution
WorkflowType
startedEventId :: Integer
initiatedEventId :: Integer
workflowType :: WorkflowType
workflowExecution :: WorkflowExecution
$sel:startedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> Integer
$sel:initiatedEventId:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> Integer
$sel:workflowType:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes -> WorkflowType
$sel:workflowExecution:ChildWorkflowExecutionTerminatedEventAttributes' :: ChildWorkflowExecutionTerminatedEventAttributes
-> 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 WorkflowType
workflowType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
initiatedEventId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
startedEventId