{-# 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.ImageBuilder.ListImagePipelines
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of image pipelines.
module Amazonka.ImageBuilder.ListImagePipelines
  ( -- * Creating a Request
    ListImagePipelines (..),
    newListImagePipelines,

    -- * Request Lenses
    listImagePipelines_filters,
    listImagePipelines_maxResults,
    listImagePipelines_nextToken,

    -- * Destructuring the Response
    ListImagePipelinesResponse (..),
    newListImagePipelinesResponse,

    -- * Response Lenses
    listImagePipelinesResponse_imagePipelineList,
    listImagePipelinesResponse_nextToken,
    listImagePipelinesResponse_requestId,
    listImagePipelinesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ImageBuilder.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListImagePipelines' smart constructor.
data ListImagePipelines = ListImagePipelines'
  { -- | Use the following filters to streamline results:
    --
    -- -   @description@
    --
    -- -   @distributionConfigurationArn@
    --
    -- -   @imageRecipeArn@
    --
    -- -   @infrastructureConfigurationArn@
    --
    -- -   @name@
    --
    -- -   @status@
    ListImagePipelines -> Maybe (NonEmpty Filter)
filters :: Prelude.Maybe (Prelude.NonEmpty Filter),
    -- | The maximum items to return in a request.
    ListImagePipelines -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A token to specify where to start paginating. This is the NextToken from
    -- a previously truncated response.
    ListImagePipelines -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListImagePipelines -> ListImagePipelines -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListImagePipelines -> ListImagePipelines -> Bool
$c/= :: ListImagePipelines -> ListImagePipelines -> Bool
== :: ListImagePipelines -> ListImagePipelines -> Bool
$c== :: ListImagePipelines -> ListImagePipelines -> Bool
Prelude.Eq, ReadPrec [ListImagePipelines]
ReadPrec ListImagePipelines
Int -> ReadS ListImagePipelines
ReadS [ListImagePipelines]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListImagePipelines]
$creadListPrec :: ReadPrec [ListImagePipelines]
readPrec :: ReadPrec ListImagePipelines
$creadPrec :: ReadPrec ListImagePipelines
readList :: ReadS [ListImagePipelines]
$creadList :: ReadS [ListImagePipelines]
readsPrec :: Int -> ReadS ListImagePipelines
$creadsPrec :: Int -> ReadS ListImagePipelines
Prelude.Read, Int -> ListImagePipelines -> ShowS
[ListImagePipelines] -> ShowS
ListImagePipelines -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListImagePipelines] -> ShowS
$cshowList :: [ListImagePipelines] -> ShowS
show :: ListImagePipelines -> String
$cshow :: ListImagePipelines -> String
showsPrec :: Int -> ListImagePipelines -> ShowS
$cshowsPrec :: Int -> ListImagePipelines -> ShowS
Prelude.Show, forall x. Rep ListImagePipelines x -> ListImagePipelines
forall x. ListImagePipelines -> Rep ListImagePipelines x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListImagePipelines x -> ListImagePipelines
$cfrom :: forall x. ListImagePipelines -> Rep ListImagePipelines x
Prelude.Generic)

-- |
-- Create a value of 'ListImagePipelines' 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:
--
-- 'filters', 'listImagePipelines_filters' - Use the following filters to streamline results:
--
-- -   @description@
--
-- -   @distributionConfigurationArn@
--
-- -   @imageRecipeArn@
--
-- -   @infrastructureConfigurationArn@
--
-- -   @name@
--
-- -   @status@
--
-- 'maxResults', 'listImagePipelines_maxResults' - The maximum items to return in a request.
--
-- 'nextToken', 'listImagePipelines_nextToken' - A token to specify where to start paginating. This is the NextToken from
-- a previously truncated response.
newListImagePipelines ::
  ListImagePipelines
newListImagePipelines :: ListImagePipelines
newListImagePipelines =
  ListImagePipelines'
    { $sel:filters:ListImagePipelines' :: Maybe (NonEmpty Filter)
filters = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListImagePipelines' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListImagePipelines' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | Use the following filters to streamline results:
--
-- -   @description@
--
-- -   @distributionConfigurationArn@
--
-- -   @imageRecipeArn@
--
-- -   @infrastructureConfigurationArn@
--
-- -   @name@
--
-- -   @status@
listImagePipelines_filters :: Lens.Lens' ListImagePipelines (Prelude.Maybe (Prelude.NonEmpty Filter))
listImagePipelines_filters :: Lens' ListImagePipelines (Maybe (NonEmpty Filter))
listImagePipelines_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelines' {Maybe (NonEmpty Filter)
filters :: Maybe (NonEmpty Filter)
$sel:filters:ListImagePipelines' :: ListImagePipelines -> Maybe (NonEmpty Filter)
filters} -> Maybe (NonEmpty Filter)
filters) (\s :: ListImagePipelines
s@ListImagePipelines' {} Maybe (NonEmpty Filter)
a -> ListImagePipelines
s {$sel:filters:ListImagePipelines' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
a} :: ListImagePipelines) 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 maximum items to return in a request.
listImagePipelines_maxResults :: Lens.Lens' ListImagePipelines (Prelude.Maybe Prelude.Natural)
listImagePipelines_maxResults :: Lens' ListImagePipelines (Maybe Natural)
listImagePipelines_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelines' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListImagePipelines' :: ListImagePipelines -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListImagePipelines
s@ListImagePipelines' {} Maybe Natural
a -> ListImagePipelines
s {$sel:maxResults:ListImagePipelines' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListImagePipelines)

-- | A token to specify where to start paginating. This is the NextToken from
-- a previously truncated response.
listImagePipelines_nextToken :: Lens.Lens' ListImagePipelines (Prelude.Maybe Prelude.Text)
listImagePipelines_nextToken :: Lens' ListImagePipelines (Maybe Text)
listImagePipelines_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelines' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListImagePipelines' :: ListImagePipelines -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListImagePipelines
s@ListImagePipelines' {} Maybe Text
a -> ListImagePipelines
s {$sel:nextToken:ListImagePipelines' :: Maybe Text
nextToken = Maybe Text
a} :: ListImagePipelines)

instance Core.AWSRequest ListImagePipelines where
  type
    AWSResponse ListImagePipelines =
      ListImagePipelinesResponse
  request :: (Service -> Service)
-> ListImagePipelines -> Request ListImagePipelines
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListImagePipelines
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListImagePipelines)))
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 [ImagePipeline]
-> Maybe Text -> Maybe Text -> Int -> ListImagePipelinesResponse
ListImagePipelinesResponse'
            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
"imagePipelineList"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ 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 -> Either String (Maybe a)
Data..?> Key
"nextToken")
            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
"requestId")
            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))
      )

instance Prelude.Hashable ListImagePipelines where
  hashWithSalt :: Int -> ListImagePipelines -> Int
hashWithSalt Int
_salt ListImagePipelines' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:nextToken:ListImagePipelines' :: ListImagePipelines -> Maybe Text
$sel:maxResults:ListImagePipelines' :: ListImagePipelines -> Maybe Natural
$sel:filters:ListImagePipelines' :: ListImagePipelines -> Maybe (NonEmpty Filter)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Filter)
filters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData ListImagePipelines where
  rnf :: ListImagePipelines -> ()
rnf ListImagePipelines' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:nextToken:ListImagePipelines' :: ListImagePipelines -> Maybe Text
$sel:maxResults:ListImagePipelines' :: ListImagePipelines -> Maybe Natural
$sel:filters:ListImagePipelines' :: ListImagePipelines -> Maybe (NonEmpty Filter)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Filter)
filters
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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

instance Data.ToHeaders ListImagePipelines where
  toHeaders :: ListImagePipelines -> 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.ToJSON ListImagePipelines where
  toJSON :: ListImagePipelines -> Value
