{-# 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.ActivityTaskScheduledEventAttributes
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SWF.Types.ActivityTaskScheduledEventAttributes 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.ActivityType
import Amazonka.SWF.Types.TaskList

-- | Provides the details of the @ActivityTaskScheduled@ event.
--
-- /See:/ 'newActivityTaskScheduledEventAttributes' smart constructor.
data ActivityTaskScheduledEventAttributes = ActivityTaskScheduledEventAttributes'
  { -- | Data attached to the event that can be used by the decider in subsequent
    -- workflow tasks. This data isn\'t sent to the activity.
    ActivityTaskScheduledEventAttributes -> Maybe Text
control :: Prelude.Maybe Prelude.Text,
    -- | The maximum time before which the worker processing this task must
    -- report progress by calling RecordActivityTaskHeartbeat. If the timeout
    -- is exceeded, the activity task is automatically timed out. If the worker
    -- subsequently attempts to record a heartbeat or return a result, it is
    -- ignored.
    ActivityTaskScheduledEventAttributes -> Maybe Text
heartbeatTimeout :: Prelude.Maybe Prelude.Text,
    -- | The input provided to the activity task.
    ActivityTaskScheduledEventAttributes -> Maybe Text
input :: Prelude.Maybe Prelude.Text,
    -- | The maximum amount of time for this activity task.
    ActivityTaskScheduledEventAttributes -> Maybe Text
scheduleToCloseTimeout :: Prelude.Maybe Prelude.Text,
    -- | The maximum amount of time the activity task can wait to be assigned to
    -- a worker.
    ActivityTaskScheduledEventAttributes -> Maybe Text
scheduleToStartTimeout :: Prelude.Maybe Prelude.Text,
    -- | The maximum amount of time a worker may take to process the activity
    -- task.
    ActivityTaskScheduledEventAttributes -> Maybe Text
startToCloseTimeout :: Prelude.Maybe Prelude.Text,
    -- | The priority to assign to the scheduled activity task. If set, this
    -- overrides any default priority value that was assigned when the activity
    -- type was registered.
    --
    -- 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/.
    ActivityTaskScheduledEventAttributes -> Maybe Text
taskPriority :: Prelude.Maybe Prelude.Text,
    -- | The type of the activity task.
    ActivityTaskScheduledEventAttributes -> ActivityType
activityType :: ActivityType,
    -- | The unique ID of the activity task.
    ActivityTaskScheduledEventAttributes -> Text
activityId :: Prelude.Text,
    -- | The task list in which the activity task has been scheduled.
    ActivityTaskScheduledEventAttributes -> TaskList
taskList :: TaskList,
    -- | The ID of the @DecisionTaskCompleted@ event corresponding to the
    -- decision that resulted in the scheduling of this activity task. This
    -- information can be useful for diagnosing problems by tracing back the
    -- chain of events leading up to this event.
    ActivityTaskScheduledEventAttributes -> Integer
decisionTaskCompletedEventId :: Prelude.Integer
  }
  deriving (ActivityTaskScheduledEventAttributes
-> ActivityTaskScheduledEventAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActivityTaskScheduledEventAttributes
-> ActivityTaskScheduledEventAttributes -> Bool
$c/= :: ActivityTaskScheduledEventAttributes
-> ActivityTaskScheduledEventAttributes -> Bool
== :: ActivityTaskScheduledEventAttributes
-> ActivityTaskScheduledEventAttributes -> Bool
$c== :: ActivityTaskScheduledEventAttributes
-> ActivityTaskScheduledEventAttributes -> Bool
Prelude.Eq, ReadPrec [ActivityTaskScheduledEventAttributes]
ReadPrec ActivityTaskScheduledEventAttributes
Int -> ReadS ActivityTaskScheduledEventAttributes
ReadS [ActivityTaskScheduledEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActivityTaskScheduledEventAttributes]
$creadListPrec :: ReadPrec [ActivityTaskScheduledEventAttributes]
readPrec :: ReadPrec ActivityTaskScheduledEventAttributes
$creadPrec :: ReadPrec ActivityTaskScheduledEventAttributes
readList :: ReadS [ActivityTaskScheduledEventAttributes]
$creadList :: ReadS [ActivityTaskScheduledEventAttributes]
readsPrec :: Int -> ReadS ActivityTaskScheduledEventAttributes
$creadsPrec :: Int -> ReadS ActivityTaskScheduledEventAttributes
Prelude.Read, Int -> ActivityTaskScheduledEventAttributes -> ShowS
[ActivityTaskScheduledEventAttributes] -> ShowS
ActivityTaskScheduledEventAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActivityTaskScheduledEventAttributes] -> ShowS
$cshowList :: [ActivityTaskScheduledEventAttributes] -> ShowS
show :: ActivityTaskScheduledEventAttributes -> String
$cshow :: ActivityTaskScheduledEventAttributes -> String
showsPrec :: Int -> ActivityTaskScheduledEventAttributes -> ShowS
$cshowsPrec :: Int -> ActivityTaskScheduledEventAttributes -> ShowS
Prelude.Show, forall x.
Rep ActivityTaskScheduledEventAttributes x
-> ActivityTaskScheduledEventAttributes
forall x.
ActivityTaskScheduledEventAttributes
-> Rep ActivityTaskScheduledEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ActivityTaskScheduledEventAttributes x
-> ActivityTaskScheduledEventAttributes
$cfrom :: forall x.
ActivityTaskScheduledEventAttributes
-> Rep ActivityTaskScheduledEventAttributes x
Prelude.Generic)

