{-# 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.ActivityTypeConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.TaskList
data ActivityTypeConfiguration = ActivityTypeConfiguration'
{
ActivityTypeConfiguration -> Maybe Text
defaultTaskScheduleToStartTimeout :: Prelude.Maybe Prelude.Text,
ActivityTypeConfiguration -> Maybe TaskList
defaultTaskList :: Prelude.Maybe TaskList,
ActivityTypeConfiguration -> Maybe Text
defaultTaskPriority :: Prelude.Maybe Prelude.Text,
ActivityTypeConfiguration -> Maybe Text
defaultTaskHeartbeatTimeout :: Prelude.Maybe Prelude.Text,
ActivityTypeConfiguration -> Maybe Text
defaultTaskScheduleToCloseTimeout :: Prelude.Maybe Prelude.Text,
ActivityTypeConfiguration -> Maybe Text
defaultTaskStartToCloseTimeout :: Prelude.Maybe Prelude.Text
}
deriving (ActivityTypeConfiguration -> ActivityTypeConfiguration -> Bool
(ActivityTypeConfiguration -> ActivityTypeConfiguration -> Bool)
-> (ActivityTypeConfiguration -> ActivityTypeConfiguration -> Bool)
-> Eq ActivityTypeConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActivityTypeConfiguration -> ActivityTypeConfiguration -> Bool
$c/= :: ActivityTypeConfiguration -> ActivityTypeConfiguration -> Bool
== :: ActivityTypeConfiguration -> ActivityTypeConfiguration -> Bool
$c== :: ActivityTypeConfiguration -> ActivityTypeConfiguration -> Bool
Prelude.Eq, ReadPrec [ActivityTypeConfiguration]
ReadPrec ActivityTypeConfiguration
Int -> ReadS ActivityTypeConfiguration
ReadS [ActivityTypeConfiguration]
(Int -> ReadS ActivityTypeConfiguration)
-> ReadS [ActivityTypeConfiguration]
-> ReadPrec ActivityTypeConfiguration
-> ReadPrec [ActivityTypeConfiguration]
-> Read ActivityTypeConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActivityTypeConfiguration]
$creadListPrec :: ReadPrec [ActivityTypeConfiguration]
readPrec :: ReadPrec ActivityTypeConfiguration
$creadPrec :: ReadPrec ActivityTypeConfiguration
readList :: ReadS [ActivityTypeConfiguration]
$creadList :: ReadS [ActivityTypeConfiguration]
readsPrec :: Int -> ReadS ActivityTypeConfiguration
$creadsPrec :: Int -> ReadS ActivityTypeConfiguration
Prelude.Read, Int -> ActivityTypeConfiguration -> ShowS
[ActivityTypeConfiguration] -> ShowS
ActivityTypeConfiguration -> String
(Int -> ActivityTypeConfiguration -> ShowS)
-> (ActivityTypeConfiguration -> String)
-> ([ActivityTypeConfiguration] -> ShowS)
-> Show ActivityTypeConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActivityTypeConfiguration] -> ShowS
$cshowList :: [ActivityTypeConfiguration] -> ShowS
show :: ActivityTypeConfiguration -> String
$cshow :: ActivityTypeConfiguration -> String
showsPrec :: Int -> ActivityTypeConfiguration -> ShowS
$cshowsPrec :: Int -> ActivityTypeConfiguration -> ShowS
Prelude.Show, (forall x.
ActivityTypeConfiguration -> Rep ActivityTypeConfiguration x)
-> (forall x.
Rep ActivityTypeConfiguration x -> ActivityTypeConfiguration)
-> Generic ActivityTypeConfiguration
forall x.
Rep ActivityTypeConfiguration x -> ActivityTypeConfiguration
forall x.
ActivityTypeConfiguration -> Rep ActivityTypeConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ActivityTypeConfiguration x -> ActivityTypeConfiguration
$cfrom :: forall x.
ActivityTypeConfiguration -> Rep ActivityTypeConfiguration x
Prelude.Generic)
newActivityTypeConfiguration ::
ActivityTypeConfiguration
newActivityTypeConfiguration :: ActivityTypeConfiguration
newActivityTypeConfiguration =
ActivityTypeConfiguration' :: Maybe Text
-> Maybe TaskList
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityTypeConfiguration
ActivityTypeConfiguration'
{ $sel:defaultTaskScheduleToStartTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskScheduleToStartTimeout =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskList:ActivityTypeConfiguration' :: Maybe TaskList
defaultTaskList = Maybe TaskList
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskPriority:ActivityTypeConfiguration' :: Maybe Text
defaultTaskPriority = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskHeartbeatTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskHeartbeatTimeout = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskScheduleToCloseTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskScheduleToCloseTimeout =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskStartToCloseTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskStartToCloseTimeout = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
activityTypeConfiguration_defaultTaskScheduleToStartTimeout :: Lens.Lens' ActivityTypeConfiguration (Prelude.Maybe Prelude.Text)
activityTypeConfiguration_defaultTaskScheduleToStartTimeout :: (Maybe Text -> f (Maybe Text))
-> ActivityTypeConfiguration -> f ActivityTypeConfiguration
activityTypeConfiguration_defaultTaskScheduleToStartTimeout = (ActivityTypeConfiguration -> Maybe Text)
-> (ActivityTypeConfiguration
-> Maybe Text -> ActivityTypeConfiguration)
-> Lens
ActivityTypeConfiguration
ActivityTypeConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTypeConfiguration' {Maybe Text
defaultTaskScheduleToStartTimeout :: Maybe Text
$sel:defaultTaskScheduleToStartTimeout:ActivityTypeConfiguration' :: ActivityTypeConfiguration -> Maybe Text
defaultTaskScheduleToStartTimeout} -> Maybe Text
defaultTaskScheduleToStartTimeout) (\s :: ActivityTypeConfiguration
s@ActivityTypeConfiguration' {} Maybe Text
a -> ActivityTypeConfiguration
s {$sel:defaultTaskScheduleToStartTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskScheduleToStartTimeout = Maybe Text
a} :: ActivityTypeConfiguration)
activityTypeConfiguration_defaultTaskList :: Lens.Lens' ActivityTypeConfiguration (Prelude.Maybe TaskList)
activityTypeConfiguration_defaultTaskList :: (Maybe TaskList -> f (Maybe TaskList))
-> ActivityTypeConfiguration -> f ActivityTypeConfiguration
activityTypeConfiguration_defaultTaskList = (ActivityTypeConfiguration -> Maybe TaskList)
-> (ActivityTypeConfiguration
-> Maybe TaskList -> ActivityTypeConfiguration)
-> Lens
ActivityTypeConfiguration
ActivityTypeConfiguration
(Maybe TaskList)
(Maybe TaskList)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTypeConfiguration' {Maybe TaskList
defaultTaskList :: Maybe TaskList
$sel:defaultTaskList:ActivityTypeConfiguration' :: ActivityTypeConfiguration -> Maybe TaskList
defaultTaskList} -> Maybe TaskList
defaultTaskList) (\s :: ActivityTypeConfiguration
s@ActivityTypeConfiguration' {} Maybe TaskList
a -> ActivityTypeConfiguration
s {$sel:defaultTaskList:ActivityTypeConfiguration' :: Maybe TaskList
defaultTaskList = Maybe TaskList
a} :: ActivityTypeConfiguration)
activityTypeConfiguration_defaultTaskPriority :: Lens.Lens' ActivityTypeConfiguration (Prelude.Maybe Prelude.Text)
activityTypeConfiguration_defaultTaskPriority :: (Maybe Text -> f (Maybe Text))
-> ActivityTypeConfiguration -> f ActivityTypeConfiguration
activityTypeConfiguration_defaultTaskPriority = (ActivityTypeConfiguration -> Maybe Text)
-> (ActivityTypeConfiguration
-> Maybe Text -> ActivityTypeConfiguration)
-> Lens
ActivityTypeConfiguration
ActivityTypeConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTypeConfiguration' {Maybe Text
defaultTaskPriority :: Maybe Text
$sel:defaultTaskPriority:ActivityTypeConfiguration' :: ActivityTypeConfiguration -> Maybe Text
defaultTaskPriority} -> Maybe Text
defaultTaskPriority) (\s :: ActivityTypeConfiguration
s@ActivityTypeConfiguration' {} Maybe Text
a -> ActivityTypeConfiguration
s {$sel:defaultTaskPriority:ActivityTypeConfiguration' :: Maybe Text
defaultTaskPriority = Maybe Text
a} :: ActivityTypeConfiguration)
activityTypeConfiguration_defaultTaskHeartbeatTimeout :: Lens.Lens' ActivityTypeConfiguration (Prelude.Maybe Prelude.Text)
activityTypeConfiguration_defaultTaskHeartbeatTimeout :: (Maybe Text -> f (Maybe Text))
-> ActivityTypeConfiguration -> f ActivityTypeConfiguration
activityTypeConfiguration_defaultTaskHeartbeatTimeout = (ActivityTypeConfiguration -> Maybe Text)
-> (ActivityTypeConfiguration
-> Maybe Text -> ActivityTypeConfiguration)
-> Lens
ActivityTypeConfiguration
ActivityTypeConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTypeConfiguration' {Maybe Text
defaultTaskHeartbeatTimeout :: Maybe Text
$sel:defaultTaskHeartbeatTimeout:ActivityTypeConfiguration' :: ActivityTypeConfiguration -> Maybe Text
defaultTaskHeartbeatTimeout} -> Maybe Text
defaultTaskHeartbeatTimeout) (\s :: ActivityTypeConfiguration
s@ActivityTypeConfiguration' {} Maybe Text
a -> ActivityTypeConfiguration
s {$sel:defaultTaskHeartbeatTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskHeartbeatTimeout = Maybe Text
a} :: ActivityTypeConfiguration)
activityTypeConfiguration_defaultTaskScheduleToCloseTimeout :: Lens.Lens' ActivityTypeConfiguration (Prelude.Maybe Prelude.Text)
activityTypeConfiguration_defaultTaskScheduleToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> ActivityTypeConfiguration -> f ActivityTypeConfiguration
activityTypeConfiguration_defaultTaskScheduleToCloseTimeout = (ActivityTypeConfiguration -> Maybe Text)
-> (ActivityTypeConfiguration
-> Maybe Text -> ActivityTypeConfiguration)
-> Lens
ActivityTypeConfiguration
ActivityTypeConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTypeConfiguration' {Maybe Text
defaultTaskScheduleToCloseTimeout :: Maybe Text
$sel:defaultTaskScheduleToCloseTimeout:ActivityTypeConfiguration' :: ActivityTypeConfiguration -> Maybe Text
defaultTaskScheduleToCloseTimeout} -> Maybe Text
defaultTaskScheduleToCloseTimeout) (\s :: ActivityTypeConfiguration
s@ActivityTypeConfiguration' {} Maybe Text
a -> ActivityTypeConfiguration
s {$sel:defaultTaskScheduleToCloseTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskScheduleToCloseTimeout = Maybe Text
a} :: ActivityTypeConfiguration)
activityTypeConfiguration_defaultTaskStartToCloseTimeout :: Lens.Lens' ActivityTypeConfiguration (Prelude.Maybe Prelude.Text)
activityTypeConfiguration_defaultTaskStartToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> ActivityTypeConfiguration -> f ActivityTypeConfiguration
activityTypeConfiguration_defaultTaskStartToCloseTimeout = (ActivityTypeConfiguration -> Maybe Text)
-> (ActivityTypeConfiguration
-> Maybe Text -> ActivityTypeConfiguration)
-> Lens
ActivityTypeConfiguration
ActivityTypeConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTypeConfiguration' {Maybe Text
defaultTaskStartToCloseTimeout :: Maybe Text
$sel:defaultTaskStartToCloseTimeout:ActivityTypeConfiguration' :: ActivityTypeConfiguration -> Maybe Text
defaultTaskStartToCloseTimeout} -> Maybe Text
defaultTaskStartToCloseTimeout) (\s :: ActivityTypeConfiguration
s@ActivityTypeConfiguration' {} Maybe Text
a -> ActivityTypeConfiguration
s {$sel:defaultTaskStartToCloseTimeout:ActivityTypeConfiguration' :: Maybe Text
defaultTaskStartToCloseTimeout = Maybe Text
a} :: ActivityTypeConfiguration)
instance Core.FromJSON ActivityTypeConfiguration where
parseJSON :: Value -> Parser ActivityTypeConfiguration
parseJSON =
String
-> (Object -> Parser ActivityTypeConfiguration)
-> Value
-> Parser ActivityTypeConfiguration
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ActivityTypeConfiguration"
( \Object
x ->
Maybe Text
-> Maybe TaskList
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityTypeConfiguration
ActivityTypeConfiguration'
(Maybe Text
-> Maybe TaskList
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityTypeConfiguration)
-> Parser (Maybe Text)
-> Parser
(Maybe TaskList
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityTypeConfiguration)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultTaskScheduleToStartTimeout")
Parser
(Maybe TaskList
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityTypeConfiguration)
-> Parser (Maybe TaskList)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityTypeConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskList)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultTaskList")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityTypeConfiguration)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> ActivityTypeConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultTaskPriority")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> ActivityTypeConfiguration)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> ActivityTypeConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultTaskHeartbeatTimeout")
Parser (Maybe Text -> Maybe Text -> ActivityTypeConfiguration)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> ActivityTypeConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultTaskScheduleToCloseTimeout")
Parser (Maybe Text -> ActivityTypeConfiguration)
-> Parser (Maybe Text) -> Parser ActivityTypeConfiguration
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultTaskStartToCloseTimeout")
)
instance Prelude.Hashable ActivityTypeConfiguration
instance Prelude.NFData ActivityTypeConfiguration