{-# 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.CancelTimerFailedEventAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.CancelTimerFailedCause
data CancelTimerFailedEventAttributes = CancelTimerFailedEventAttributes'
{
CancelTimerFailedEventAttributes -> Text
timerId :: Prelude.Text,
CancelTimerFailedEventAttributes -> CancelTimerFailedCause
cause :: CancelTimerFailedCause,
CancelTimerFailedEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer
}
deriving (CancelTimerFailedEventAttributes
-> CancelTimerFailedEventAttributes -> Bool
(CancelTimerFailedEventAttributes
-> CancelTimerFailedEventAttributes -> Bool)
-> (CancelTimerFailedEventAttributes
-> CancelTimerFailedEventAttributes -> Bool)
-> Eq CancelTimerFailedEventAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelTimerFailedEventAttributes
-> CancelTimerFailedEventAttributes -> Bool
$c/= :: CancelTimerFailedEventAttributes
-> CancelTimerFailedEventAttributes -> Bool
== :: CancelTimerFailedEventAttributes
-> CancelTimerFailedEventAttributes -> Bool
$c== :: CancelTimerFailedEventAttributes
-> CancelTimerFailedEventAttributes -> Bool
Prelude.Eq, ReadPrec [CancelTimerFailedEventAttributes]
ReadPrec CancelTimerFailedEventAttributes
Int -> ReadS CancelTimerFailedEventAttributes
ReadS [CancelTimerFailedEventAttributes]
(Int -> ReadS CancelTimerFailedEventAttributes)
-> ReadS [CancelTimerFailedEventAttributes]
-> ReadPrec CancelTimerFailedEventAttributes
-> ReadPrec [CancelTimerFailedEventAttributes]
-> Read CancelTimerFailedEventAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelTimerFailedEventAttributes]
$creadListPrec :: ReadPrec [CancelTimerFailedEventAttributes]
readPrec :: ReadPrec CancelTimerFailedEventAttributes
$creadPrec :: ReadPrec CancelTimerFailedEventAttributes
readList :: ReadS [CancelTimerFailedEventAttributes]
$creadList :: ReadS [CancelTimerFailedEventAttributes]
readsPrec :: Int -> ReadS CancelTimerFailedEventAttributes
$creadsPrec :: Int -> ReadS CancelTimerFailedEventAttributes
Prelude.Read, Int -> CancelTimerFailedEventAttributes -> ShowS
[CancelTimerFailedEventAttributes] -> ShowS
CancelTimerFailedEventAttributes -> String
(Int -> CancelTimerFailedEventAttributes -> ShowS)
-> (CancelTimerFailedEventAttributes -> String)
-> ([CancelTimerFailedEventAttributes] -> ShowS)
-> Show CancelTimerFailedEventAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelTimerFailedEventAttributes] -> ShowS
$cshowList :: [CancelTimerFailedEventAttributes] -> ShowS
show :: CancelTimerFailedEventAttributes -> String
$cshow :: CancelTimerFailedEventAttributes -> String
showsPrec :: Int -> CancelTimerFailedEventAttributes -> ShowS
$cshowsPrec :: Int -> CancelTimerFailedEventAttributes -> ShowS
Prelude.Show, (forall x.
CancelTimerFailedEventAttributes
-> Rep CancelTimerFailedEventAttributes x)
-> (forall x.
Rep CancelTimerFailedEventAttributes x
-> CancelTimerFailedEventAttributes)
-> Generic CancelTimerFailedEventAttributes
forall x.
Rep CancelTimerFailedEventAttributes x
-> CancelTimerFailedEventAttributes
forall x.
CancelTimerFailedEventAttributes
-> Rep CancelTimerFailedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CancelTimerFailedEventAttributes x
-> CancelTimerFailedEventAttributes
$cfrom :: forall x.
CancelTimerFailedEventAttributes
-> Rep CancelTimerFailedEventAttributes x
Prelude.Generic)
newCancelTimerFailedEventAttributes ::
Prelude.Text ->
CancelTimerFailedCause ->
Prelude.Integer ->
CancelTimerFailedEventAttributes
newCancelTimerFailedEventAttributes :: Text
-> CancelTimerFailedCause
-> Integer
-> CancelTimerFailedEventAttributes
newCancelTimerFailedEventAttributes
Text
pTimerId_
CancelTimerFailedCause
pCause_
Integer
pDecisionTaskCompletedEventId_ =
CancelTimerFailedEventAttributes' :: Text
-> CancelTimerFailedCause
-> Integer
-> CancelTimerFailedEventAttributes
CancelTimerFailedEventAttributes'
{ $sel:timerId:CancelTimerFailedEventAttributes' :: Text
timerId =
Text
pTimerId_,
$sel:cause:CancelTimerFailedEventAttributes' :: CancelTimerFailedCause
cause = CancelTimerFailedCause
pCause_,
$sel:decisionTaskCompletedEventId:CancelTimerFailedEventAttributes' :: Integer
decisionTaskCompletedEventId =
Integer
pDecisionTaskCompletedEventId_
}
cancelTimerFailedEventAttributes_timerId :: Lens.Lens' CancelTimerFailedEventAttributes Prelude.Text
cancelTimerFailedEventAttributes_timerId :: (Text -> f Text)
-> CancelTimerFailedEventAttributes
-> f CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes_timerId = (CancelTimerFailedEventAttributes -> Text)
-> (CancelTimerFailedEventAttributes
-> Text -> CancelTimerFailedEventAttributes)
-> Lens
CancelTimerFailedEventAttributes
CancelTimerFailedEventAttributes
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelTimerFailedEventAttributes' {Text
timerId :: Text
$sel:timerId:CancelTimerFailedEventAttributes' :: CancelTimerFailedEventAttributes -> Text
timerId} -> Text
timerId) (\s :: CancelTimerFailedEventAttributes
s@CancelTimerFailedEventAttributes' {} Text
a -> CancelTimerFailedEventAttributes
s {$sel:timerId:CancelTimerFailedEventAttributes' :: Text
timerId = Text
a} :: CancelTimerFailedEventAttributes)
cancelTimerFailedEventAttributes_cause :: Lens.Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause
cancelTimerFailedEventAttributes_cause :: (CancelTimerFailedCause -> f CancelTimerFailedCause)
-> CancelTimerFailedEventAttributes
-> f CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes_cause = (CancelTimerFailedEventAttributes -> CancelTimerFailedCause)
-> (CancelTimerFailedEventAttributes
-> CancelTimerFailedCause -> CancelTimerFailedEventAttributes)
-> Lens
CancelTimerFailedEventAttributes
CancelTimerFailedEventAttributes
CancelTimerFailedCause
CancelTimerFailedCause
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelTimerFailedEventAttributes' {CancelTimerFailedCause
cause :: CancelTimerFailedCause
$sel:cause:CancelTimerFailedEventAttributes' :: CancelTimerFailedEventAttributes -> CancelTimerFailedCause
cause} -> CancelTimerFailedCause
cause) (\s :: CancelTimerFailedEventAttributes
s@CancelTimerFailedEventAttributes' {} CancelTimerFailedCause
a -> CancelTimerFailedEventAttributes
s {$sel:cause:CancelTimerFailedEventAttributes' :: CancelTimerFailedCause
cause = CancelTimerFailedCause
a} :: CancelTimerFailedEventAttributes)
cancelTimerFailedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' CancelTimerFailedEventAttributes Prelude.Integer
cancelTimerFailedEventAttributes_decisionTaskCompletedEventId :: (Integer -> f Integer)
-> CancelTimerFailedEventAttributes
-> f CancelTimerFailedEventAttributes
cancelTimerFailedEventAttributes_decisionTaskCompletedEventId = (CancelTimerFailedEventAttributes -> Integer)
-> (CancelTimerFailedEventAttributes
-> Integer -> CancelTimerFailedEventAttributes)
-> Lens
CancelTimerFailedEventAttributes
CancelTimerFailedEventAttributes
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelTimerFailedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:CancelTimerFailedEventAttributes' :: CancelTimerFailedEventAttributes -> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: CancelTimerFailedEventAttributes
s@CancelTimerFailedEventAttributes' {} Integer
a -> CancelTimerFailedEventAttributes
s {$sel:decisionTaskCompletedEventId:CancelTimerFailedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: CancelTimerFailedEventAttributes)
instance
Core.FromJSON
CancelTimerFailedEventAttributes
where
parseJSON :: Value -> Parser CancelTimerFailedEventAttributes
parseJSON =
String
-> (Object -> Parser CancelTimerFailedEventAttributes)
-> Value
-> Parser CancelTimerFailedEventAttributes
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"CancelTimerFailedEventAttributes"
( \Object
x ->
Text
-> CancelTimerFailedCause
-> Integer
-> CancelTimerFailedEventAttributes
CancelTimerFailedEventAttributes'
(Text
-> CancelTimerFailedCause
-> Integer
-> CancelTimerFailedEventAttributes)
-> Parser Text
-> Parser
(CancelTimerFailedCause
-> Integer -> CancelTimerFailedEventAttributes)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"timerId")
Parser
(CancelTimerFailedCause
-> Integer -> CancelTimerFailedEventAttributes)
-> Parser CancelTimerFailedCause
-> Parser (Integer -> CancelTimerFailedEventAttributes)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser CancelTimerFailedCause
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"cause")
Parser (Integer -> CancelTimerFailedEventAttributes)
-> Parser Integer -> Parser CancelTimerFailedEventAttributes
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
"decisionTaskCompletedEventId")
)
instance
Prelude.Hashable
CancelTimerFailedEventAttributes
instance
Prelude.NFData
CancelTimerFailedEventAttributes