{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.ListWorkflowSteps
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- List the steps in a workflow.
--
-- This operation returns paginated results.
module Amazonka.MigrationHubOrchestrator.ListWorkflowSteps
  ( -- * Creating a Request
    ListWorkflowSteps (..),
    newListWorkflowSteps,

    -- * Request Lenses
    listWorkflowSteps_maxResults,
    listWorkflowSteps_nextToken,
    listWorkflowSteps_workflowId,
    listWorkflowSteps_stepGroupId,

    -- * Destructuring the Response
    ListWorkflowStepsResponse (..),
    newListWorkflowStepsResponse,

    -- * Response Lenses
    listWorkflowStepsResponse_nextToken,
    listWorkflowStepsResponse_httpStatus,
    listWorkflowStepsResponse_workflowStepsSummary,
  )
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
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListWorkflowSteps' smart constructor.
data ListWorkflowSteps = ListWorkflowSteps'
  { -- | The maximum number of results that can be returned.
    ListWorkflowSteps -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The pagination token.
    ListWorkflowSteps -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The ID of the migration workflow.
    ListWorkflowSteps -> Text
workflowId :: Prelude.Text,
    -- | The ID of the step group.
    ListWorkflowSteps -> Text
stepGroupId :: Prelude.Text
  }
  deriving (ListWorkflowSteps -> ListWorkflowSteps -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorkflowSteps -> ListWorkflowSteps -> Bool
$c/= :: ListWorkflowSteps -> ListWorkflowSteps -> Bool
== :: ListWorkflowSteps -> ListWorkflowSteps -> Bool
$c== :: ListWorkflowSteps -> ListWorkflowSteps -> Bool
Prelude.Eq, ReadPrec [ListWorkflowSteps]
ReadPrec ListWorkflowSteps
Int -> ReadS ListWorkflowSteps
ReadS [ListWorkflowSteps]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorkflowSteps]
$creadListPrec :: ReadPrec [ListWorkflowSteps]
readPrec :: ReadPrec ListWorkflowSteps
$creadPrec :: ReadPrec ListWorkflowSteps
readList :: ReadS [ListWorkflowSteps]
$creadList :: ReadS [ListWorkflowSteps]
readsPrec :: Int -> ReadS ListWorkflowSteps
$creadsPrec :: Int -> ReadS ListWorkflowSteps
Prelude.Read, Int -> ListWorkflowSteps -> ShowS
[ListWorkflowSteps] -> ShowS
ListWorkflowSteps -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorkflowSteps] -> ShowS
$cshowList :: [ListWorkflowSteps] -> ShowS
show :: ListWorkflowSteps -> String
$cshow :: ListWorkflowSteps -> String
showsPrec :: Int -> ListWorkflowSteps -> ShowS
$cshowsPrec :: Int -> ListWorkflowSteps -> ShowS
Prelude.Show, forall x. Rep ListWorkflowSteps x -> ListWorkflowSteps
forall x. ListWorkflowSteps -> Rep ListWorkflowSteps x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListWorkflowSteps x -> ListWorkflowSteps
$cfrom :: forall x. ListWorkflowSteps -> Rep ListWorkflowSteps x
Prelude.Generic)

-- |
-- Create a value of 'ListWorkflowSteps' 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:
--
-- 'maxResults', 'listWorkflowSteps_maxResults' - The maximum number of results that can be returned.
--
-- 'nextToken', 'listWorkflowSteps_nextToken' - The pagination token.
--
-- 'workflowId', 'listWorkflowSteps_workflowId' - The ID of the migration workflow.
--
-- 'stepGroupId', 'listWorkflowSteps_stepGroupId' - The ID of the step group.
newListWorkflowSteps ::
  -- | 'workflowId'
  Prelude.Text ->
  -- | 'stepGroupId'
  Prelude.Text ->
  ListWorkflowSteps
