{-# 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.MigrationHubOrchestrator.Types.WorkflowStepSummary
-- 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.MigrationHubOrchestrator.Types.WorkflowStepSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MigrationHubOrchestrator.Types.Owner
import Amazonka.MigrationHubOrchestrator.Types.StepActionType
import Amazonka.MigrationHubOrchestrator.Types.StepStatus
import qualified Amazonka.Prelude as Prelude

-- | The summary of the step in a migration workflow.
--
-- /See:/ 'newWorkflowStepSummary' smart constructor.
data WorkflowStepSummary = WorkflowStepSummary'
  { -- | The description of the step.
    WorkflowStepSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The name of the step.
    WorkflowStepSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The next step.
    WorkflowStepSummary -> Maybe [Text]
next :: Prelude.Maybe [Prelude.Text],
    -- | The number of servers that have been migrated.
    WorkflowStepSummary -> Maybe Int
noOfSrvCompleted :: Prelude.Maybe Prelude.Int,
    -- | The number of servers that have failed to migrate.
    WorkflowStepSummary -> Maybe Int
noOfSrvFailed :: Prelude.Maybe Prelude.Int,
    -- | The owner of the step.
    WorkflowStepSummary -> Maybe Owner
owner :: Prelude.Maybe Owner,
    -- | The previous step.
    WorkflowStepSummary -> Maybe [Text]
previous :: Prelude.Maybe [Prelude.Text],
    -- | The location of the script.
    WorkflowStepSummary -> Maybe Text
scriptLocation :: Prelude.Maybe Prelude.Text,
    -- | The status of the step.
    WorkflowStepSummary -> Maybe StepStatus
status :: Prelude.Maybe StepStatus,
    -- | The status message of the migration workflow.
    WorkflowStepSummary -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
    -- | The action type of the step. You must run and update the status of a
    -- manual step for the workflow to continue after the completion of the
    -- step.
    WorkflowStepSummary -> Maybe StepActionType
stepActionType :: Prelude.Maybe StepActionType,
    -- | The ID of the step.
    WorkflowStepSummary -> Maybe Text
stepId :: Prelude.Maybe Prelude.Text,
    -- | The total number of servers that have been migrated.
    WorkflowStepSummary -> Maybe Int
totalNoOfSrv :: Prelude.Maybe Prelude.Int
  }
  deriving (WorkflowStepSummary -> WorkflowStepSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkflowStepSummary -> WorkflowStepSummary -> Bool
$c/= :: WorkflowStepSummary -> WorkflowStepSummary -> Bool
== :: WorkflowStepSummary -> WorkflowStepSummary -> Bool
$c== :: WorkflowStepSummary -> WorkflowStepSummary -> Bool
Prelude.Eq, ReadPrec [WorkflowStepSummary]
ReadPrec WorkflowStepSummary
Int -> ReadS WorkflowStepSummary
ReadS [WorkflowStepSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkflowStepSummary]
$creadListPrec :: ReadPrec [WorkflowStepSummary]
readPrec :: ReadPrec WorkflowStepSummary
$creadPrec :: ReadPrec WorkflowStepSummary
readList :: ReadS [WorkflowStepSummary]
$creadList :: ReadS [WorkflowStepSummary]
readsPrec :: Int -> ReadS WorkflowStepSummary
$creadsPrec :: Int -> ReadS WorkflowStepSummary
Prelude.Read, Int -> WorkflowStepSummary -> ShowS
[WorkflowStepSummary] -> ShowS
WorkflowStepSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkflowStepSummary] -> ShowS
$cshowList :: [WorkflowStepSummary] -> ShowS
show :: WorkflowStepSummary -> String
$cshow :: WorkflowStepSummary -> String
showsPrec :: Int -> WorkflowStepSummary -> ShowS
$cshowsPrec :: Int -> WorkflowStepSummary -> ShowS
Prelude.Show, forall x. Rep WorkflowStepSummary x -> WorkflowStepSummary
forall x. WorkflowStepSummary -> Rep WorkflowStepSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WorkflowStepSummary x -> WorkflowStepSummary
$cfrom :: forall x. WorkflowStepSummary -> Rep WorkflowStepSummary x
Prelude.Generic)