-- |
-- Create a value of 'ActivityTaskScheduledEventAttributes' 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:
--
-- 'control', 'activityTaskScheduledEventAttributes_control' - Data attached to the event that can be used by the decider in subsequent
-- workflow tasks. This data isn\'t sent to the activity.
--
-- 'heartbeatTimeout', 'activityTaskScheduledEventAttributes_heartbeatTimeout' - The maximum time before which the worker processing this task must
-- report progress by calling RecordActivityTaskHeartbeat. If the timeout
-- is exceeded, the activity task is automatically timed out. If the worker
-- subsequently attempts to record a heartbeat or return a result, it is
-- ignored.
--
-- 'input', 'activityTaskScheduledEventAttributes_input' - The input provided to the activity task.
--
-- 'scheduleToCloseTimeout', 'activityTaskScheduledEventAttributes_scheduleToCloseTimeout' - The maximum amount of time for this activity task.
--
-- 'scheduleToStartTimeout', 'activityTaskScheduledEventAttributes_scheduleToStartTimeout' - The maximum amount of time the activity task can wait to be assigned to
-- a worker.
--
-- 'startToCloseTimeout', 'activityTaskScheduledEventAttributes_startToCloseTimeout' - The maximum amount of time a worker may take to process the activity
-- task.
--
-- 'taskPriority', 'activityTaskScheduledEventAttributes_taskPriority' - The priority to assign to the scheduled activity task. If set, this
-- overrides any default priority value that was assigned when the activity
-- type was registered.
--
-- 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/.
--
-- 'activityType', 'activityTaskScheduledEventAttributes_activityType' - The type of the activity task.
--
-- 'activityId', 'activityTaskScheduledEventAttributes_activityId' - The unique ID of the activity task.
--
-- 'taskList', 'activityTaskScheduledEventAttributes_taskList' - The task list in which the activity task has been scheduled.
--
-- 'decisionTaskCompletedEventId', 'activityTaskScheduledEventAttributes_decisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the
-- decision that resulted in the scheduling of this activity task. This
-- information can be useful for diagnosing problems by tracing back the
-- chain of events leading up to this event.
newActivityTaskScheduledEventAttributes ::
  -- | 'activityType'
  ActivityType ->
  -- | 'activityId'
  Prelude.Text ->
  -- | 'taskList'
  TaskList ->
  -- | 'decisionTaskCompletedEventId'
  Prelude.Integer ->
  ActivityTaskScheduledEventAttributes
