{-# 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.ElasticSearch.Types.ChangeProgressStatusDetails
-- 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.ElasticSearch.Types.ChangeProgressStatusDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ElasticSearch.Types.ChangeProgressStage
import Amazonka.ElasticSearch.Types.OverallChangeStatus
import qualified Amazonka.Prelude as Prelude

-- | The progress details of a specific domain configuration change.
--
-- /See:/ 'newChangeProgressStatusDetails' smart constructor.
data ChangeProgressStatusDetails = ChangeProgressStatusDetails'
  { -- | The unique change identifier associated with a specific domain
    -- configuration change.
    ChangeProgressStatusDetails -> Maybe Text
changeId :: Prelude.Maybe Prelude.Text,
    -- | The specific stages that the domain is going through to perform the
    -- configuration change.
    ChangeProgressStatusDetails -> Maybe [ChangeProgressStage]
changeProgressStages :: Prelude.Maybe [ChangeProgressStage],
    -- | The list of properties involved in the domain configuration change that
    -- are completed.
    ChangeProgressStatusDetails -> Maybe [Text]
completedProperties :: Prelude.Maybe [Prelude.Text],
    -- | The list of properties involved in the domain configuration change that
    -- are still in pending.
    ChangeProgressStatusDetails -> Maybe [Text]
pendingProperties :: Prelude.Maybe [Prelude.Text],
    -- | The time at which the configuration change is made on the domain.
    ChangeProgressStatusDetails -> Maybe POSIX
startTime :: Prelude.Maybe Data.POSIX,
    -- | The overall status of the domain configuration change. This field can
    -- take the following values: @PENDING@, @PROCESSING@, @COMPLETED@ and
    -- @FAILED@
    ChangeProgressStatusDetails -> Maybe OverallChangeStatus
status :: Prelude.Maybe OverallChangeStatus,
    -- | The total number of stages required for the configuration change.
    ChangeProgressStatusDetails -> Maybe Int
totalNumberOfStages :: Prelude.Maybe Prelude.Int
  }
  deriving (ChangeProgressStatusDetails -> ChangeProgressStatusDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChangeProgressStatusDetails -> ChangeProgressStatusDetails -> Bool
$c/= :: ChangeProgressStatusDetails -> ChangeProgressStatusDetails -> Bool
== :: ChangeProgressStatusDetails -> ChangeProgressStatusDetails -> Bool
$c== :: ChangeProgressStatusDetails -> ChangeProgressStatusDetails -> Bool
Prelude.Eq, ReadPrec [ChangeProgressStatusDetails]
ReadPrec ChangeProgressStatusDetails
Int -> ReadS ChangeProgressStatusDetails
ReadS [ChangeProgressStatusDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChangeProgressStatusDetails]
$creadListPrec :: ReadPrec [ChangeProgressStatusDetails]
readPrec :: ReadPrec ChangeProgressStatusDetails
$creadPrec :: ReadPrec ChangeProgressStatusDetails
readList :: ReadS [ChangeProgressStatusDetails]
$creadList :: ReadS [ChangeProgressStatusDetails]
readsPrec :: Int -> ReadS ChangeProgressStatusDetails
$creadsPrec :: Int -> ReadS ChangeProgressStatusDetails
Prelude.Read, Int -> ChangeProgressStatusDetails -> ShowS
[ChangeProgressStatusDetails] -> ShowS
ChangeProgressStatusDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChangeProgressStatusDetails] -> ShowS
$cshowList :: [ChangeProgressStatusDetails] -> ShowS
show :: ChangeProgressStatusDetails -> String
$cshow :: ChangeProgressStatusDetails -> String
showsPrec :: Int -> ChangeProgressStatusDetails -> ShowS
$cshowsPrec :: Int -> ChangeProgressStatusDetails -> ShowS
Prelude.Show, forall x.
Rep ChangeProgressStatusDetails x -> ChangeProgressStatusDetails
forall x.
ChangeProgressStatusDetails -> Rep ChangeProgressStatusDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChangeProgressStatusDetails x -> ChangeProgressStatusDetails
$cfrom :: forall x.
ChangeProgressStatusDetails -> Rep ChangeProgressStatusDetails x
Prelude.Generic)