-- |
-- Create a value of 'WorkflowStepSummary' 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:
--
-- 'description', 'workflowStepSummary_description' - The description of the step.
--
-- 'name', 'workflowStepSummary_name' - The name of the step.
--
-- 'next', 'workflowStepSummary_next' - The next step.
--
-- 'noOfSrvCompleted', 'workflowStepSummary_noOfSrvCompleted' - The number of servers that have been migrated.
--
-- 'noOfSrvFailed', 'workflowStepSummary_noOfSrvFailed' - The number of servers that have failed to migrate.
--
-- 'owner', 'workflowStepSummary_owner' - The owner of the step.
--
-- 'previous', 'workflowStepSummary_previous' - The previous step.
--
-- 'scriptLocation', 'workflowStepSummary_scriptLocation' - The location of the script.
--
-- 'status', 'workflowStepSummary_status' - The status of the step.
--
-- 'statusMessage', 'workflowStepSummary_statusMessage' - The status message of the migration workflow.
--
-- 'stepActionType', 'workflowStepSummary_stepActionType' - The action type of the step. You must run and update the status of a
-- manual step for the workflow to continue after the completion of the
-- step.
--
-- 'stepId', 'workflowStepSummary_stepId' - The ID of the step.
--
-- 'totalNoOfSrv', 'workflowStepSummary_totalNoOfSrv' - The total number of servers that have been migrated.
newWorkflowStepSummary ::
  WorkflowStepSummary
newWorkflowStepSummary :: WorkflowStepSummary
newWorkflowStepSummary =
  WorkflowStepSummary'
    { $sel:description:WorkflowStepSummary' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:name:WorkflowStepSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:next:WorkflowStepSummary' :: Maybe [Text]
next = forall a. Maybe a
Prelude.Nothing,
      $sel:noOfSrvCompleted:WorkflowStepSummary' :: Maybe Int
noOfSrvCompleted = forall a. Maybe a
Prelude.Nothing,
      $sel:noOfSrvFailed:WorkflowStepSummary' :: Maybe Int
noOfSrvFailed = forall a. Maybe a
Prelude.Nothing,
      $sel:owner:WorkflowStepSummary' :: Maybe Owner
owner = forall a. Maybe a
Prelude.Nothing,
      $sel:previous:WorkflowStepSummary' :: Maybe [Text]
previous = forall a. Maybe a
Prelude.Nothing,
      $sel:scriptLocation:WorkflowStepSummary' :: Maybe Text
scriptLocation = forall a. Maybe a
Prelude.Nothing,
      $sel:status:WorkflowStepSummary' :: Maybe StepStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:WorkflowStepSummary' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing,
      $sel:stepActionType:WorkflowStepSummary' :: Maybe StepActionType
stepActionType = forall a. Maybe a
Prelude.Nothing,
      $sel:stepId:WorkflowStepSummary' :: Maybe Text
stepId = forall a. Maybe a
Prelude.Nothing,
      $sel:totalNoOfSrv:WorkflowStepSummary' :: Maybe Int
totalNoOfSrv = forall a. Maybe a
Prelude.Nothing
    }

-- | The description of the step.
workflowStepSummary_description :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Text)
workflowStepSummary_description :: Lens' WorkflowStepSummary (Maybe Text)
workflowStepSummary_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Text
description :: Maybe Text
$sel:description:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Text
a -> WorkflowStepSummary
s {$sel:description:WorkflowStepSummary' :: Maybe Text
description = Maybe Text
a} :: WorkflowStepSummary)

-- | The name of the step.
workflowStepSummary_name :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Text)
workflowStepSummary_name :: Lens' WorkflowStepSummary (Maybe Text)
workflowStepSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Text
name :: Maybe Text
$sel:name:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Text
a -> WorkflowStepSummary
s {$sel:name:WorkflowStepSummary' :: Maybe Text
name = Maybe Text
a} :: WorkflowStepSummary)

-- | The next step.
workflowStepSummary_next :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe [Prelude.Text])
workflowStepSummary_next :: Lens' WorkflowStepSummary (Maybe [Text])
workflowStepSummary_next = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe [Text]
next :: Maybe [Text]
$sel:next:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe [Text]
next} -> Maybe [Text]
next) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe [Text]
a -> WorkflowStepSummary
s {$sel:next:WorkflowStepSummary' :: Maybe [Text]
next = Maybe [Text]
a} :: WorkflowStepSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The number of servers that have been migrated.
workflowStepSummary_noOfSrvCompleted :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Int)
workflowStepSummary_noOfSrvCompleted :: Lens' WorkflowStepSummary (Maybe Int)
workflowStepSummary_noOfSrvCompleted = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Int
noOfSrvCompleted :: Maybe Int
$sel:noOfSrvCompleted:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
noOfSrvCompleted} -> Maybe Int
noOfSrvCompleted) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Int
a -> WorkflowStepSummary
s {$sel:noOfSrvCompleted:WorkflowStepSummary' :: Maybe Int
noOfSrvCompleted = Maybe Int
a} :: WorkflowStepSummary)