newActivityTaskScheduledEventAttributes :: ActivityType
-> Text
-> TaskList
-> Integer
-> ActivityTaskScheduledEventAttributes
newActivityTaskScheduledEventAttributes
  ActivityType
pActivityType_
  Text
pActivityId_
  TaskList
pTaskList_
  Integer
pDecisionTaskCompletedEventId_ =
    ActivityTaskScheduledEventAttributes'
      { $sel:control:ActivityTaskScheduledEventAttributes' :: Maybe Text
control =
          forall a. Maybe a
Prelude.Nothing,
        $sel:heartbeatTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
heartbeatTimeout = forall a. Maybe a
Prelude.Nothing,
        $sel:input:ActivityTaskScheduledEventAttributes' :: Maybe Text
input = forall a. Maybe a
Prelude.Nothing,
        $sel:scheduleToCloseTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
scheduleToCloseTimeout =
          forall a. Maybe a
Prelude.Nothing,
        $sel:scheduleToStartTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
scheduleToStartTimeout =
          forall a. Maybe a
Prelude.Nothing,
        $sel:startToCloseTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
startToCloseTimeout = forall a. Maybe a
Prelude.Nothing,
        $sel:taskPriority:ActivityTaskScheduledEventAttributes' :: Maybe Text
taskPriority = forall a. Maybe a
Prelude.Nothing,
        $sel:activityType:ActivityTaskScheduledEventAttributes' :: ActivityType
activityType = ActivityType
pActivityType_,
        $sel:activityId:ActivityTaskScheduledEventAttributes' :: Text
activityId = Text
pActivityId_,
        $sel:taskList:ActivityTaskScheduledEventAttributes' :: TaskList
taskList = TaskList
pTaskList_,
        $sel:decisionTaskCompletedEventId:ActivityTaskScheduledEventAttributes' :: Integer
decisionTaskCompletedEventId =
          Integer
pDecisionTaskCompletedEventId_
      }