newListWorkflowSteps :: Text -> Text -> ListWorkflowSteps
newListWorkflowSteps Text
pWorkflowId_ Text
pStepGroupId_ =
  ListWorkflowSteps'
    { $sel:maxResults:ListWorkflowSteps' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListWorkflowSteps' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:workflowId:ListWorkflowSteps' :: Text
workflowId = Text
pWorkflowId_,
      $sel:stepGroupId:ListWorkflowSteps' :: Text
stepGroupId = Text
pStepGroupId_
    }

-- | The maximum number of results that can be returned.
listWorkflowSteps_maxResults :: Lens.Lens' ListWorkflowSteps (Prelude.Maybe Prelude.Natural)
listWorkflowSteps_maxResults :: Lens' ListWorkflowSteps (Maybe Natural)
listWorkflowSteps_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowSteps' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListWorkflowSteps
s@ListWorkflowSteps' {} Maybe Natural
a -> ListWorkflowSteps
s {$sel:maxResults:ListWorkflowSteps' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListWorkflowSteps)

-- | The pagination token.
listWorkflowSteps_nextToken :: Lens.Lens' ListWorkflowSteps (Prelude.Maybe Prelude.Text)
listWorkflowSteps_nextToken :: Lens' ListWorkflowSteps (Maybe Text)
listWorkflowSteps_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowSteps' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorkflowSteps
s@ListWorkflowSteps' {} Maybe Text
a -> ListWorkflowSteps
s {$sel:nextToken:ListWorkflowSteps' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorkflowSteps)

-- | The ID of the migration workflow.
listWorkflowSteps_workflowId :: Lens.Lens' ListWorkflowSteps Prelude.Text
listWorkflowSteps_workflowId :: Lens' ListWorkflowSteps Text
listWorkflowSteps_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowSteps' {Text
workflowId :: Text
$sel:workflowId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
workflowId} -> Text
workflowId) (\s :: ListWorkflowSteps
s@ListWorkflowSteps' {} Text
a -> ListWorkflowSteps
s {$sel:workflowId:ListWorkflowSteps' :: Text
workflowId = Text
a} :: ListWorkflowSteps)

-- | The ID of the step group.
listWorkflowSteps_stepGroupId :: Lens.Lens' ListWorkflowSteps Prelude.Text
listWorkflowSteps_stepGroupId :: Lens' ListWorkflowSteps Text
listWorkflowSteps_stepGroupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowSteps' {Text
stepGroupId :: Text
$sel:stepGroupId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
stepGroupId} -> Text
stepGroupId) (\s :: ListWorkflowSteps
s@ListWorkflowSteps' {} Text
a -> ListWorkflowSteps
s {$sel:stepGroupId:ListWorkflowSteps' :: Text
stepGroupId = Text
a} :: ListWorkflowSteps)

instance Core.AWSPager ListWorkflowSteps where
  page :: ListWorkflowSteps
-> AWSResponse ListWorkflowSteps -> Maybe ListWorkflowSteps
page ListWorkflowSteps
rq AWSResponse ListWorkflowSteps
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListWorkflowSteps
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListWorkflowStepsResponse (Maybe Text)
listWorkflowStepsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListWorkflowSteps
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListWorkflowStepsResponse [WorkflowStepSummary]
listWorkflowStepsResponse_workflowStepsSummary
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListWorkflowSteps
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListWorkflowSteps (Maybe Text)
listWorkflowSteps_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListWorkflowSteps
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListWorkflowStepsResponse (Maybe Text)
listWorkflowStepsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListWorkflowSteps where
  type
    AWSResponse ListWorkflowSteps =
      ListWorkflowStepsResponse
  request :: (Service -> Service)
-> ListWorkflowSteps -> Request ListWorkflowSteps
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListWorkflowSteps
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListWorkflowSteps)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Int -> [WorkflowStepSummary] -> ListWorkflowStepsResponse
ListWorkflowStepsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"workflowStepsSummary"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListWorkflowSteps where
  hashWithSalt :: Int -> ListWorkflowSteps -> Int