-- | The number of servers that have failed to migrate.
workflowStepSummary_noOfSrvFailed :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Int)
workflowStepSummary_noOfSrvFailed :: Lens' WorkflowStepSummary (Maybe Int)
workflowStepSummary_noOfSrvFailed = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Int
noOfSrvFailed :: Maybe Int
$sel:noOfSrvFailed:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
noOfSrvFailed} -> Maybe Int
noOfSrvFailed) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Int
a -> WorkflowStepSummary
s {$sel:noOfSrvFailed:WorkflowStepSummary' :: Maybe Int
noOfSrvFailed = Maybe Int
a} :: WorkflowStepSummary)

-- | The owner of the step.
workflowStepSummary_owner :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Owner)
workflowStepSummary_owner :: Lens' WorkflowStepSummary (Maybe Owner)
workflowStepSummary_owner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Owner
owner :: Maybe Owner
$sel:owner:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Owner
owner} -> Maybe Owner
owner) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Owner
a -> WorkflowStepSummary
s {$sel:owner:WorkflowStepSummary' :: Maybe Owner
owner = Maybe Owner
a} :: WorkflowStepSummary)

-- | The previous step.
workflowStepSummary_previous :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe [Prelude.Text])
workflowStepSummary_previous :: Lens' WorkflowStepSummary (Maybe [Text])
workflowStepSummary_previous = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe [Text]
previous :: Maybe [Text]
$sel:previous:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe [Text]
previous} -> Maybe [Text]
previous) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe [Text]
a -> WorkflowStepSummary
s {$sel:previous:WorkflowStepSummary' :: Maybe [Text]
previous = Maybe [Text]
a} :: WorkflowStepSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The location of the script.
workflowStepSummary_scriptLocation :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Text)
workflowStepSummary_scriptLocation :: Lens' WorkflowStepSummary (Maybe Text)
workflowStepSummary_scriptLocation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Text
scriptLocation :: Maybe Text
$sel:scriptLocation:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
scriptLocation} -> Maybe Text
scriptLocation) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Text
a -> WorkflowStepSummary
s {$sel:scriptLocation:WorkflowStepSummary' :: Maybe Text
scriptLocation = Maybe Text
a} :: WorkflowStepSummary)

-- | The status of the step.
workflowStepSummary_status :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe StepStatus)
workflowStepSummary_status :: Lens' WorkflowStepSummary (Maybe StepStatus)
workflowStepSummary_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe StepStatus
status :: Maybe StepStatus
$sel:status:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe StepStatus
status} -> Maybe StepStatus
status) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe StepStatus
a -> WorkflowStepSummary
s {$sel:status:WorkflowStepSummary' :: Maybe StepStatus
status = Maybe StepStatus
a} :: WorkflowStepSummary)

-- | The status message of the migration workflow.
workflowStepSummary_statusMessage :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Text)
workflowStepSummary_statusMessage :: Lens' WorkflowStepSummary (Maybe Text)
workflowStepSummary_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Text
a -> WorkflowStepSummary
s {$sel:statusMessage:WorkflowStepSummary' :: Maybe Text
statusMessage = Maybe Text
a} :: WorkflowStepSummary)

-- | The action type of the step. You must run and update the status of a
-- manual step for the workflow to continue after the completion of the
-- step.
workflowStepSummary_stepActionType :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe StepActionType)
workflowStepSummary_stepActionType :: Lens' WorkflowStepSummary (Maybe StepActionType)
workflowStepSummary_stepActionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe StepActionType
stepActionType :: Maybe StepActionType
$sel:stepActionType:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe StepActionType
stepActionType} -> Maybe StepActionType
stepActionType) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe StepActionType
a -> WorkflowStepSummary
s {$sel:stepActionType:WorkflowStepSummary' :: Maybe StepActionType
stepActionType = Maybe StepActionType
a} :: WorkflowStepSummary)

-- | The ID of the step.
workflowStepSummary_stepId :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Text)
workflowStepSummary_stepId :: Lens' WorkflowStepSummary (Maybe Text)
workflowStepSummary_stepId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Text
stepId :: Maybe Text
$sel:stepId:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
stepId} -> Maybe Text
stepId) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Text
a -> WorkflowStepSummary
s {$sel:stepId:WorkflowStepSummary' :: Maybe Text
stepId = Maybe Text
a} :: WorkflowStepSummary)