-- |
-- Create a value of 'ChangeProgressStatusDetails' 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:
--
-- 'changeId', 'changeProgressStatusDetails_changeId' - The unique change identifier associated with a specific domain
-- configuration change.
--
-- 'changeProgressStages', 'changeProgressStatusDetails_changeProgressStages' - The specific stages that the domain is going through to perform the
-- configuration change.
--
-- 'completedProperties', 'changeProgressStatusDetails_completedProperties' - The list of properties involved in the domain configuration change that
-- are completed.
--
-- 'pendingProperties', 'changeProgressStatusDetails_pendingProperties' - The list of properties involved in the domain configuration change that
-- are still in pending.
--
-- 'startTime', 'changeProgressStatusDetails_startTime' - The time at which the configuration change is made on the domain.
--
-- 'status', 'changeProgressStatusDetails_status' - The overall status of the domain configuration change. This field can
-- take the following values: @PENDING@, @PROCESSING@, @COMPLETED@ and
-- @FAILED@
--
-- 'totalNumberOfStages', 'changeProgressStatusDetails_totalNumberOfStages' - The total number of stages required for the configuration change.
newChangeProgressStatusDetails ::
  ChangeProgressStatusDetails
newChangeProgressStatusDetails :: ChangeProgressStatusDetails
newChangeProgressStatusDetails =
  ChangeProgressStatusDetails'
    { $sel:changeId:ChangeProgressStatusDetails' :: Maybe Text
changeId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:changeProgressStages:ChangeProgressStatusDetails' :: Maybe [ChangeProgressStage]
changeProgressStages = forall a. Maybe a
Prelude.Nothing,
      $sel:completedProperties:ChangeProgressStatusDetails' :: Maybe [Text]
completedProperties = forall a. Maybe a
Prelude.Nothing,
      $sel:pendingProperties:ChangeProgressStatusDetails' :: Maybe [Text]
pendingProperties = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:ChangeProgressStatusDetails' :: Maybe POSIX
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ChangeProgressStatusDetails' :: Maybe OverallChangeStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:totalNumberOfStages:ChangeProgressStatusDetails' :: Maybe Int
totalNumberOfStages = forall a. Maybe a
Prelude.Nothing
    }

-- | The unique change identifier associated with a specific domain
-- configuration change.
changeProgressStatusDetails_changeId :: Lens.Lens' ChangeProgressStatusDetails (Prelude.Maybe Prelude.Text)
changeProgressStatusDetails_changeId :: Lens' ChangeProgressStatusDetails (Maybe Text)
changeProgressStatusDetails_changeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeProgressStatusDetails' {Maybe Text
changeId :: Maybe Text
$sel:changeId:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe Text
changeId} -> Maybe Text
changeId) (\s :: ChangeProgressStatusDetails
s@ChangeProgressStatusDetails' {} Maybe Text
a -> ChangeProgressStatusDetails
s {$sel:changeId:ChangeProgressStatusDetails' :: Maybe Text
changeId = Maybe Text
a} :: ChangeProgressStatusDetails)