-- | Data attached to the event that can be used by the decider in subsequent
-- workflow tasks. This data isn\'t sent to the activity.
activityTaskScheduledEventAttributes_control :: Lens.Lens' ActivityTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
activityTaskScheduledEventAttributes_control :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
activityTaskScheduledEventAttributes_control = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Maybe Text
control :: Maybe Text
$sel:control:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
control} -> Maybe Text
control) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Maybe Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:control:ActivityTaskScheduledEventAttributes' :: Maybe Text
control = Maybe Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The maximum time before which the worker processing this task must
-- report progress by calling RecordActivityTaskHeartbeat. If the timeout
-- is exceeded, the activity task is automatically timed out. If the worker
-- subsequently attempts to record a heartbeat or return a result, it is
-- ignored.
activityTaskScheduledEventAttributes_heartbeatTimeout :: Lens.Lens' ActivityTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
activityTaskScheduledEventAttributes_heartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
activityTaskScheduledEventAttributes_heartbeatTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Maybe Text
heartbeatTimeout :: Maybe Text
$sel:heartbeatTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
heartbeatTimeout} -> Maybe Text
heartbeatTimeout) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Maybe Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:heartbeatTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
heartbeatTimeout = Maybe Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The input provided to the activity task.
activityTaskScheduledEventAttributes_input :: Lens.Lens' ActivityTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
activityTaskScheduledEventAttributes_input :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
activityTaskScheduledEventAttributes_input = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Maybe Text
input :: Maybe Text
$sel:input:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
input} -> Maybe Text
input) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Maybe Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:input:ActivityTaskScheduledEventAttributes' :: Maybe Text
input = Maybe Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The maximum amount of time for this activity task.
activityTaskScheduledEventAttributes_scheduleToCloseTimeout :: Lens.Lens' ActivityTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
activityTaskScheduledEventAttributes_scheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
activityTaskScheduledEventAttributes_scheduleToCloseTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Maybe Text
scheduleToCloseTimeout :: Maybe Text
$sel:scheduleToCloseTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
scheduleToCloseTimeout} -> Maybe Text
scheduleToCloseTimeout) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Maybe Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:scheduleToCloseTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
scheduleToCloseTimeout = Maybe Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The maximum amount of time the activity task can wait to be assigned to
-- a worker.
activityTaskScheduledEventAttributes_scheduleToStartTimeout :: Lens.Lens' ActivityTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
activityTaskScheduledEventAttributes_scheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
activityTaskScheduledEventAttributes_scheduleToStartTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Maybe Text
scheduleToStartTimeout :: Maybe Text
$sel:scheduleToStartTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
scheduleToStartTimeout} -> Maybe Text
scheduleToStartTimeout) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Maybe Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:scheduleToStartTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
scheduleToStartTimeout = Maybe Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The maximum amount of time a worker may take to process the activity
-- task.
activityTaskScheduledEventAttributes_startToCloseTimeout :: Lens.Lens' ActivityTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
activityTaskScheduledEventAttributes_startToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
activityTaskScheduledEventAttributes_startToCloseTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Maybe Text
startToCloseTimeout :: Maybe Text
$sel:startToCloseTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
startToCloseTimeout} -> Maybe Text
startToCloseTimeout) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Maybe Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:startToCloseTimeout:ActivityTaskScheduledEventAttributes' :: Maybe Text
startToCloseTimeout = Maybe Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The priority to assign to the scheduled activity task. If set, this
-- overrides any default priority value that was assigned when the activity
-- type was registered.
--
-- 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/.
activityTaskScheduledEventAttributes_taskPriority :: Lens.Lens' ActivityTaskScheduledEventAttributes (Prelude.Maybe Prelude.Text)
activityTaskScheduledEventAttributes_taskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)
activityTaskScheduledEventAttributes_taskPriority = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Maybe Text
taskPriority :: Maybe Text
$sel:taskPriority:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
taskPriority} -> Maybe Text
taskPriority) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Maybe Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:taskPriority:ActivityTaskScheduledEventAttributes' :: Maybe Text
taskPriority = Maybe Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The type of the activity task.
activityTaskScheduledEventAttributes_activityType :: Lens.Lens' ActivityTaskScheduledEventAttributes ActivityType
activityTaskScheduledEventAttributes_activityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType
activityTaskScheduledEventAttributes_activityType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {ActivityType
activityType :: ActivityType
$sel:activityType:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> ActivityType
activityType} -> ActivityType
activityType) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} ActivityType
a -> ActivityTaskScheduledEventAttributes
s {$sel:activityType:ActivityTaskScheduledEventAttributes' :: ActivityType
activityType = ActivityType
a} :: ActivityTaskScheduledEventAttributes)

-- | The unique ID of the activity task.
activityTaskScheduledEventAttributes_activityId :: Lens.Lens' ActivityTaskScheduledEventAttributes Prelude.Text
activityTaskScheduledEventAttributes_activityId :: Lens' ActivityTaskScheduledEventAttributes Text
activityTaskScheduledEventAttributes_activityId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Text
activityId :: Text
$sel:activityId:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Text
activityId} -> Text
activityId) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Text
a -> ActivityTaskScheduledEventAttributes
s {$sel:activityId:ActivityTaskScheduledEventAttributes' :: Text
activityId = Text
a} :: ActivityTaskScheduledEventAttributes)

-- | The task list in which the activity task has been scheduled.
activityTaskScheduledEventAttributes_taskList :: Lens.Lens' ActivityTaskScheduledEventAttributes TaskList
activityTaskScheduledEventAttributes_taskList :: Lens' ActivityTaskScheduledEventAttributes TaskList
activityTaskScheduledEventAttributes_taskList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {TaskList
taskList :: TaskList
$sel:taskList:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> TaskList
taskList} -> TaskList
taskList) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} TaskList
a -> ActivityTaskScheduledEventAttributes
s {$sel:taskList:ActivityTaskScheduledEventAttributes' :: TaskList
taskList = TaskList
a} :: ActivityTaskScheduledEventAttributes)