-- | The total number of servers that have been migrated.
workflowStepSummary_totalNoOfSrv :: Lens.Lens' WorkflowStepSummary (Prelude.Maybe Prelude.Int)
workflowStepSummary_totalNoOfSrv :: Lens' WorkflowStepSummary (Maybe Int)
workflowStepSummary_totalNoOfSrv = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowStepSummary' {Maybe Int
totalNoOfSrv :: Maybe Int
$sel:totalNoOfSrv:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
totalNoOfSrv} -> Maybe Int
totalNoOfSrv) (\s :: WorkflowStepSummary
s@WorkflowStepSummary' {} Maybe Int
a -> WorkflowStepSummary
s {$sel:totalNoOfSrv:WorkflowStepSummary' :: Maybe Int
totalNoOfSrv = Maybe Int
a} :: WorkflowStepSummary)

instance Data.FromJSON WorkflowStepSummary where
  parseJSON :: Value -> Parser WorkflowStepSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"WorkflowStepSummary"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Int
-> Maybe Owner
-> Maybe [Text]
-> Maybe Text
-> Maybe StepStatus
-> Maybe Text
-> Maybe StepActionType
-> Maybe Text
-> Maybe Int
-> WorkflowStepSummary
WorkflowStepSummary'
            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
"description")
            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
"name")
            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
"next" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            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
"noOfSrvCompleted")
            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
"noOfSrvFailed")
            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
"owner")
            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
"previous" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            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
"scriptLocation")
            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
"status")
            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
"statusMessage")
            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
"stepActionType")
            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
"stepId")
            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
"totalNoOfSrv")
      )

instance Prelude.Hashable WorkflowStepSummary where
  hashWithSalt :: Int -> WorkflowStepSummary -> Int
hashWithSalt Int
_salt WorkflowStepSummary' {Maybe Int
Maybe [Text]
Maybe Text
Maybe Owner
Maybe StepActionType
Maybe StepStatus
totalNoOfSrv :: Maybe Int
stepId :: Maybe Text
stepActionType :: Maybe StepActionType
statusMessage :: Maybe Text
status :: Maybe StepStatus
scriptLocation :: Maybe Text
previous :: Maybe [Text]
owner :: Maybe Owner
noOfSrvFailed :: Maybe Int
noOfSrvCompleted :: Maybe Int
next :: Maybe [Text]
name :: Maybe Text
description :: Maybe Text
$sel:totalNoOfSrv:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
$sel:stepId:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:stepActionType:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe StepActionType
$sel:statusMessage:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:status:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe StepStatus
$sel:scriptLocation:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:previous:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe [Text]
$sel:owner:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Owner
$sel:noOfSrvFailed:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
$sel:noOfSrvCompleted:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
$sel:next:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe [Text]
$sel:name:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:description:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
next
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
noOfSrvCompleted
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
noOfSrvFailed
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Owner
owner
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
previous
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scriptLocation
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StepStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusMessage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StepActionType
stepActionType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
stepId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
totalNoOfSrv

instance Prelude.NFData WorkflowStepSummary where
  rnf :: WorkflowStepSummary -> ()
rnf WorkflowStepSummary' {Maybe Int
Maybe [Text]
Maybe Text
Maybe Owner
Maybe StepActionType
Maybe StepStatus
totalNoOfSrv :: Maybe Int
stepId :: Maybe Text
stepActionType :: Maybe StepActionType
statusMessage :: Maybe Text
status :: Maybe StepStatus
scriptLocation :: Maybe Text
previous :: Maybe [Text]
owner :: Maybe Owner
noOfSrvFailed :: Maybe Int
noOfSrvCompleted :: Maybe Int
next :: Maybe [Text]
name :: Maybe Text
description :: Maybe Text
$sel:totalNoOfSrv:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
$sel:stepId:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:stepActionType:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe StepActionType
$sel:statusMessage:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:status:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe StepStatus
$sel:scriptLocation:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:previous:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe [Text]
$sel:owner:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Owner
$sel:noOfSrvFailed:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
$sel:noOfSrvCompleted:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Int
$sel:next:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe [Text]
$sel:name:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
$sel:description:WorkflowStepSummary' :: WorkflowStepSummary -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
next
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
noOfSrvCompleted
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
noOfSrvFailed
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Owner
owner
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
previous
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scriptLocation
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StepStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StepActionType
stepActionType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
stepId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
totalNoOfSrv