{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SWF.Types.ActivityTypeConfiguration
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Configuration settings registered with the activity type.
--
-- /See:/ 'newActivityTypeConfiguration' smart constructor.
data ActivityTypeConfiguration = ActivityTypeConfiguration'
  { -- | The default maximum duration, specified when registering the activity
    -- type, that a task of an activity type can wait before being assigned to
    -- a worker. You can override this default when scheduling a task through
    -- the @ScheduleActivityTask@ Decision.
    --
    -- The duration is specified in seconds, an integer greater than or equal
    -- to @0@. You can use @NONE@ to specify unlimited duration.
    ActivityTypeConfiguration -> Maybe Text
defaultTaskScheduleToStartTimeout :: Prelude.Maybe Prelude.Text,
    -- | The default task list specified for this activity type at registration.
    -- This default is used if a task list isn\'t provided when a task is
    -- scheduled through the @ScheduleActivityTask@ Decision. You can override
    -- the default registered task list when scheduling a task through the
    -- @ScheduleActivityTask@ Decision.
    ActivityTypeConfiguration -> Maybe TaskList
defaultTaskList :: Prelude.Maybe TaskList,
    -- | The default task priority for tasks of this activity type, specified at
    -- registration. If not set, then @0@ is used as the default priority. This
    -- default can be overridden when scheduling an activity task.
    --
    -- Valid values are integers that range from Java\'s @Integer.MIN_VALUE@
    -- (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers
    -- indicate higher priority.
    --
    -- For more information about setting task priority, see
    -- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>
    -- in the /Amazon SWF Developer Guide/.
    ActivityTypeConfiguration -> Maybe Text
defaultTaskPriority :: Prelude.Maybe Prelude.Text,
    -- | The default maximum time, in seconds, before which a worker processing a
    -- task must report progress by calling RecordActivityTaskHeartbeat.
    --
    -- You can specify this value only when /registering/ an activity type. The
    -- registered default value can be overridden when you schedule a task
    -- through the @ScheduleActivityTask@ Decision. If the activity worker
    -- subsequently attempts to record a heartbeat or returns a result, the
    -- activity worker receives an @UnknownResource@ fault. In this case,
    -- Amazon SWF no longer considers the activity task to be valid; the
    -- activity worker should clean up the activity task.
    --
    -- The duration is specified in seconds, an integer greater than or equal
    -- to @0@. You can use @NONE@ to specify unlimited duration.
    ActivityTypeConfiguration -> Maybe Text
defaultTaskHeartbeatTimeout :: Prelude.Maybe Prelude.Text,
    -- | The default maximum duration, specified when registering the activity
    -- type, for tasks of this activity type. You can override this default
    -- when scheduling a task through the @ScheduleActivityTask@ Decision.
    --
    -- The duration is specified in seconds, an integer greater than or equal
    -- to @0@. You can use @NONE@ to specify unlimited duration.
    ActivityTypeConfiguration -> Maybe Text
defaultTaskScheduleToCloseTimeout :: Prelude.Maybe Prelude.Text,
    -- | The default maximum duration for tasks of an activity type specified
    -- when registering the activity type. You can override this default when
    -- scheduling a task through the @ScheduleActivityTask@ Decision.
    --
    -- The duration is specified in seconds, an integer greater than or equal
    -- to @0@. You can use @NONE@ to specify unlimited duration.
    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)

-- |
-- Create a value of 'ActivityTypeConfiguration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'defaultTaskScheduleToStartTimeout', 'activityTypeConfiguration_defaultTaskScheduleToStartTimeout' - The default maximum duration, specified when registering the activity
-- type, that a task of an activity type can wait before being assigned to
-- a worker. You can override this default when scheduling a task through
-- the @ScheduleActivityTask@ Decision.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
--
-- 'defaultTaskList', 'activityTypeConfiguration_defaultTaskList' - The default task list specified for this activity type at registration.
-- This default is used if a task list isn\'t provided when a task is
-- scheduled through the @ScheduleActivityTask@ Decision. You can override
-- the default registered task list when scheduling a task through the
-- @ScheduleActivityTask@ Decision.
--
-- 'defaultTaskPriority', 'activityTypeConfiguration_defaultTaskPriority' - The default task priority for tasks of this activity type, specified at
-- registration. If not set, then @0@ is used as the default priority. This
-- default can be overridden when scheduling an activity task.
--
-- Valid values are integers that range from Java\'s @Integer.MIN_VALUE@
-- (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers
-- indicate higher priority.
--
-- For more information about setting task priority, see
-- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>
-- in the /Amazon SWF Developer Guide/.
--
-- 'defaultTaskHeartbeatTimeout', 'activityTypeConfiguration_defaultTaskHeartbeatTimeout' - The default maximum time, in seconds, before which a worker processing a
-- task must report progress by calling RecordActivityTaskHeartbeat.
--
-- You can specify this value only when /registering/ an activity type. The
-- registered default value can be overridden when you schedule a task
-- through the @ScheduleActivityTask@ Decision. If the activity worker
-- subsequently attempts to record a heartbeat or returns a result, the
-- activity worker receives an @UnknownResource@ fault. In this case,
-- Amazon SWF no longer considers the activity task to be valid; the
-- activity worker should clean up the activity task.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
--
-- 'defaultTaskScheduleToCloseTimeout', 'activityTypeConfiguration_defaultTaskScheduleToCloseTimeout' - The default maximum duration, specified when registering the activity
-- type, for tasks of this activity type. You can override this default
-- when scheduling a task through the @ScheduleActivityTask@ Decision.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
--
-- 'defaultTaskStartToCloseTimeout', 'activityTypeConfiguration_defaultTaskStartToCloseTimeout' - The default maximum duration for tasks of an activity type specified
-- when registering the activity type. You can override this default when
-- scheduling a task through the @ScheduleActivityTask@ Decision.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
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
    }

-- | The default maximum duration, specified when registering the activity
-- type, that a task of an activity type can wait before being assigned to
-- a worker. You can override this default when scheduling a task through
-- the @ScheduleActivityTask@ Decision.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
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)

-- | The default task list specified for this activity type at registration.
-- This default is used if a task list isn\'t provided when a task is
-- scheduled through the @ScheduleActivityTask@ Decision. You can override
-- the default registered task list when scheduling a task through the
-- @ScheduleActivityTask@ Decision.
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)

-- | The default task priority for tasks of this activity type, specified at
-- registration. If not set, then @0@ is used as the default priority. This
-- default can be overridden when scheduling an activity task.
--
-- Valid values are integers that range from Java\'s @Integer.MIN_VALUE@
-- (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers
-- indicate higher priority.
--
-- For more information about setting task priority, see
-- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority>
-- in the /Amazon SWF Developer Guide/.
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)

-- | The default maximum time, in seconds, before which a worker processing a
-- task must report progress by calling RecordActivityTaskHeartbeat.
--
-- You can specify this value only when /registering/ an activity type. The
-- registered default value can be overridden when you schedule a task
-- through the @ScheduleActivityTask@ Decision. If the activity worker
-- subsequently attempts to record a heartbeat or returns a result, the
-- activity worker receives an @UnknownResource@ fault. In this case,
-- Amazon SWF no longer considers the activity task to be valid; the
-- activity worker should clean up the activity task.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
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)

-- | The default maximum duration, specified when registering the activity
-- type, for tasks of this activity type. You can override this default
-- when scheduling a task through the @ScheduleActivityTask@ Decision.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
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)

-- | The default maximum duration for tasks of an activity type specified
-- when registering the activity type. You can override this default when
-- scheduling a task through the @ScheduleActivityTask@ Decision.
--
-- The duration is specified in seconds, an integer greater than or equal
-- to @0@. You can use @NONE@ to specify unlimited duration.
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