-- | The specific stages that the domain is going through to perform the
-- configuration change.
changeProgressStatusDetails_changeProgressStages :: Lens.Lens' ChangeProgressStatusDetails (Prelude.Maybe [ChangeProgressStage])
changeProgressStatusDetails_changeProgressStages :: Lens' ChangeProgressStatusDetails (Maybe [ChangeProgressStage])
changeProgressStatusDetails_changeProgressStages = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeProgressStatusDetails' {Maybe [ChangeProgressStage]
changeProgressStages :: Maybe [ChangeProgressStage]
$sel:changeProgressStages:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [ChangeProgressStage]
changeProgressStages} -> Maybe [ChangeProgressStage]
changeProgressStages) (\s :: ChangeProgressStatusDetails
s@ChangeProgressStatusDetails' {} Maybe [ChangeProgressStage]
a -> ChangeProgressStatusDetails
s {$sel:changeProgressStages:ChangeProgressStatusDetails' :: Maybe [ChangeProgressStage]
changeProgressStages = Maybe [ChangeProgressStage]
a} :: ChangeProgressStatusDetails) 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 list of properties involved in the domain configuration change that
-- are completed.
changeProgressStatusDetails_completedProperties :: Lens.Lens' ChangeProgressStatusDetails (Prelude.Maybe [Prelude.Text])
changeProgressStatusDetails_completedProperties :: Lens' ChangeProgressStatusDetails (Maybe [Text])
changeProgressStatusDetails_completedProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeProgressStatusDetails' {Maybe [Text]
completedProperties :: Maybe [Text]
$sel:completedProperties:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [Text]
completedProperties} -> Maybe [Text]
completedProperties) (\s :: ChangeProgressStatusDetails
s@ChangeProgressStatusDetails' {} Maybe [Text]
a -> ChangeProgressStatusDetails
s {$sel:completedProperties:ChangeProgressStatusDetails' :: Maybe [Text]
completedProperties = Maybe [Text]
a} :: ChangeProgressStatusDetails) 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 list of properties involved in the domain configuration change that
-- are still in pending.
changeProgressStatusDetails_pendingProperties :: Lens.Lens' ChangeProgressStatusDetails (Prelude.Maybe [Prelude.Text])
changeProgressStatusDetails_pendingProperties :: Lens' ChangeProgressStatusDetails (Maybe [Text])
changeProgressStatusDetails_pendingProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeProgressStatusDetails' {Maybe [Text]
pendingProperties :: Maybe [Text]
$sel:pendingProperties:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [Text]
pendingProperties} -> Maybe [Text]
pendingProperties) (\s :: ChangeProgressStatusDetails
s@ChangeProgressStatusDetails' {} Maybe [Text]
a -> ChangeProgressStatusDetails
s {$sel:pendingProperties:ChangeProgressStatusDetails' :: Maybe [Text]
pendingProperties = Maybe [Text]
a} :: ChangeProgressStatusDetails) 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 time at which the configuration change is made on the domain.
changeProgressStatusDetails_startTime :: Lens.Lens' ChangeProgressStatusDetails (Prelude.Maybe Prelude.UTCTime)
changeProgressStatusDetails_startTime :: Lens' ChangeProgressStatusDetails (Maybe UTCTime)
changeProgressStatusDetails_startTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeProgressStatusDetails' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: ChangeProgressStatusDetails
s@ChangeProgressStatusDetails' {} Maybe POSIX
a -> ChangeProgressStatusDetails
s {$sel:startTime:ChangeProgressStatusDetails' :: Maybe POSIX
startTime = Maybe POSIX
a} :: ChangeProgressStatusDetails) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The overall status of the domain configuration change. This field can
-- take the following values: @PENDING@, @PROCESSING@, @COMPLETED@ and
-- @FAILED@
changeProgressStatusDetails_status :: Lens.Lens' ChangeProgressStatusDetails (Prelude.Maybe OverallChangeStatus)
changeProgressStatusDetails_status :: Lens' ChangeProgressStatusDetails (Maybe OverallChangeStatus)
changeProgressStatusDetails_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeProgressStatusDetails' {Maybe OverallChangeStatus
status :: Maybe OverallChangeStatus
$sel:status:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe OverallChangeStatus
status} -> Maybe OverallChangeStatus
status) (\s :: ChangeProgressStatusDetails
s@ChangeProgressStatusDetails' {} Maybe OverallChangeStatus
a -> ChangeProgressStatusDetails
s {$sel:status:ChangeProgressStatusDetails' :: Maybe OverallChangeStatus
status = Maybe OverallChangeStatus
a} :: ChangeProgressStatusDetails)

-- | The total number of stages required for the configuration change.
changeProgressStatusDetails_totalNumberOfStages :: Lens.Lens' ChangeProgressStatusDetails (Prelude.Maybe Prelude.Int)
changeProgressStatusDetails_totalNumberOfStages :: Lens' ChangeProgressStatusDetails (Maybe Int)
changeProgressStatusDetails_totalNumberOfStages = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeProgressStatusDetails' {Maybe Int
totalNumberOfStages :: Maybe Int
$sel:totalNumberOfStages:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe Int
totalNumberOfStages} -> Maybe Int
totalNumberOfStages) (\s :: ChangeProgressStatusDetails
s@ChangeProgressStatusDetails' {} Maybe Int
a -> ChangeProgressStatusDetails
s {$sel:totalNumberOfStages:ChangeProgressStatusDetails' :: Maybe Int
totalNumberOfStages = Maybe Int
a} :: ChangeProgressStatusDetails)

instance Data.FromJSON ChangeProgressStatusDetails where
  parseJSON :: Value -> Parser ChangeProgressStatusDetails
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ChangeProgressStatusDetails"
      ( \Object
x ->
          Maybe Text
-> Maybe [ChangeProgressStage]
-> Maybe [Text]
-> Maybe [Text]
-> Maybe POSIX
-> Maybe OverallChangeStatus
-> Maybe Int
-> ChangeProgressStatusDetails
ChangeProgressStatusDetails'
            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
"ChangeId")
            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
"ChangeProgressStages"
                            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
"CompletedProperties"
                            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
"PendingProperties"
                            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
"StartTime")
            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
"TotalNumberOfStages")
      )

instance Prelude.Hashable ChangeProgressStatusDetails where
  hashWithSalt :: Int -> ChangeProgressStatusDetails -> Int
hashWithSalt Int
_salt ChangeProgressStatusDetails' {Maybe Int
Maybe [Text]
Maybe [ChangeProgressStage]
Maybe Text
Maybe POSIX
Maybe OverallChangeStatus
totalNumberOfStages :: Maybe Int
status :: Maybe OverallChangeStatus
startTime :: Maybe POSIX
pendingProperties :: Maybe [Text]
completedProperties :: Maybe [Text]
changeProgressStages :: Maybe [ChangeProgressStage]
changeId :: Maybe Text
$sel:totalNumberOfStages:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe Int
$sel:status:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe OverallChangeStatus
$sel:startTime:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe POSIX
$sel:pendingProperties:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [Text]
$sel:completedProperties:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [Text]
$sel:changeProgressStages:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [ChangeProgressStage]
$sel:changeId:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
changeId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ChangeProgressStage]
changeProgressStages
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
completedProperties
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
pendingProperties
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
startTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OverallChangeStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
totalNumberOfStages

instance Prelude.NFData ChangeProgressStatusDetails where
  rnf :: ChangeProgressStatusDetails -> ()
rnf ChangeProgressStatusDetails' {Maybe Int
Maybe [Text]
Maybe [ChangeProgressStage]
Maybe Text
Maybe POSIX
Maybe OverallChangeStatus
totalNumberOfStages :: Maybe Int
status :: Maybe OverallChangeStatus
startTime :: Maybe POSIX
pendingProperties :: Maybe [Text]
completedProperties :: Maybe [Text]
changeProgressStages :: Maybe [ChangeProgressStage]
changeId :: Maybe Text
$sel:totalNumberOfStages:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe Int
$sel:status:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe OverallChangeStatus
$sel:startTime:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe POSIX
$sel:pendingProperties:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [Text]
$sel:completedProperties:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [Text]
$sel:changeProgressStages:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe [ChangeProgressStage]
$sel:changeId:ChangeProgressStatusDetails' :: ChangeProgressStatusDetails -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
changeId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ChangeProgressStage]
changeProgressStages
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
completedProperties
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
pendingProperties
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
startTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OverallChangeStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
totalNumberOfStages