{-# 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.DataPipeline.ListPipelines
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the pipeline identifiers for all active pipelines that you have
-- permission to access.
--
-- This operation returns paginated results.
module Amazonka.DataPipeline.ListPipelines
  ( -- * Creating a Request
    ListPipelines (..),
    newListPipelines,

    -- * Request Lenses
    listPipelines_marker,

    -- * Destructuring the Response
    ListPipelinesResponse (..),
    newListPipelinesResponse,

    -- * Response Lenses
    listPipelinesResponse_hasMoreResults,
    listPipelinesResponse_marker,
    listPipelinesResponse_httpStatus,
    listPipelinesResponse_pipelineIdList,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DataPipeline.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Contains the parameters for ListPipelines.
--
-- /See:/ 'newListPipelines' smart constructor.
data ListPipelines = ListPipelines'
  { -- | The starting point for the results to be returned. For the first call,
    -- this value should be empty. As long as there are more results, continue
    -- to call @ListPipelines@ with the marker value from the previous call to
    -- retrieve the next set of results.
    ListPipelines -> Maybe Text
marker :: Prelude.Maybe Prelude.Text
  }
  deriving (ListPipelines -> ListPipelines -> Bool
(ListPipelines -> ListPipelines -> Bool)
-> (ListPipelines -> ListPipelines -> Bool) -> Eq ListPipelines
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPipelines -> ListPipelines -> Bool
$c/= :: ListPipelines -> ListPipelines -> Bool
== :: ListPipelines -> ListPipelines -> Bool
$c== :: ListPipelines -> ListPipelines -> Bool
Prelude.Eq, ReadPrec [ListPipelines]
ReadPrec ListPipelines
Int -> ReadS ListPipelines
ReadS [ListPipelines]
(Int -> ReadS ListPipelines)
-> ReadS [ListPipelines]
-> ReadPrec ListPipelines
-> ReadPrec [ListPipelines]
-> Read ListPipelines
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPipelines]
$creadListPrec :: ReadPrec [ListPipelines]
readPrec :: ReadPrec ListPipelines
$creadPrec :: ReadPrec ListPipelines
readList :: ReadS [ListPipelines]
$creadList :: ReadS [ListPipelines]
readsPrec :: Int -> ReadS ListPipelines
$creadsPrec :: Int -> ReadS ListPipelines
Prelude.Read, Int -> ListPipelines -> ShowS
[ListPipelines] -> ShowS
ListPipelines -> String
(Int -> ListPipelines -> ShowS)
-> (ListPipelines -> String)
-> ([ListPipelines] -> ShowS)
-> Show ListPipelines
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPipelines] -> ShowS
$cshowList :: [ListPipelines] -> ShowS
show :: ListPipelines -> String
$cshow :: ListPipelines -> String
showsPrec :: Int -> ListPipelines -> ShowS
$cshowsPrec :: Int -> ListPipelines -> ShowS
Prelude.Show, (forall x. ListPipelines -> Rep ListPipelines x)
-> (forall x. Rep ListPipelines x -> ListPipelines)
-> Generic ListPipelines
forall x. Rep ListPipelines x -> ListPipelines
forall x. ListPipelines -> Rep ListPipelines x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPipelines x -> ListPipelines
$cfrom :: forall x. ListPipelines -> Rep ListPipelines x
Prelude.Generic)

-- |
-- Create a value of 'ListPipelines' 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:
--
-- 'marker', 'listPipelines_marker' - The starting point for the results to be returned. For the first call,
-- this value should be empty. As long as there are more results, continue
-- to call @ListPipelines@ with the marker value from the previous call to
-- retrieve the next set of results.
newListPipelines ::
  ListPipelines
newListPipelines :: ListPipelines
newListPipelines =
  ListPipelines' :: Maybe Text -> ListPipelines
ListPipelines' {$sel:marker:ListPipelines' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing}

-- | The starting point for the results to be returned. For the first call,
-- this value should be empty. As long as there are more results, continue
-- to call @ListPipelines@ with the marker value from the previous call to
-- retrieve the next set of results.
listPipelines_marker :: Lens.Lens' ListPipelines (Prelude.Maybe Prelude.Text)
listPipelines_marker :: (Maybe Text -> f (Maybe Text)) -> ListPipelines -> f ListPipelines
listPipelines_marker = (ListPipelines -> Maybe Text)
-> (ListPipelines -> Maybe Text -> ListPipelines)
-> Lens ListPipelines ListPipelines (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelines' {Maybe Text
marker :: Maybe Text
$sel:marker:ListPipelines' :: ListPipelines -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListPipelines
s@ListPipelines' {} Maybe Text
a -> ListPipelines
s {$sel:marker:ListPipelines' :: Maybe Text
marker = Maybe Text
a} :: ListPipelines)