-- | The ID of the @DecisionTaskCompleted@ event corresponding to the
-- decision that resulted in the scheduling of this activity task. This
-- information can be useful for diagnosing problems by tracing back the
-- chain of events leading up to this event.
activityTaskScheduledEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' ActivityTaskScheduledEventAttributes Prelude.Integer
activityTaskScheduledEventAttributes_decisionTaskCompletedEventId :: Lens' ActivityTaskScheduledEventAttributes Integer
activityTaskScheduledEventAttributes_decisionTaskCompletedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTaskScheduledEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: ActivityTaskScheduledEventAttributes
s@ActivityTaskScheduledEventAttributes' {} Integer
a -> ActivityTaskScheduledEventAttributes
s {$sel:decisionTaskCompletedEventId:ActivityTaskScheduledEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: ActivityTaskScheduledEventAttributes)

instance
  Data.FromJSON
    ActivityTaskScheduledEventAttributes
  where
  parseJSON :: Value -> Parser ActivityTaskScheduledEventAttributes
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ActivityTaskScheduledEventAttributes"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ActivityType
-> Text
-> TaskList
-> Integer
-> ActivityTaskScheduledEventAttributes
ActivityTaskScheduledEventAttributes'
            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
"heartbeatTimeout")
            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
"input")
            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
"scheduleToCloseTimeout")
            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
"scheduleToStartTimeout")
            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
"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
"activityType")
            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
"activityId")
            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")
            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
    ActivityTaskScheduledEventAttributes
  where
  hashWithSalt :: Int -> ActivityTaskScheduledEventAttributes -> Int
hashWithSalt
    Int
_salt
    ActivityTaskScheduledEventAttributes' {Integer
Maybe Text
Text
ActivityType
TaskList
decisionTaskCompletedEventId :: Integer
taskList :: TaskList
activityId :: Text
activityType :: ActivityType
taskPriority :: Maybe Text
startToCloseTimeout :: Maybe Text
scheduleToStartTimeout :: Maybe Text
scheduleToCloseTimeout :: Maybe Text
input :: Maybe Text
heartbeatTimeout :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Integer
$sel:taskList:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> TaskList
$sel:activityId:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Text
$sel:activityType:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> ActivityType
$sel:taskPriority:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:startToCloseTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:scheduleToStartTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:scheduleToCloseTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:input:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:heartbeatTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:control:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> 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
heartbeatTimeout
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
input
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scheduleToCloseTimeout
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scheduleToStartTimeout
        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` ActivityType
activityType
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
activityId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` TaskList
taskList
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
decisionTaskCompletedEventId

instance
  Prelude.NFData
    ActivityTaskScheduledEventAttributes
  where
  rnf :: ActivityTaskScheduledEventAttributes -> ()
rnf ActivityTaskScheduledEventAttributes' {Integer
Maybe Text
Text
ActivityType
TaskList
decisionTaskCompletedEventId :: Integer
taskList :: TaskList
activityId :: Text
activityType :: ActivityType
taskPriority :: Maybe Text
startToCloseTimeout :: Maybe Text
scheduleToStartTimeout :: Maybe Text
scheduleToCloseTimeout :: Maybe Text
input :: Maybe Text
heartbeatTimeout :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Integer
$sel:taskList:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> TaskList
$sel:activityId:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Text
$sel:activityType:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> ActivityType
$sel:taskPriority:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:startToCloseTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:scheduleToStartTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:scheduleToCloseTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:input:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:heartbeatTimeout:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> Maybe Text
$sel:control:ActivityTaskScheduledEventAttributes' :: ActivityTaskScheduledEventAttributes -> 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
heartbeatTimeout
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
input
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scheduleToCloseTimeout
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scheduleToStartTimeout
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 ActivityType
activityType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
activityId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf TaskList
taskList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
decisionTaskCompletedEventId