{-# 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.DecisionTaskScheduledEventAttributes 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.TaskList
data DecisionTaskScheduledEventAttributes = DecisionTaskScheduledEventAttributes'
{
DecisionTaskScheduledEventAttributes -> Maybe Text
startToCloseTimeout :: Prelude.Maybe Prelude.Text,
DecisionTaskScheduledEventAttributes -> Maybe Text
taskPriority :: Prelude.Maybe Prelude.Text,
DecisionTaskScheduledEventAttributes -> TaskList
taskList :: TaskList
}
deriving (DecisionTaskScheduledEventAttributes
-> DecisionTaskScheduledEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DecisionTaskScheduledEventAttributes
-> DecisionTaskScheduledEventAttributes -> Bool
$c/= :: DecisionTaskScheduledEventAttributes
-> DecisionTaskScheduledEventAttributes -> Bool
== :: DecisionTaskScheduledEventAttributes
-> DecisionTaskScheduledEventAttributes -> Bool
$c== :: DecisionTaskScheduledEventAttributes
-> DecisionTaskScheduledEventAttributes -> Bool
Prelude.Eq, ReadPrec [DecisionTaskScheduledEventAttributes]
ReadPrec DecisionTaskScheduledEventAttributes
Int -> ReadS DecisionTaskScheduledEventAttributes
ReadS [DecisionTaskScheduledEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DecisionTaskScheduledEventAttributes]
$creadListPrec :: ReadPrec [DecisionTaskScheduledEventAttributes]
readPrec :: ReadPrec DecisionTaskScheduledEventAttributes
$creadPrec :: ReadPrec DecisionTaskScheduledEventAttributes
readList :: ReadS [DecisionTaskScheduledEventAttributes]
$creadList :: ReadS [DecisionTaskScheduledEventAttributes]
readsPrec :: Int -> ReadS DecisionTaskScheduledEventAttributes
$creadsPrec :: Int -> ReadS DecisionTaskScheduledEventAttributes
Prelude.Read, Int -> DecisionTaskScheduledEventAttributes -> ShowS
[DecisionTaskScheduledEventAttributes] -> ShowS
DecisionTaskScheduledEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DecisionTaskScheduledEventAttributes] -> ShowS
$cshowList :: [DecisionTaskScheduledEventAttributes] -> ShowS
show :: DecisionTaskScheduledEventAttributes -> String
$cshow :: DecisionTaskScheduledEventAttributes -> String
showsPrec :: Int -> DecisionTaskScheduledEventAttributes -> ShowS
$cshowsPrec :: Int -> DecisionTaskScheduledEventAttributes -> ShowS
Prelude.Show, forall x.
Rep DecisionTaskScheduledEventAttributes x
-> DecisionTaskScheduledEventAttributes
forall x.
DecisionTaskScheduledEventAttributes
-> Rep DecisionTaskScheduledEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DecisionTaskScheduledEventAttributes x
-> DecisionTaskScheduledEventAttributes
$cfrom :: forall x.
DecisionTaskScheduledEventAttributes
-> Rep DecisionTaskScheduledEventAttributes x
Prelude.Generic)
newDecisionTaskScheduledEventAttributes ::
TaskList ->
DecisionTaskScheduledEventAttributes
newDecisionTaskScheduledEventAttributes :: TaskList -> DecisionTaskScheduledEventAttributes
newDecisionTaskScheduledEventAttributes TaskList
pTaskList_ =
DecisionTaskScheduledEventAttributes'
{ $sel:startToCloseTimeout:DecisionTaskScheduledEventAttributes' :: Maybe Text
startToCloseTimeout =
forall a. Maybe a
Prelude.Nothing,
$sel:taskPriority:DecisionTaskScheduledEventAttributes' :: Maybe Text
taskPriority = forall a. Maybe a
Prelude.Nothing,
$sel:taskList:DecisionTaskScheduledEventAttributes' :: TaskList
taskList = TaskList
pTaskList_
}
decisionTaskScheduledEventAttributes_startToCloseTimeout :: Lens.Lens' DecisionTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
decisionTaskScheduledEventAttributes_startToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)
decisionTaskScheduledEventAttributes_startToCloseTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecisionTaskScheduledEventAttributes' {Maybe Text
startToCloseTimeout :: Maybe Text
$sel:startToCloseTimeout:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> Maybe Text
startToCloseTimeout} -> Maybe Text
startToCloseTimeout) (\s :: DecisionTaskScheduledEventAttributes
s@DecisionTaskScheduledEventAttributes' {} Maybe Text
a -> DecisionTaskScheduledEventAttributes
s {$sel:startToCloseTimeout:DecisionTaskScheduledEventAttributes' :: Maybe Text
startToCloseTimeout = Maybe Text
a} :: DecisionTaskScheduledEventAttributes)
decisionTaskScheduledEventAttributes_taskPriority :: Lens.Lens' DecisionTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
decisionTaskScheduledEventAttributes_taskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)
decisionTaskScheduledEventAttributes_taskPriority = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecisionTaskScheduledEventAttributes' {Maybe Text
taskPriority :: Maybe Text
$sel:taskPriority:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> Maybe Text
taskPriority} -> Maybe Text
taskPriority) (\s :: DecisionTaskScheduledEventAttributes
s@DecisionTaskScheduledEventAttributes' {} Maybe Text
a -> DecisionTaskScheduledEventAttributes
s {$sel:taskPriority:DecisionTaskScheduledEventAttributes' :: Maybe Text
taskPriority = Maybe Text
a} :: DecisionTaskScheduledEventAttributes)
decisionTaskScheduledEventAttributes_taskList :: Lens.Lens' DecisionTaskScheduledEventAttributes TaskList
decisionTaskScheduledEventAttributes_taskList :: Lens' DecisionTaskScheduledEventAttributes TaskList
decisionTaskScheduledEventAttributes_taskList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecisionTaskScheduledEventAttributes' {TaskList
taskList :: TaskList
$sel:taskList:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> TaskList
taskList} -> TaskList
taskList) (\s :: DecisionTaskScheduledEventAttributes
s@DecisionTaskScheduledEventAttributes' {} TaskList
a -> DecisionTaskScheduledEventAttributes
s {$sel:taskList:DecisionTaskScheduledEventAttributes' :: TaskList
taskList = TaskList
a} :: DecisionTaskScheduledEventAttributes)
instance
Data.FromJSON
DecisionTaskScheduledEventAttributes
where
parseJSON :: Value -> Parser DecisionTaskScheduledEventAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DecisionTaskScheduledEventAttributes"
( \Object
x ->
Maybe Text
-> Maybe Text -> TaskList -> DecisionTaskScheduledEventAttributes
DecisionTaskScheduledEventAttributes'
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
"startToCloseTimeout")
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
"taskPriority")
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
"taskList")
)
instance
Prelude.Hashable
DecisionTaskScheduledEventAttributes
where
hashWithSalt :: Int -> DecisionTaskScheduledEventAttributes -> Int
hashWithSalt
Int
_salt
DecisionTaskScheduledEventAttributes' {Maybe Text
TaskList
taskList :: TaskList
taskPriority :: Maybe Text
startToCloseTimeout :: Maybe Text
$sel:taskList:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> TaskList
$sel:taskPriority:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> Maybe Text
$sel:startToCloseTimeout:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
startToCloseTimeout
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
taskPriority
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` TaskList
taskList
instance
Prelude.NFData
DecisionTaskScheduledEventAttributes
where
rnf :: DecisionTaskScheduledEventAttributes -> ()
rnf DecisionTaskScheduledEventAttributes' {Maybe Text
TaskList
taskList :: TaskList
taskPriority :: Maybe Text
startToCloseTimeout :: Maybe Text
$sel:taskList:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> TaskList
$sel:taskPriority:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> Maybe Text
$sel:startToCloseTimeout:DecisionTaskScheduledEventAttributes' :: DecisionTaskScheduledEventAttributes -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
startToCloseTimeout
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
taskPriority
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf TaskList
taskList