instance Core.AWSPager ListPipelines where
  page :: ListPipelines -> AWSResponse ListPipelines -> Maybe ListPipelines
page ListPipelines
rq AWSResponse ListPipelines
rs
    | Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListPipelines
ListPipelinesResponse
rs
            ListPipelinesResponse
-> Getting (First Bool) ListPipelinesResponse Bool -> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListPipelinesResponse
-> Const (First Bool) ListPipelinesResponse
Lens' ListPipelinesResponse (Maybe Bool)
listPipelinesResponse_hasMoreResults
              ((Maybe Bool -> Const (First Bool) (Maybe Bool))
 -> ListPipelinesResponse
 -> Const (First Bool) ListPipelinesResponse)
-> ((Bool -> Const (First Bool) Bool)
    -> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) ListPipelinesResponse Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListPipelines
forall a. Maybe a
Prelude.Nothing
    | Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
        ( AWSResponse ListPipelines
ListPipelinesResponse
rs
            ListPipelinesResponse
-> Getting (First Text) ListPipelinesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPipelinesResponse
-> Const (First Text) ListPipelinesResponse
Lens' ListPipelinesResponse (Maybe Text)
listPipelinesResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListPipelinesResponse
 -> Const (First Text) ListPipelinesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPipelinesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListPipelines
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListPipelines -> Maybe ListPipelines
forall a. a -> Maybe a
Prelude.Just (ListPipelines -> Maybe ListPipelines)
-> ListPipelines -> Maybe ListPipelines
forall a b. (a -> b) -> a -> b
Prelude.$
        ListPipelines
rq
          ListPipelines -> (ListPipelines -> ListPipelines) -> ListPipelines
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListPipelines -> Identity ListPipelines
Lens ListPipelines ListPipelines (Maybe Text) (Maybe Text)
listPipelines_marker
          ((Maybe Text -> Identity (Maybe Text))
 -> ListPipelines -> Identity ListPipelines)
-> Maybe Text -> ListPipelines -> ListPipelines
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPipelines
ListPipelinesResponse
rs
          ListPipelinesResponse
-> Getting (First Text) ListPipelinesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPipelinesResponse
-> Const (First Text) ListPipelinesResponse
Lens' ListPipelinesResponse (Maybe Text)
listPipelinesResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListPipelinesResponse
 -> Const (First Text) ListPipelinesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPipelinesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListPipelines where
  type
    AWSResponse ListPipelines =
      ListPipelinesResponse
  request :: ListPipelines -> Request ListPipelines
request = Service -> ListPipelines -> Request ListPipelines
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListPipelines
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListPipelines)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListPipelines))
-> Logger
-> Service
-> Proxy ListPipelines
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListPipelines)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Bool
-> Maybe Text -> Int -> [PipelineIdName] -> ListPipelinesResponse
ListPipelinesResponse'
            (Maybe Bool
 -> Maybe Text -> Int -> [PipelineIdName] -> ListPipelinesResponse)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Text -> Int -> [PipelineIdName] -> ListPipelinesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"hasMoreResults")
            Either
  String
  (Maybe Text -> Int -> [PipelineIdName] -> ListPipelinesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [PipelineIdName] -> ListPipelinesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"marker")
            Either String (Int -> [PipelineIdName] -> ListPipelinesResponse)
-> Either String Int
-> Either String ([PipelineIdName] -> ListPipelinesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either String ([PipelineIdName] -> ListPipelinesResponse)
-> Either String [PipelineIdName]
-> Either String ListPipelinesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [PipelineIdName])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelineIdList"
                            Either String (Maybe [PipelineIdName])
-> [PipelineIdName] -> Either String [PipelineIdName]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [PipelineIdName]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListPipelines

instance Prelude.NFData ListPipelines

instance Core.ToHeaders ListPipelines where
  toHeaders :: ListPipelines -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListPipelines -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"DataPipeline.ListPipelines" :: Prelude.ByteString),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListPipelines where
  toJSON :: ListPipelines -> Value
toJSON ListPipelines' {Maybe Text
marker :: Maybe Text
$sel:marker:ListPipelines' :: ListPipelines -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [(Text
"marker" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
marker]
      )

instance Core.ToPath ListPipelines where
  toPath :: ListPipelines -> ByteString