hashWithSalt Int
_salt ListWorkflowSteps' {Maybe Natural
Maybe Text
Text
stepGroupId :: Text
workflowId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:stepGroupId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:workflowId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:nextToken:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Text
$sel:maxResults:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
workflowId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
stepGroupId

instance Prelude.NFData ListWorkflowSteps where
  rnf :: ListWorkflowSteps -> ()
rnf ListWorkflowSteps' {Maybe Natural
Maybe Text
Text
stepGroupId :: Text
workflowId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:stepGroupId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:workflowId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:nextToken:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Text
$sel:maxResults:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
workflowId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
stepGroupId

instance Data.ToHeaders ListWorkflowSteps where
  toHeaders :: ListWorkflowSteps -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath ListWorkflowSteps where
  toPath :: ListWorkflowSteps -> ByteString
toPath ListWorkflowSteps' {Maybe Natural
Maybe Text
Text
stepGroupId :: Text
workflowId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:stepGroupId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:workflowId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:nextToken:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Text
$sel:maxResults:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/workflow/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
workflowId,
        ByteString
"/workflowstepgroups/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
stepGroupId,
        ByteString
"/workflowsteps"
      ]

instance Data.ToQuery ListWorkflowSteps where
  toQuery :: ListWorkflowSteps -> QueryString
toQuery ListWorkflowSteps' {Maybe Natural
Maybe Text
Text
stepGroupId :: Text
workflowId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:stepGroupId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:workflowId:ListWorkflowSteps' :: ListWorkflowSteps -> Text
$sel:nextToken:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Text
$sel:maxResults:ListWorkflowSteps' :: ListWorkflowSteps -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListWorkflowStepsResponse' smart constructor.
data ListWorkflowStepsResponse = ListWorkflowStepsResponse'
  { -- | The pagination token.
    ListWorkflowStepsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListWorkflowStepsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The summary of steps in a migration workflow.
    ListWorkflowStepsResponse -> [WorkflowStepSummary]
workflowStepsSummary :: [WorkflowStepSummary]
  }
  deriving (ListWorkflowStepsResponse -> ListWorkflowStepsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorkflowStepsResponse -> ListWorkflowStepsResponse -> Bool
$c/= :: ListWorkflowStepsResponse -> ListWorkflowStepsResponse -> Bool
== :: ListWorkflowStepsResponse -> ListWorkflowStepsResponse -> Bool
$c== :: ListWorkflowStepsResponse -> ListWorkflowStepsResponse -> Bool
Prelude.Eq, ReadPrec [ListWorkflowStepsResponse]
ReadPrec ListWorkflowStepsResponse
Int -> ReadS ListWorkflowStepsResponse
ReadS [ListWorkflowStepsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorkflowStepsResponse]
$creadListPrec :: ReadPrec [ListWorkflowStepsResponse]
readPrec :: ReadPrec ListWorkflowStepsResponse
$creadPrec :: ReadPrec ListWorkflowStepsResponse
readList :: ReadS [ListWorkflowStepsResponse]
$creadList :: ReadS [ListWorkflowStepsResponse]
readsPrec :: Int -> ReadS ListWorkflowStepsResponse
$creadsPrec :: Int -> ReadS ListWorkflowStepsResponse
Prelude.Read, Int -> ListWorkflowStepsResponse -> ShowS
[ListWorkflowStepsResponse] -> ShowS
ListWorkflowStepsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorkflowStepsResponse] -> ShowS
$cshowList :: [ListWorkflowStepsResponse] -> ShowS
show :: ListWorkflowStepsResponse -> String
$cshow :: ListWorkflowStepsResponse -> String
showsPrec :: Int -> ListWorkflowStepsResponse -> ShowS
$cshowsPrec :: Int -> ListWorkflowStepsResponse -> ShowS
Prelude.Show, forall x.
Rep ListWorkflowStepsResponse x -> ListWorkflowStepsResponse
forall x.
ListWorkflowStepsResponse -> Rep ListWorkflowStepsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListWorkflowStepsResponse x -> ListWorkflowStepsResponse
$cfrom :: forall x.
ListWorkflowStepsResponse -> Rep ListWorkflowStepsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListWorkflowStepsResponse' 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:
--
-- 'nextToken', 'listWorkflowStepsResponse_nextToken' - The pagination token.
--
-- 'httpStatus', 'listWorkflowStepsResponse_httpStatus' - The response's http status code.
--
-- 'workflowStepsSummary', 'listWorkflowStepsResponse_workflowStepsSummary' - The summary of steps in a migration workflow.
newListWorkflowStepsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListWorkflowStepsResponse
newListWorkflowStepsResponse :: Int -> ListWorkflowStepsResponse
newListWorkflowStepsResponse Int
pHttpStatus_ =
  ListWorkflowStepsResponse'
    { $sel:nextToken:ListWorkflowStepsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListWorkflowStepsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:workflowStepsSummary:ListWorkflowStepsResponse' :: [WorkflowStepSummary]
workflowStepsSummary = forall a. Monoid a => a
Prelude.mempty
    }

-- | The pagination token.
listWorkflowStepsResponse_nextToken :: Lens.Lens' ListWorkflowStepsResponse (Prelude.Maybe Prelude.Text)
listWorkflowStepsResponse_nextToken :: Lens' ListWorkflowStepsResponse (Maybe Text)
listWorkflowStepsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorkflowStepsResponse' :: ListWorkflowStepsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorkflowStepsResponse
s@ListWorkflowStepsResponse' {} Maybe Text
a -> ListWorkflowStepsResponse
s {$sel:nextToken:ListWorkflowStepsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorkflowStepsResponse)

-- | The response's http status code.
listWorkflowStepsResponse_httpStatus :: Lens.Lens' ListWorkflowStepsResponse Prelude.Int
listWorkflowStepsResponse_httpStatus :: Lens' ListWorkflowStepsResponse Int
listWorkflowStepsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListWorkflowStepsResponse' :: ListWorkflowStepsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListWorkflowStepsResponse
s@ListWorkflowStepsResponse' {} Int
a -> ListWorkflowStepsResponse
s {$sel:httpStatus:ListWorkflowStepsResponse' :: Int
httpStatus = Int
a} :: ListWorkflowStepsResponse)

-- | The summary of steps in a migration workflow.
listWorkflowStepsResponse_workflowStepsSummary :: Lens.Lens' ListWorkflowStepsResponse [WorkflowStepSummary]
listWorkflowStepsResponse_workflowStepsSummary :: Lens' ListWorkflowStepsResponse [WorkflowStepSummary]
listWorkflowStepsResponse_workflowStepsSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepsResponse' {[WorkflowStepSummary]
workflowStepsSummary :: [WorkflowStepSummary]
$sel:workflowStepsSummary:ListWorkflowStepsResponse' :: ListWorkflowStepsResponse -> [WorkflowStepSummary]
workflowStepsSummary} -> [WorkflowStepSummary]
workflowStepsSummary) (\s :: ListWorkflowStepsResponse
s@ListWorkflowStepsResponse' {} [WorkflowStepSummary]
a -> ListWorkflowStepsResponse
s {$sel:workflowStepsSummary:ListWorkflowStepsResponse' :: [WorkflowStepSummary]
workflowStepsSummary = [WorkflowStepSummary]
a} :: ListWorkflowStepsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListWorkflowStepsResponse where
  rnf :: ListWorkflowStepsResponse -> ()
rnf ListWorkflowStepsResponse' {Int
[WorkflowStepSummary]
Maybe Text
workflowStepsSummary :: [WorkflowStepSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:workflowStepsSummary:ListWorkflowStepsResponse' :: ListWorkflowStepsResponse -> [WorkflowStepSummary]
$sel:httpStatus:ListWorkflowStepsResponse' :: ListWorkflowStepsResponse -> Int
$sel:nextToken:ListWorkflowStepsResponse' :: ListWorkflowStepsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [WorkflowStepSummary]
workflowStepsSummary