{-# 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.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes 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 RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'
{
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
control :: Prelude.Maybe Prelude.Text,
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Text
workflowId :: Prelude.Text,
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Integer
decisionTaskCompletedEventId :: Prelude.Integer
}
deriving (RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Bool
$c/= :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Bool
== :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Bool
$c== :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Bool
Prelude.Eq, ReadPrec
[RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
ReadPrec
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
Int
-> ReadS
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
ReadS
[RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
[RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
$creadListPrec :: ReadPrec
[RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
readPrec :: ReadPrec
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
$creadPrec :: ReadPrec
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
readList :: ReadS
[RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
$creadList :: ReadS
[RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
readsPrec :: Int
-> ReadS
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
$creadsPrec :: Int
-> ReadS
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
Prelude.Read, Int
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> ShowS
[RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
-> ShowS
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
-> ShowS
$cshowList :: [RequestCancelExternalWorkflowExecutionInitiatedEventAttributes]
-> ShowS
show :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> String
$cshow :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> String
showsPrec :: Int
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> ShowS
$cshowsPrec :: Int
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> ShowS
Prelude.Show, forall x.
Rep
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes x
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
forall x.
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Rep
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes x
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
$cfrom :: forall x.
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Rep
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes x
Prelude.Generic)
newRequestCancelExternalWorkflowExecutionInitiatedEventAttributes ::
Prelude.Text ->
Prelude.Integer ->
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
newRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Text
-> Integer
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
newRequestCancelExternalWorkflowExecutionInitiatedEventAttributes
Text
pWorkflowId_
Integer
pDecisionTaskCompletedEventId_ =
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'
{ $sel:control:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control =
forall a. Maybe a
Prelude.Nothing,
$sel:runId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
runId =
forall a. Maybe a
Prelude.Nothing,
$sel:workflowId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Text
workflowId =
Text
pWorkflowId_,
$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Integer
decisionTaskCompletedEventId =
Integer
pDecisionTaskCompletedEventId_
}
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_control :: Lens.Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_control :: Lens'
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_control = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {Maybe Text
control :: Maybe Text
$sel:control:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
control} -> Maybe Text
control) (\s :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s@RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:control:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
control = Maybe Text
a} :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_runId :: Lens.Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Prelude.Maybe Prelude.Text)
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_runId :: Lens'
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
(Maybe Text)
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_runId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {Maybe Text
runId :: Maybe Text
$sel:runId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
runId} -> Maybe Text
runId) (\s :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s@RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {} Maybe Text
a -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:runId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Maybe Text
runId = Maybe Text
a} :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_workflowId :: Lens.Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Prelude.Text
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_workflowId :: Lens'
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {Text
workflowId :: Text
$sel:workflowId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Text
workflowId} -> Text
workflowId) (\s :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s@RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {} Text
a -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:workflowId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Text
workflowId = Text
a} :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Prelude.Integer
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId :: Lens'
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
Integer
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s@RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {} Integer
a -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
s {$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)
instance
Data.FromJSON
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
where
parseJSON :: Value
-> Parser
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"RequestCancelExternalWorkflowExecutionInitiatedEventAttributes"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Text
-> Integer
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"control")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"runId")
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
"workflowId")
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
"decisionTaskCompletedEventId")
)
instance
Prelude.Hashable
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
where
hashWithSalt :: Int
-> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Int
hashWithSalt
Int
_salt
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {Integer
Maybe Text
Text
decisionTaskCompletedEventId :: Integer
workflowId :: Text
runId :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Integer
$sel:workflowId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Text
$sel:runId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
$sel:control:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> 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
runId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
workflowId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
decisionTaskCompletedEventId
instance
Prelude.NFData
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
where
rnf :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> ()
rnf
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' {Integer
Maybe Text
Text
decisionTaskCompletedEventId :: Integer
workflowId :: Text
runId :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Integer
$sel:workflowId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Text
$sel:runId:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> Maybe Text
$sel:control:RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' :: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
-> 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
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 Integer
decisionTaskCompletedEventId