toPath = ByteString -> ListPipelines -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ListPipelines where
  toQuery :: ListPipelines -> QueryString
toQuery = QueryString -> ListPipelines -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | Contains the output of ListPipelines.
--
-- /See:/ 'newListPipelinesResponse' smart constructor.
data ListPipelinesResponse = ListPipelinesResponse'
  { -- | Indicates whether there are more results that can be obtained by a
    -- subsequent call.
    ListPipelinesResponse -> Maybe Bool
hasMoreResults :: Prelude.Maybe Prelude.Bool,
    -- | The starting point for the next page of results. To view the next page
    -- of results, call @ListPipelinesOutput@ again with this marker value. If
    -- the value is null, there are no more results.
    ListPipelinesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListPipelinesResponse -> Int
httpStatus :: Prelude.Int,
    -- | The pipeline identifiers. If you require additional information about
    -- the pipelines, you can use these identifiers to call DescribePipelines
    -- and GetPipelineDefinition.
    ListPipelinesResponse -> [PipelineIdName]
pipelineIdList :: [PipelineIdName]
  }
  deriving (ListPipelinesResponse -> ListPipelinesResponse -> Bool
(ListPipelinesResponse -> ListPipelinesResponse -> Bool)
-> (ListPipelinesResponse -> ListPipelinesResponse -> Bool)
-> Eq ListPipelinesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPipelinesResponse -> ListPipelinesResponse -> Bool
$c/= :: ListPipelinesResponse -> ListPipelinesResponse -> Bool
== :: ListPipelinesResponse -> ListPipelinesResponse -> Bool
$c== :: ListPipelinesResponse -> ListPipelinesResponse -> Bool
Prelude.Eq, ReadPrec [ListPipelinesResponse]
ReadPrec ListPipelinesResponse
Int -> ReadS ListPipelinesResponse
ReadS [ListPipelinesResponse]
(Int -> ReadS ListPipelinesResponse)
-> ReadS [ListPipelinesResponse]
-> ReadPrec ListPipelinesResponse
-> ReadPrec [ListPipelinesResponse]
-> Read ListPipelinesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPipelinesResponse]
$creadListPrec :: ReadPrec [ListPipelinesResponse]
readPrec :: ReadPrec ListPipelinesResponse
$creadPrec :: ReadPrec ListPipelinesResponse
readList :: ReadS [ListPipelinesResponse]
$creadList :: ReadS [ListPipelinesResponse]
readsPrec :: Int -> ReadS ListPipelinesResponse
$creadsPrec :: Int -> ReadS ListPipelinesResponse
Prelude.Read, Int -> ListPipelinesResponse -> ShowS
[ListPipelinesResponse] -> ShowS
ListPipelinesResponse -> String
(Int -> ListPipelinesResponse -> ShowS)
-> (ListPipelinesResponse -> String)
-> ([ListPipelinesResponse] -> ShowS)
-> Show ListPipelinesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPipelinesResponse] -> ShowS
$cshowList :: [ListPipelinesResponse] -> ShowS
show :: ListPipelinesResponse -> String
$cshow :: ListPipelinesResponse -> String
showsPrec :: Int -> ListPipelinesResponse -> ShowS
$cshowsPrec :: Int -> ListPipelinesResponse -> ShowS
Prelude.Show, (forall x. ListPipelinesResponse -> Rep ListPipelinesResponse x)
-> (forall x. Rep ListPipelinesResponse x -> ListPipelinesResponse)
-> Generic ListPipelinesResponse
forall x. Rep ListPipelinesResponse x -> ListPipelinesResponse
forall x. ListPipelinesResponse -> Rep ListPipelinesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPipelinesResponse x -> ListPipelinesResponse
$cfrom :: forall x. ListPipelinesResponse -> Rep ListPipelinesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListPipelinesResponse' 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:
--
-- 'hasMoreResults', 'listPipelinesResponse_hasMoreResults' - Indicates whether there are more results that can be obtained by a
-- subsequent call.
--
-- 'marker', 'listPipelinesResponse_marker' - The starting point for the next page of results. To view the next page
-- of results, call @ListPipelinesOutput@ again with this marker value. If
-- the value is null, there are no more results.
--
-- 'httpStatus', 'listPipelinesResponse_httpStatus' - The response's http status code.
--
-- 'pipelineIdList', 'listPipelinesResponse_pipelineIdList' - The pipeline identifiers. If you require additional information about
-- the pipelines, you can use these identifiers to call DescribePipelines
-- and GetPipelineDefinition.
newListPipelinesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListPipelinesResponse
newListPipelinesResponse :: Int -> ListPipelinesResponse
newListPipelinesResponse Int
pHttpStatus_ =
  ListPipelinesResponse' :: Maybe Bool