toJSON ListImagePipelines' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:nextToken:ListImagePipelines' :: ListImagePipelines -> Maybe Text
$sel:maxResults:ListImagePipelines' :: ListImagePipelines -> Maybe Natural
$sel:filters:ListImagePipelines' :: ListImagePipelines -> Maybe (NonEmpty Filter)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"filters" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Filter)
filters,
            (Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

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

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

-- | /See:/ 'newListImagePipelinesResponse' smart constructor.
data ListImagePipelinesResponse = ListImagePipelinesResponse'
  { -- | The list of image pipelines.
    ListImagePipelinesResponse -> Maybe [ImagePipeline]
imagePipelineList :: Prelude.Maybe [ImagePipeline],
    -- | The next token used for paginated responses. When this is not empty,
    -- there are additional elements that the service has not included in this
    -- request. Use this token with the next request to retrieve additional
    -- objects.
    ListImagePipelinesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The request ID that uniquely identifies this request.
    ListImagePipelinesResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListImagePipelinesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListImagePipelinesResponse -> ListImagePipelinesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListImagePipelinesResponse -> ListImagePipelinesResponse -> Bool
$c/= :: ListImagePipelinesResponse -> ListImagePipelinesResponse -> Bool
== :: ListImagePipelinesResponse -> ListImagePipelinesResponse -> Bool
$c== :: ListImagePipelinesResponse -> ListImagePipelinesResponse -> Bool
Prelude.Eq, ReadPrec [ListImagePipelinesResponse]
ReadPrec ListImagePipelinesResponse
Int -> ReadS ListImagePipelinesResponse
ReadS [ListImagePipelinesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListImagePipelinesResponse]
$creadListPrec :: ReadPrec [ListImagePipelinesResponse]
readPrec :: ReadPrec ListImagePipelinesResponse
$creadPrec :: ReadPrec ListImagePipelinesResponse
readList :: ReadS [ListImagePipelinesResponse]
$creadList :: ReadS [ListImagePipelinesResponse]
readsPrec :: Int -> ReadS ListImagePipelinesResponse
$creadsPrec :: Int -> ReadS ListImagePipelinesResponse
Prelude.Read, Int -> ListImagePipelinesResponse -> ShowS
[ListImagePipelinesResponse] -> ShowS
ListImagePipelinesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListImagePipelinesResponse] -> ShowS
$cshowList :: [ListImagePipelinesResponse] -> ShowS
show :: ListImagePipelinesResponse -> String
$cshow :: ListImagePipelinesResponse -> String
showsPrec :: Int -> ListImagePipelinesResponse -> ShowS
$cshowsPrec :: Int -> ListImagePipelinesResponse -> ShowS
Prelude.Show, forall x.
Rep ListImagePipelinesResponse x -> ListImagePipelinesResponse
forall x.
ListImagePipelinesResponse -> Rep ListImagePipelinesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListImagePipelinesResponse x -> ListImagePipelinesResponse
$cfrom :: forall x.
ListImagePipelinesResponse -> Rep ListImagePipelinesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListImagePipelinesResponse' 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:
--
-- 'imagePipelineList', 'listImagePipelinesResponse_imagePipelineList' - The list of image pipelines.
--
-- 'nextToken', 'listImagePipelinesResponse_nextToken' - The next token used for paginated responses. When this is not empty,
-- there are additional elements that the service has not included in this
-- request. Use this token with the next request to retrieve additional
-- objects.
--
-- 'requestId', 'listImagePipelinesResponse_requestId' - The request ID that uniquely identifies this request.
--
-- 'httpStatus', 'listImagePipelinesResponse_httpStatus' - The response's http status code.
newListImagePipelinesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListImagePipelinesResponse
newListImagePipelinesResponse :: Int -> ListImagePipelinesResponse
newListImagePipelinesResponse Int
pHttpStatus_ =
  ListImagePipelinesResponse'
    { $sel:imagePipelineList:ListImagePipelinesResponse' :: Maybe [ImagePipeline]
imagePipelineList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListImagePipelinesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:requestId:ListImagePipelinesResponse' :: Maybe Text
requestId = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListImagePipelinesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of image pipelines.
listImagePipelinesResponse_imagePipelineList :: Lens.Lens' ListImagePipelinesResponse (Prelude.Maybe [ImagePipeline])
listImagePipelinesResponse_imagePipelineList :: Lens' ListImagePipelinesResponse (Maybe [ImagePipeline])
listImagePipelinesResponse_imagePipelineList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelinesResponse' {Maybe [ImagePipeline]
imagePipelineList :: Maybe [ImagePipeline]
$sel:imagePipelineList:ListImagePipelinesResponse' :: ListImagePipelinesResponse -> Maybe [ImagePipeline]
imagePipelineList} -> Maybe [ImagePipeline]
imagePipelineList) (\s :: ListImagePipelinesResponse
s@ListImagePipelinesResponse' {} Maybe [ImagePipeline]
a -> ListImagePipelinesResponse
s {$sel:imagePipelineList:ListImagePipelinesResponse' :: Maybe [ImagePipeline]
imagePipelineList = Maybe [ImagePipeline]
a} :: ListImagePipelinesResponse) 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 next token used for paginated responses. When this is not empty,
-- there are additional elements that the service has not included in this
-- request. Use this token with the next request to retrieve additional
-- objects.
listImagePipelinesResponse_nextToken :: Lens.Lens' ListImagePipelinesResponse (Prelude.Maybe Prelude.Text)
listImagePipelinesResponse_nextToken :: Lens' ListImagePipelinesResponse (Maybe Text)
listImagePipelinesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelinesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListImagePipelinesResponse' :: ListImagePipelinesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListImagePipelinesResponse
s@ListImagePipelinesResponse' {} Maybe Text
a -> ListImagePipelinesResponse
s {$sel:nextToken:ListImagePipelinesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListImagePipelinesResponse)

-- | The request ID that uniquely identifies this request.
listImagePipelinesResponse_requestId :: Lens.Lens' ListImagePipelinesResponse (Prelude.Maybe Prelude.Text)
listImagePipelinesResponse_requestId :: Lens' ListImagePipelinesResponse (Maybe Text)
listImagePipelinesResponse_requestId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelinesResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListImagePipelinesResponse' :: ListImagePipelinesResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListImagePipelinesResponse
s@ListImagePipelinesResponse' {} Maybe Text
a -> ListImagePipelinesResponse
s {$sel:requestId:ListImagePipelinesResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListImagePipelinesResponse)

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

instance Prelude.NFData ListImagePipelinesResponse where
  rnf :: ListImagePipelinesResponse -> ()
rnf ListImagePipelinesResponse' {Int
Maybe [ImagePipeline]
Maybe Text
httpStatus :: Int
requestId :: Maybe Text
nextToken :: Maybe Text
imagePipelineList :: Maybe [ImagePipeline]
$sel:httpStatus:ListImagePipelinesResponse' :: ListImagePipelinesResponse -> Int
$sel:requestId:ListImagePipelinesResponse' :: ListImagePipelinesResponse -> Maybe Text
$sel:nextToken:ListImagePipelinesResponse' :: ListImagePipelinesResponse -> Maybe Text
$sel:imagePipelineList:ListImagePipelinesResponse' :: ListImagePipelinesResponse -> Maybe [ImagePipeline]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ImagePipeline]
imagePipelineList
      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 Maybe Text
requestId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus