{-# 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.ListImageRecipes
-- 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 recipes.
module Amazonka.ImageBuilder.ListImageRecipes
  ( -- * Creating a Request
    ListImageRecipes (..),
    newListImageRecipes,

    -- * Request Lenses
    listImageRecipes_filters,
    listImageRecipes_maxResults,
    listImageRecipes_nextToken,
    listImageRecipes_owner,

    -- * Destructuring the Response
    ListImageRecipesResponse (..),
    newListImageRecipesResponse,

    -- * Response Lenses
    listImageRecipesResponse_imageRecipeSummaryList,
    listImageRecipesResponse_nextToken,
    listImageRecipesResponse_requestId,
    listImageRecipesResponse_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:/ 'newListImageRecipes' smart constructor.
data ListImageRecipes = ListImageRecipes'
  { -- | Use the following filters to streamline results:
    --
    -- -   @name@
    --
    -- -   @parentImage@
    --
    -- -   @platform@
    ListImageRecipes -> Maybe (NonEmpty Filter)
filters :: Prelude.Maybe (Prelude.NonEmpty Filter),
    -- | The maximum items to return in a request.
    ListImageRecipes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A token to specify where to start paginating. This is the NextToken from
    -- a previously truncated response.
    ListImageRecipes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The owner defines which image recipes you want to list. By default, this
    -- request will only show image recipes owned by your account. You can use
    -- this field to specify if you want to view image recipes owned by
    -- yourself, by Amazon, or those image recipes that have been shared with
    -- you by other customers.
    ListImageRecipes -> Maybe Ownership
owner :: Prelude.Maybe Ownership
  }
  deriving (ListImageRecipes -> ListImageRecipes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListImageRecipes -> ListImageRecipes -> Bool
$c/= :: ListImageRecipes -> ListImageRecipes -> Bool
== :: ListImageRecipes -> ListImageRecipes -> Bool
$c== :: ListImageRecipes -> ListImageRecipes -> Bool
Prelude.Eq, ReadPrec [ListImageRecipes]
ReadPrec ListImageRecipes
Int -> ReadS ListImageRecipes
ReadS [ListImageRecipes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListImageRecipes]
$creadListPrec :: ReadPrec [ListImageRecipes]
readPrec :: ReadPrec ListImageRecipes
$creadPrec :: ReadPrec ListImageRecipes
readList :: ReadS [ListImageRecipes]
$creadList :: ReadS [ListImageRecipes]
readsPrec :: Int -> ReadS ListImageRecipes
$creadsPrec :: Int -> ReadS ListImageRecipes
Prelude.Read, Int -> ListImageRecipes -> ShowS
[ListImageRecipes] -> ShowS
ListImageRecipes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListImageRecipes] -> ShowS
$cshowList :: [ListImageRecipes] -> ShowS
show :: ListImageRecipes -> String
$cshow :: ListImageRecipes -> String
showsPrec :: Int -> ListImageRecipes -> ShowS
$cshowsPrec :: Int -> ListImageRecipes -> ShowS
Prelude.Show, forall x. Rep ListImageRecipes x -> ListImageRecipes
forall x. ListImageRecipes -> Rep ListImageRecipes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListImageRecipes x -> ListImageRecipes
$cfrom :: forall x. ListImageRecipes -> Rep ListImageRecipes x
Prelude.Generic)

-- |
-- Create a value of 'ListImageRecipes' 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', 'listImageRecipes_filters' - Use the following filters to streamline results:
--
-- -   @name@
--
-- -   @parentImage@
--
-- -   @platform@
--
-- 'maxResults', 'listImageRecipes_maxResults' - The maximum items to return in a request.
--
-- 'nextToken', 'listImageRecipes_nextToken' - A token to specify where to start paginating. This is the NextToken from
-- a previously truncated response.
--
-- 'owner', 'listImageRecipes_owner' - The owner defines which image recipes you want to list. By default, this
-- request will only show image recipes owned by your account. You can use
-- this field to specify if you want to view image recipes owned by
-- yourself, by Amazon, or those image recipes that have been shared with
-- you by other customers.
newListImageRecipes ::
  ListImageRecipes
newListImageRecipes :: ListImageRecipes
newListImageRecipes =
  ListImageRecipes'
    { $sel:filters:ListImageRecipes' :: Maybe (NonEmpty Filter)
filters = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListImageRecipes' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListImageRecipes' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:owner:ListImageRecipes' :: Maybe Ownership
owner = forall a. Maybe a
Prelude.Nothing
    }

-- | Use the following filters to streamline results:
--
-- -   @name@
--
-- -   @parentImage@
--
-- -   @platform@
listImageRecipes_filters :: Lens.Lens' ListImageRecipes (Prelude.Maybe (Prelude.NonEmpty Filter))
listImageRecipes_filters :: Lens' ListImageRecipes (Maybe (NonEmpty Filter))
listImageRecipes_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImageRecipes' {Maybe (NonEmpty Filter)
filters :: Maybe (NonEmpty Filter)
$sel:filters:ListImageRecipes' :: ListImageRecipes -> Maybe (NonEmpty Filter)
filters} -> Maybe (NonEmpty Filter)
filters) (\s :: ListImageRecipes
s@ListImageRecipes' {} Maybe (NonEmpty Filter)
a -> ListImageRecipes
s {$sel:filters:ListImageRecipes' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
a} :: ListImageRecipes) 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.
listImageRecipes_maxResults :: Lens.Lens' ListImageRecipes (Prelude.Maybe Prelude.Natural)
listImageRecipes_maxResults :: Lens' ListImageRecipes (Maybe Natural)
listImageRecipes_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImageRecipes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListImageRecipes' :: ListImageRecipes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListImageRecipes
s@ListImageRecipes' {} Maybe Natural
a -> ListImageRecipes
s {$sel:maxResults:ListImageRecipes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListImageRecipes)

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

-- | The owner defines which image recipes you want to list. By default, this
-- request will only show image recipes owned by your account. You can use
-- this field to specify if you want to view image recipes owned by
-- yourself, by Amazon, or those image recipes that have been shared with
-- you by other customers.
listImageRecipes_owner :: Lens.Lens' ListImageRecipes (Prelude.Maybe Ownership)
listImageRecipes_owner :: Lens' ListImageRecipes (Maybe Ownership)
listImageRecipes_owner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImageRecipes' {Maybe Ownership
owner :: Maybe Ownership
$sel:owner:ListImageRecipes' :: ListImageRecipes -> Maybe Ownership
owner} -> Maybe Ownership
owner) (\s :: ListImageRecipes
s@ListImageRecipes' {} Maybe Ownership
a -> ListImageRecipes
s {$sel:owner:ListImageRecipes' :: Maybe Ownership
owner = Maybe Ownership
a} :: ListImageRecipes)

instance Core.AWSRequest ListImageRecipes where
  type
    AWSResponse ListImageRecipes =
      ListImageRecipesResponse
  request :: (Service -> Service)
-> ListImageRecipes -> Request ListImageRecipes
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 ListImageRecipes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListImageRecipes)))
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 [ImageRecipeSummary]
-> Maybe Text -> Maybe Text -> Int -> ListImageRecipesResponse
ListImageRecipesResponse'
            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
"imageRecipeSummaryList"
                            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 ListImageRecipes where
  hashWithSalt :: Int -> ListImageRecipes -> Int
hashWithSalt Int
_salt ListImageRecipes' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
Maybe Ownership
owner :: Maybe Ownership
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:owner:ListImageRecipes' :: ListImageRecipes -> Maybe Ownership
$sel:nextToken:ListImageRecipes' :: ListImageRecipes -> Maybe Text
$sel:maxResults:ListImageRecipes' :: ListImageRecipes -> Maybe Natural
$sel:filters:ListImageRecipes' :: ListImageRecipes -> 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
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Ownership
owner

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

instance Data.ToHeaders ListImageRecipes where
  toHeaders :: ListImageRecipes -> 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 ListImageRecipes where
  toJSON :: ListImageRecipes -> Value
toJSON ListImageRecipes' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
Maybe Ownership
owner :: Maybe Ownership
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:owner:ListImageRecipes' :: ListImageRecipes -> Maybe Ownership
$sel:nextToken:ListImageRecipes' :: ListImageRecipes -> Maybe Text
$sel:maxResults:ListImageRecipes' :: ListImageRecipes -> Maybe Natural
$sel:filters:ListImageRecipes' :: ListImageRecipes -> 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,
            (Key
"owner" 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 Ownership
owner
          ]
      )

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

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

-- | /See:/ 'newListImageRecipesResponse' smart constructor.
data ListImageRecipesResponse = ListImageRecipesResponse'
  { -- | The list of image pipelines.
    ListImageRecipesResponse -> Maybe [ImageRecipeSummary]
imageRecipeSummaryList :: Prelude.Maybe [ImageRecipeSummary],
    -- | 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.
    ListImageRecipesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The request ID that uniquely identifies this request.
    ListImageRecipesResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListImageRecipesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListImageRecipesResponse -> ListImageRecipesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListImageRecipesResponse -> ListImageRecipesResponse -> Bool
$c/= :: ListImageRecipesResponse -> ListImageRecipesResponse -> Bool
== :: ListImageRecipesResponse -> ListImageRecipesResponse -> Bool
$c== :: ListImageRecipesResponse -> ListImageRecipesResponse -> Bool
Prelude.Eq, ReadPrec [ListImageRecipesResponse]
ReadPrec ListImageRecipesResponse
Int -> ReadS ListImageRecipesResponse
ReadS [ListImageRecipesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListImageRecipesResponse]
$creadListPrec :: ReadPrec [ListImageRecipesResponse]
readPrec :: ReadPrec ListImageRecipesResponse
$creadPrec :: ReadPrec ListImageRecipesResponse
readList :: ReadS [ListImageRecipesResponse]
$creadList :: ReadS [ListImageRecipesResponse]
readsPrec :: Int -> ReadS ListImageRecipesResponse
$creadsPrec :: Int -> ReadS ListImageRecipesResponse
Prelude.Read, Int -> ListImageRecipesResponse -> ShowS
[ListImageRecipesResponse] -> ShowS
ListImageRecipesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListImageRecipesResponse] -> ShowS
$cshowList :: [ListImageRecipesResponse] -> ShowS
show :: ListImageRecipesResponse -> String
$cshow :: ListImageRecipesResponse -> String
showsPrec :: Int -> ListImageRecipesResponse -> ShowS
$cshowsPrec :: Int -> ListImageRecipesResponse -> ShowS
Prelude.Show, forall x.
Rep ListImageRecipesResponse x -> ListImageRecipesResponse
forall x.
ListImageRecipesResponse -> Rep ListImageRecipesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListImageRecipesResponse x -> ListImageRecipesResponse
$cfrom :: forall x.
ListImageRecipesResponse -> Rep ListImageRecipesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListImageRecipesResponse' 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:
--
-- 'imageRecipeSummaryList', 'listImageRecipesResponse_imageRecipeSummaryList' - The list of image pipelines.
--
-- 'nextToken', 'listImageRecipesResponse_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', 'listImageRecipesResponse_requestId' - The request ID that uniquely identifies this request.
--
-- 'httpStatus', 'listImageRecipesResponse_httpStatus' - The response's http status code.
newListImageRecipesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListImageRecipesResponse
newListImageRecipesResponse :: Int -> ListImageRecipesResponse
newListImageRecipesResponse Int
pHttpStatus_ =
  ListImageRecipesResponse'
    { $sel:imageRecipeSummaryList:ListImageRecipesResponse' :: Maybe [ImageRecipeSummary]
imageRecipeSummaryList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListImageRecipesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:requestId:ListImageRecipesResponse' :: Maybe Text
requestId = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListImageRecipesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of image pipelines.
listImageRecipesResponse_imageRecipeSummaryList :: Lens.Lens' ListImageRecipesResponse (Prelude.Maybe [ImageRecipeSummary])
listImageRecipesResponse_imageRecipeSummaryList :: Lens' ListImageRecipesResponse (Maybe [ImageRecipeSummary])
listImageRecipesResponse_imageRecipeSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImageRecipesResponse' {Maybe [ImageRecipeSummary]
imageRecipeSummaryList :: Maybe [ImageRecipeSummary]
$sel:imageRecipeSummaryList:ListImageRecipesResponse' :: ListImageRecipesResponse -> Maybe [ImageRecipeSummary]
imageRecipeSummaryList} -> Maybe [ImageRecipeSummary]
imageRecipeSummaryList) (\s :: ListImageRecipesResponse
s@ListImageRecipesResponse' {} Maybe [ImageRecipeSummary]
a -> ListImageRecipesResponse
s {$sel:imageRecipeSummaryList:ListImageRecipesResponse' :: Maybe [ImageRecipeSummary]
imageRecipeSummaryList = Maybe [ImageRecipeSummary]
a} :: ListImageRecipesResponse) 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.
listImageRecipesResponse_nextToken :: Lens.Lens' ListImageRecipesResponse (Prelude.Maybe Prelude.Text)
listImageRecipesResponse_nextToken :: Lens' ListImageRecipesResponse (Maybe Text)
listImageRecipesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImageRecipesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListImageRecipesResponse' :: ListImageRecipesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListImageRecipesResponse
s@ListImageRecipesResponse' {} Maybe Text
a -> ListImageRecipesResponse
s {$sel:nextToken:ListImageRecipesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListImageRecipesResponse)

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

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

instance Prelude.NFData ListImageRecipesResponse where
  rnf :: ListImageRecipesResponse -> ()
rnf ListImageRecipesResponse' {Int
Maybe [ImageRecipeSummary]
Maybe Text
httpStatus :: Int
requestId :: Maybe Text
nextToken :: Maybe Text
imageRecipeSummaryList :: Maybe [ImageRecipeSummary]
$sel:httpStatus:ListImageRecipesResponse' :: ListImageRecipesResponse -> Int
$sel:requestId:ListImageRecipesResponse' :: ListImageRecipesResponse -> Maybe Text
$sel:nextToken:ListImageRecipesResponse' :: ListImageRecipesResponse -> Maybe Text
$sel:imageRecipeSummaryList:ListImageRecipesResponse' :: ListImageRecipesResponse -> Maybe [ImageRecipeSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ImageRecipeSummary]
imageRecipeSummaryList
      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