-> Maybe Text -> Int -> [PipelineIdName] -> ListPipelinesResponse
ListPipelinesResponse'
    { $sel:hasMoreResults:ListPipelinesResponse' :: Maybe Bool
hasMoreResults =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:marker:ListPipelinesResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListPipelinesResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:pipelineIdList:ListPipelinesResponse' :: [PipelineIdName]
pipelineIdList = [PipelineIdName]
forall a. Monoid a => a
Prelude.mempty
    }

-- | Indicates whether there are more results that can be obtained by a
-- subsequent call.
listPipelinesResponse_hasMoreResults :: Lens.Lens' ListPipelinesResponse (Prelude.Maybe Prelude.Bool)
listPipelinesResponse_hasMoreResults :: (Maybe Bool -> f (Maybe Bool))
-> ListPipelinesResponse -> f ListPipelinesResponse
listPipelinesResponse_hasMoreResults = (ListPipelinesResponse -> Maybe Bool)
-> (ListPipelinesResponse -> Maybe Bool -> ListPipelinesResponse)
-> Lens' ListPipelinesResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelinesResponse' {Maybe Bool
hasMoreResults :: Maybe Bool
$sel:hasMoreResults:ListPipelinesResponse' :: ListPipelinesResponse -> Maybe Bool
hasMoreResults} -> Maybe Bool
hasMoreResults) (\s :: ListPipelinesResponse
s@ListPipelinesResponse' {} Maybe Bool
a -> ListPipelinesResponse
s {$sel:hasMoreResults:ListPipelinesResponse' :: Maybe Bool
hasMoreResults = Maybe Bool
a} :: ListPipelinesResponse)

-- | The starting point for the next page of results. To view the next page
-- of results, call @ListPipelinesOutput@ again with this marker value. If
-- the value is null, there are no more results.
listPipelinesResponse_marker :: Lens.Lens' ListPipelinesResponse (Prelude.Maybe Prelude.Text)
listPipelinesResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListPipelinesResponse -> f ListPipelinesResponse
listPipelinesResponse_marker = (ListPipelinesResponse -> Maybe Text)
-> (ListPipelinesResponse -> Maybe Text -> ListPipelinesResponse)
-> Lens' ListPipelinesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelinesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListPipelinesResponse' :: ListPipelinesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListPipelinesResponse
s@ListPipelinesResponse' {} Maybe Text
a -> ListPipelinesResponse
s {$sel:marker:ListPipelinesResponse' :: Maybe Text
marker = Maybe Text
a} :: ListPipelinesResponse)

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

-- | The pipeline identifiers. If you require additional information about
-- the pipelines, you can use these identifiers to call DescribePipelines
-- and GetPipelineDefinition.
listPipelinesResponse_pipelineIdList :: Lens.Lens' ListPipelinesResponse [PipelineIdName]
listPipelinesResponse_pipelineIdList :: ([PipelineIdName] -> f [PipelineIdName])
-> ListPipelinesResponse -> f ListPipelinesResponse
listPipelinesResponse_pipelineIdList = (ListPipelinesResponse -> [PipelineIdName])
-> (ListPipelinesResponse
    -> [PipelineIdName] -> ListPipelinesResponse)
-> Lens
     ListPipelinesResponse
     ListPipelinesResponse
     [PipelineIdName]
     [PipelineIdName]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelinesResponse' {[PipelineIdName]
pipelineIdList :: [PipelineIdName]
$sel:pipelineIdList:ListPipelinesResponse' :: ListPipelinesResponse -> [PipelineIdName]
pipelineIdList} -> [PipelineIdName]
pipelineIdList) (\s :: ListPipelinesResponse
s@ListPipelinesResponse' {} [PipelineIdName]
a -> ListPipelinesResponse
s {$sel:pipelineIdList:ListPipelinesResponse' :: [PipelineIdName]
pipelineIdList = [PipelineIdName]
a} :: ListPipelinesResponse) (([PipelineIdName] -> f [PipelineIdName])
 -> ListPipelinesResponse -> f ListPipelinesResponse)
-> (([PipelineIdName] -> f [PipelineIdName])
    -> [PipelineIdName] -> f [PipelineIdName])
-> ([PipelineIdName] -> f [PipelineIdName])
-> ListPipelinesResponse
-> f ListPipelinesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([PipelineIdName] -> f [PipelineIdName])
-> [PipelineIdName] -> f [PipelineIdName]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListPipelinesResponse