{-# 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.ChildWorkflowExecutionTimedOutEventAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.WorkflowExecution
import Amazonka.SWF.Types.WorkflowExecutionTimeoutType
import Amazonka.SWF.Types.WorkflowType
data ChildWorkflowExecutionTimedOutEventAttributes = ChildWorkflowExecutionTimedOutEventAttributes'
{
ChildWorkflowExecutionTimedOutEventAttributes -> WorkflowExecution
workflowExecution :: WorkflowExecution,
ChildWorkflowExecutionTimedOutEventAttributes -> WorkflowType
workflowType :: WorkflowType,
ChildWorkflowExecutionTimedOutEventAttributes
-> WorkflowExecutionTimeoutType
timeoutType :: WorkflowExecutionTimeoutType,
ChildWorkflowExecutionTimedOutEventAttributes -> Integer
initiatedEventId :: Prelude.Integer,
ChildWorkflowExecutionTimedOutEventAttributes -> Integer
startedEventId :: Prelude.Integer
}
deriving (ChildWorkflowExecutionTimedOutEventAttributes
-> ChildWorkflowExecutionTimedOutEventAttributes -> Bool
(ChildWorkflowExecutionTimedOutEventAttributes
-> ChildWorkflowExecutionTimedOutEventAttributes -> Bool)
-> (ChildWorkflowExecutionTimedOutEventAttributes
-> ChildWorkflowExecutionTimedOutEventAttributes -> Bool)
-> Eq ChildWorkflowExecutionTimedOutEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChildWorkflowExecutionTimedOutEventAttributes
-> ChildWorkflowExecutionTimedOutEventAttributes -> Bool
$c/= :: ChildWorkflowExecutionTimedOutEventAttributes
-> ChildWorkflowExecutionTimedOutEventAttributes -> Bool
== :: ChildWorkflowExecutionTimedOutEventAttributes
-> ChildWorkflowExecutionTimedOutEventAttributes -> Bool
$c== :: ChildWorkflowExecutionTimedOutEventAttributes
-> ChildWorkflowExecutionTimedOutEventAttributes -> Bool
Prelude.Eq, ReadPrec [ChildWorkflowExecutionTimedOutEventAttributes]
ReadPrec ChildWorkflowExecutionTimedOutEventAttributes
Int -> ReadS ChildWorkflowExecutionTimedOutEventAttributes
ReadS [ChildWorkflowExecutionTimedOutEventAttributes]
(Int -> ReadS ChildWorkflowExecutionTimedOutEventAttributes)
-> ReadS [ChildWorkflowExecutionTimedOutEventAttributes]
-> ReadPrec ChildWorkflowExecutionTimedOutEventAttributes
-> ReadPrec [ChildWorkflowExecutionTimedOutEventAttributes]
-> Read ChildWorkflowExecutionTimedOutEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChildWorkflowExecutionTimedOutEventAttributes]
$creadListPrec :: ReadPrec [ChildWorkflowExecutionTimedOutEventAttributes]
readPrec :: ReadPrec ChildWorkflowExecutionTimedOutEventAttributes
$creadPrec :: ReadPrec ChildWorkflowExecutionTimedOutEventAttributes
readList :: ReadS [ChildWorkflowExecutionTimedOutEventAttributes]
$creadList :: ReadS [ChildWorkflowExecutionTimedOutEventAttributes]
readsPrec :: Int -> ReadS ChildWorkflowExecutionTimedOutEventAttributes
$creadsPrec :: Int -> ReadS ChildWorkflowExecutionTimedOutEventAttributes
Prelude.Read, Int -> ChildWorkflowExecutionTimedOutEventAttributes -> ShowS
[ChildWorkflowExecutionTimedOutEventAttributes] -> ShowS
ChildWorkflowExecutionTimedOutEventAttributes -> String
(Int -> ChildWorkflowExecutionTimedOutEventAttributes -> ShowS)
-> (ChildWorkflowExecutionTimedOutEventAttributes -> String)
-> ([ChildWorkflowExecutionTimedOutEventAttributes] -> ShowS)
-> Show ChildWorkflowExecutionTimedOutEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChildWorkflowExecutionTimedOutEventAttributes] -> ShowS
$cshowList :: [ChildWorkflowExecutionTimedOutEventAttributes] -> ShowS
show :: ChildWorkflowExecutionTimedOutEventAttributes -> String
$cshow :: ChildWorkflowExecutionTimedOutEventAttributes -> String
showsPrec :: Int -> ChildWorkflowExecutionTimedOutEventAttributes -> ShowS
$cshowsPrec :: Int -> ChildWorkflowExecutionTimedOutEventAttributes -> ShowS
Prelude.Show, (forall x.
ChildWorkflowExecutionTimedOutEventAttributes
-> Rep ChildWorkflowExecutionTimedOutEventAttributes x)
-> (forall x.
Rep ChildWorkflowExecutionTimedOutEventAttributes x
-> ChildWorkflowExecutionTimedOutEventAttributes)
-> Generic ChildWorkflowExecutionTimedOutEventAttributes
forall x.
Rep ChildWorkflowExecutionTimedOutEventAttributes x
-> ChildWorkflowExecutionTimedOutEventAttributes
forall x.
ChildWorkflowExecutionTimedOutEventAttributes
-> Rep ChildWorkflowExecutionTimedOutEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChildWorkflowExecutionTimedOutEventAttributes x
-> ChildWorkflowExecutionTimedOutEventAttributes
$cfrom :: forall x.
ChildWorkflowExecutionTimedOutEventAttributes
-> Rep ChildWorkflowExecutionTimedOutEventAttributes x
Prelude.Generic)
newChildWorkflowExecutionTimedOutEventAttributes ::
WorkflowExecution ->
WorkflowType ->
WorkflowExecutionTimeoutType ->
Prelude.Integer ->
Prelude.Integer ->
ChildWorkflowExecutionTimedOutEventAttributes
newChildWorkflowExecutionTimedOutEventAttributes :: WorkflowExecution
-> WorkflowType
-> WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes
newChildWorkflowExecutionTimedOutEventAttributes
WorkflowExecution
pWorkflowExecution_
WorkflowType
pWorkflowType_
WorkflowExecutionTimeoutType
pTimeoutType_
Integer
pInitiatedEventId_
Integer
pStartedEventId_ =
ChildWorkflowExecutionTimedOutEventAttributes' :: WorkflowExecution
-> WorkflowType
-> WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes
ChildWorkflowExecutionTimedOutEventAttributes'
{ $sel:workflowExecution:ChildWorkflowExecutionTimedOutEventAttributes' :: WorkflowExecution
workflowExecution =
WorkflowExecution
pWorkflowExecution_,
$sel:workflowType:ChildWorkflowExecutionTimedOutEventAttributes' :: WorkflowType
workflowType =
WorkflowType
pWorkflowType_,
$sel:timeoutType:ChildWorkflowExecutionTimedOutEventAttributes' :: WorkflowExecutionTimeoutType
timeoutType = WorkflowExecutionTimeoutType
pTimeoutType_,
$sel:initiatedEventId:ChildWorkflowExecutionTimedOutEventAttributes' :: Integer
initiatedEventId =
Integer
pInitiatedEventId_,
$sel:startedEventId:ChildWorkflowExecutionTimedOutEventAttributes' :: Integer
startedEventId =
Integer
pStartedEventId_
}
childWorkflowExecutionTimedOutEventAttributes_workflowExecution :: Lens.Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution
childWorkflowExecutionTimedOutEventAttributes_workflowExecution :: (WorkflowExecution -> f WorkflowExecution)
-> ChildWorkflowExecutionTimedOutEventAttributes
-> f ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes_workflowExecution = (ChildWorkflowExecutionTimedOutEventAttributes
-> WorkflowExecution)
-> (ChildWorkflowExecutionTimedOutEventAttributes
-> WorkflowExecution
-> ChildWorkflowExecutionTimedOutEventAttributes)
-> Lens
ChildWorkflowExecutionTimedOutEventAttributes
ChildWorkflowExecutionTimedOutEventAttributes
WorkflowExecution
WorkflowExecution
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTimedOutEventAttributes' {WorkflowExecution
workflowExecution :: WorkflowExecution
$sel:workflowExecution:ChildWorkflowExecutionTimedOutEventAttributes' :: ChildWorkflowExecutionTimedOutEventAttributes -> WorkflowExecution
workflowExecution} -> WorkflowExecution
workflowExecution) (\s :: ChildWorkflowExecutionTimedOutEventAttributes
s@ChildWorkflowExecutionTimedOutEventAttributes' {} WorkflowExecution
a -> ChildWorkflowExecutionTimedOutEventAttributes
s {$sel:workflowExecution:ChildWorkflowExecutionTimedOutEventAttributes' :: WorkflowExecution
workflowExecution = WorkflowExecution
a} :: ChildWorkflowExecutionTimedOutEventAttributes)
childWorkflowExecutionTimedOutEventAttributes_workflowType :: Lens.Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType
childWorkflowExecutionTimedOutEventAttributes_workflowType :: (WorkflowType -> f WorkflowType)
-> ChildWorkflowExecutionTimedOutEventAttributes
-> f ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes_workflowType = (ChildWorkflowExecutionTimedOutEventAttributes -> WorkflowType)
-> (ChildWorkflowExecutionTimedOutEventAttributes
-> WorkflowType -> ChildWorkflowExecutionTimedOutEventAttributes)
-> Lens
ChildWorkflowExecutionTimedOutEventAttributes
ChildWorkflowExecutionTimedOutEventAttributes
WorkflowType
WorkflowType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTimedOutEventAttributes' {WorkflowType
workflowType :: WorkflowType
$sel:workflowType:ChildWorkflowExecutionTimedOutEventAttributes' :: ChildWorkflowExecutionTimedOutEventAttributes -> WorkflowType
workflowType} -> WorkflowType
workflowType) (\s :: ChildWorkflowExecutionTimedOutEventAttributes
s@ChildWorkflowExecutionTimedOutEventAttributes' {} WorkflowType
a -> ChildWorkflowExecutionTimedOutEventAttributes
s {$sel:workflowType:ChildWorkflowExecutionTimedOutEventAttributes' :: WorkflowType
workflowType = WorkflowType
a} :: ChildWorkflowExecutionTimedOutEventAttributes)
childWorkflowExecutionTimedOutEventAttributes_timeoutType :: Lens.Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType
childWorkflowExecutionTimedOutEventAttributes_timeoutType :: (WorkflowExecutionTimeoutType -> f WorkflowExecutionTimeoutType)
-> ChildWorkflowExecutionTimedOutEventAttributes
-> f ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes_timeoutType = (ChildWorkflowExecutionTimedOutEventAttributes
-> WorkflowExecutionTimeoutType)
-> (ChildWorkflowExecutionTimedOutEventAttributes
-> WorkflowExecutionTimeoutType
-> ChildWorkflowExecutionTimedOutEventAttributes)
-> Lens
ChildWorkflowExecutionTimedOutEventAttributes
ChildWorkflowExecutionTimedOutEventAttributes
WorkflowExecutionTimeoutType
WorkflowExecutionTimeoutType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTimedOutEventAttributes' {WorkflowExecutionTimeoutType
timeoutType :: WorkflowExecutionTimeoutType
$sel:timeoutType:ChildWorkflowExecutionTimedOutEventAttributes' :: ChildWorkflowExecutionTimedOutEventAttributes
-> WorkflowExecutionTimeoutType
timeoutType} -> WorkflowExecutionTimeoutType
timeoutType) (\s :: ChildWorkflowExecutionTimedOutEventAttributes
s@ChildWorkflowExecutionTimedOutEventAttributes' {} WorkflowExecutionTimeoutType
a -> ChildWorkflowExecutionTimedOutEventAttributes
s {$sel:timeoutType:ChildWorkflowExecutionTimedOutEventAttributes' :: WorkflowExecutionTimeoutType
timeoutType = WorkflowExecutionTimeoutType
a} :: ChildWorkflowExecutionTimedOutEventAttributes)
childWorkflowExecutionTimedOutEventAttributes_initiatedEventId :: Lens.Lens' ChildWorkflowExecutionTimedOutEventAttributes Prelude.Integer
childWorkflowExecutionTimedOutEventAttributes_initiatedEventId :: (Integer -> f Integer)
-> ChildWorkflowExecutionTimedOutEventAttributes
-> f ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes_initiatedEventId = (ChildWorkflowExecutionTimedOutEventAttributes -> Integer)
-> (ChildWorkflowExecutionTimedOutEventAttributes
-> Integer -> ChildWorkflowExecutionTimedOutEventAttributes)
-> Lens
ChildWorkflowExecutionTimedOutEventAttributes
ChildWorkflowExecutionTimedOutEventAttributes
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTimedOutEventAttributes' {Integer
initiatedEventId :: Integer
$sel:initiatedEventId:ChildWorkflowExecutionTimedOutEventAttributes' :: ChildWorkflowExecutionTimedOutEventAttributes -> Integer
initiatedEventId} -> Integer
initiatedEventId) (\s :: ChildWorkflowExecutionTimedOutEventAttributes
s@ChildWorkflowExecutionTimedOutEventAttributes' {} Integer
a -> ChildWorkflowExecutionTimedOutEventAttributes
s {$sel:initiatedEventId:ChildWorkflowExecutionTimedOutEventAttributes' :: Integer
initiatedEventId = Integer
a} :: ChildWorkflowExecutionTimedOutEventAttributes)
childWorkflowExecutionTimedOutEventAttributes_startedEventId :: Lens.Lens' ChildWorkflowExecutionTimedOutEventAttributes Prelude.Integer
childWorkflowExecutionTimedOutEventAttributes_startedEventId :: (Integer -> f Integer)
-> ChildWorkflowExecutionTimedOutEventAttributes
-> f ChildWorkflowExecutionTimedOutEventAttributes
childWorkflowExecutionTimedOutEventAttributes_startedEventId = (ChildWorkflowExecutionTimedOutEventAttributes -> Integer)
-> (ChildWorkflowExecutionTimedOutEventAttributes
-> Integer -> ChildWorkflowExecutionTimedOutEventAttributes)
-> Lens
ChildWorkflowExecutionTimedOutEventAttributes
ChildWorkflowExecutionTimedOutEventAttributes
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChildWorkflowExecutionTimedOutEventAttributes' {Integer
startedEventId :: Integer
$sel:startedEventId:ChildWorkflowExecutionTimedOutEventAttributes' :: ChildWorkflowExecutionTimedOutEventAttributes -> Integer
startedEventId} -> Integer
startedEventId) (\s :: ChildWorkflowExecutionTimedOutEventAttributes
s@ChildWorkflowExecutionTimedOutEventAttributes' {} Integer
a -> ChildWorkflowExecutionTimedOutEventAttributes
s {$sel:startedEventId:ChildWorkflowExecutionTimedOutEventAttributes' :: Integer
startedEventId = Integer
a} :: ChildWorkflowExecutionTimedOutEventAttributes)
instance
Core.FromJSON
ChildWorkflowExecutionTimedOutEventAttributes
where
parseJSON :: Value -> Parser ChildWorkflowExecutionTimedOutEventAttributes
parseJSON =
String
-> (Object -> Parser ChildWorkflowExecutionTimedOutEventAttributes)
-> Value
-> Parser ChildWorkflowExecutionTimedOutEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ChildWorkflowExecutionTimedOutEventAttributes"
( \Object
x ->
WorkflowExecution
-> WorkflowType
-> WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes
ChildWorkflowExecutionTimedOutEventAttributes'
(WorkflowExecution
-> WorkflowType
-> WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes)
-> Parser WorkflowExecution
-> Parser
(WorkflowType
-> WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser WorkflowExecution
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"workflowExecution")
Parser
(WorkflowType
-> WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes)
-> Parser WorkflowType
-> Parser
(WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser WorkflowType
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"workflowType")
Parser
(WorkflowExecutionTimeoutType
-> Integer
-> Integer
-> ChildWorkflowExecutionTimedOutEventAttributes)
-> Parser WorkflowExecutionTimeoutType
-> Parser
(Integer
-> Integer -> ChildWorkflowExecutionTimedOutEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser WorkflowExecutionTimeoutType
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"timeoutType")
Parser
(Integer
-> Integer -> ChildWorkflowExecutionTimedOutEventAttributes)
-> Parser Integer
-> Parser
(Integer -> ChildWorkflowExecutionTimedOutEventAttributes)
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
"initiatedEventId")
Parser (Integer -> ChildWorkflowExecutionTimedOutEventAttributes)
-> Parser Integer
-> Parser ChildWorkflowExecutionTimedOutEventAttributes
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
"startedEventId")
)
instance
Prelude.Hashable
ChildWorkflowExecutionTimedOutEventAttributes
instance
Prelude.NFData
ChildWorkflowExecutionTimedOutEventAttributes