{-# 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.Schemas.ListRegistries
-- 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 registries.
--
-- This operation returns paginated results.
module Amazonka.Schemas.ListRegistries
  ( -- * Creating a Request
    ListRegistries (..),
    newListRegistries,

    -- * Request Lenses
    listRegistries_limit,
    listRegistries_nextToken,
    listRegistries_registryNamePrefix,
    listRegistries_scope,

    -- * Destructuring the Response
    ListRegistriesResponse (..),
    newListRegistriesResponse,

    -- * Response Lenses
    listRegistriesResponse_nextToken,
    listRegistriesResponse_registries,
    listRegistriesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListRegistries' smart constructor.
data ListRegistries = ListRegistries'
  { ListRegistries -> Maybe Int
limit :: Prelude.Maybe Prelude.Int,
    -- | The token that specifies the next page of results to return. To request
    -- the first page, leave NextToken empty. The token will expire in 24
    -- hours, and cannot be shared with other accounts.
    ListRegistries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Specifying this limits the results to only those registry names that
    -- start with the specified prefix.
    ListRegistries -> Maybe Text
registryNamePrefix :: Prelude.Maybe Prelude.Text,
    -- | Can be set to Local or AWS to limit responses to your custom registries,
    -- or the ones provided by AWS.
    ListRegistries -> Maybe Text
scope :: Prelude.Maybe Prelude.Text
  }
  deriving (ListRegistries -> ListRegistries -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRegistries -> ListRegistries -> Bool
$c/= :: ListRegistries -> ListRegistries -> Bool
== :: ListRegistries -> ListRegistries -> Bool
$c== :: ListRegistries -> ListRegistries -> Bool
Prelude.Eq, ReadPrec [ListRegistries]
ReadPrec ListRegistries
Int -> ReadS ListRegistries
ReadS [ListRegistries]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRegistries]
$creadListPrec :: ReadPrec [ListRegistries]
readPrec :: ReadPrec ListRegistries
$creadPrec :: ReadPrec ListRegistries
readList :: ReadS [ListRegistries]
$creadList :: ReadS [ListRegistries]
readsPrec :: Int -> ReadS ListRegistries
$creadsPrec :: Int -> ReadS ListRegistries
Prelude.Read, Int -> ListRegistries -> ShowS
[ListRegistries] -> ShowS
ListRegistries -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRegistries] -> ShowS
$cshowList :: [ListRegistries] -> ShowS
show :: ListRegistries -> String
$cshow :: ListRegistries -> String
showsPrec :: Int -> ListRegistries -> ShowS
$cshowsPrec :: Int -> ListRegistries -> ShowS
Prelude.Show, forall x. Rep ListRegistries x -> ListRegistries
forall x. ListRegistries -> Rep ListRegistries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRegistries x -> ListRegistries
$cfrom :: forall x. ListRegistries -> Rep ListRegistries x
Prelude.Generic)

-- |
-- Create a value of 'ListRegistries' 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:
--
-- 'limit', 'listRegistries_limit' - Undocumented member.
--
-- 'nextToken', 'listRegistries_nextToken' - The token that specifies the next page of results to return. To request
-- the first page, leave NextToken empty. The token will expire in 24
-- hours, and cannot be shared with other accounts.
--
-- 'registryNamePrefix', 'listRegistries_registryNamePrefix' - Specifying this limits the results to only those registry names that
-- start with the specified prefix.
--
-- 'scope', 'listRegistries_scope' - Can be set to Local or AWS to limit responses to your custom registries,
-- or the ones provided by AWS.
newListRegistries ::
  ListRegistries
newListRegistries :: ListRegistries
newListRegistries =
  ListRegistries'
    { $sel:limit:ListRegistries' :: Maybe Int
limit = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListRegistries' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:registryNamePrefix:ListRegistries' :: Maybe Text
registryNamePrefix = forall a. Maybe a
Prelude.Nothing,
      $sel:scope:ListRegistries' :: Maybe Text
scope = forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
listRegistries_limit :: Lens.Lens' ListRegistries (Prelude.Maybe Prelude.Int)
listRegistries_limit :: Lens' ListRegistries (Maybe Int)
listRegistries_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistries' {Maybe Int
limit :: Maybe Int
$sel:limit:ListRegistries' :: ListRegistries -> Maybe Int
limit} -> Maybe Int
limit) (\s :: ListRegistries
s@ListRegistries' {} Maybe Int
a -> ListRegistries
s {$sel:limit:ListRegistries' :: Maybe Int
limit = Maybe Int
a} :: ListRegistries)

-- | The token that specifies the next page of results to return. To request
-- the first page, leave NextToken empty. The token will expire in 24
-- hours, and cannot be shared with other accounts.
listRegistries_nextToken :: Lens.Lens' ListRegistries (Prelude.Maybe Prelude.Text)
listRegistries_nextToken :: Lens' ListRegistries (Maybe Text)
listRegistries_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistries' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRegistries' :: ListRegistries -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRegistries
s@ListRegistries' {} Maybe Text
a -> ListRegistries
s {$sel:nextToken:ListRegistries' :: Maybe Text
nextToken = Maybe Text
a} :: ListRegistries)

-- | Specifying this limits the results to only those registry names that
-- start with the specified prefix.
listRegistries_registryNamePrefix :: Lens.Lens' ListRegistries (Prelude.Maybe Prelude.Text)
listRegistries_registryNamePrefix :: Lens' ListRegistries (Maybe Text)
listRegistries_registryNamePrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistries' {Maybe Text
registryNamePrefix :: Maybe Text
$sel:registryNamePrefix:ListRegistries' :: ListRegistries -> Maybe Text
registryNamePrefix} -> Maybe Text
registryNamePrefix) (\s :: ListRegistries
s@ListRegistries' {} Maybe Text
a -> ListRegistries
s {$sel:registryNamePrefix:ListRegistries' :: Maybe Text
registryNamePrefix = Maybe Text
a} :: ListRegistries)

-- | Can be set to Local or AWS to limit responses to your custom registries,
-- or the ones provided by AWS.
listRegistries_scope :: Lens.Lens' ListRegistries (Prelude.Maybe Prelude.Text)
listRegistries_scope :: Lens' ListRegistries (Maybe Text)
listRegistries_scope = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistries' {Maybe Text
scope :: Maybe Text
$sel:scope:ListRegistries' :: ListRegistries -> Maybe Text
scope} -> Maybe Text
scope) (\s :: ListRegistries
s@ListRegistries' {} Maybe Text
a -> ListRegistries
s {$sel:scope:ListRegistries' :: Maybe Text
scope = Maybe Text
a} :: ListRegistries)

instance Core.AWSPager ListRegistries where
  page :: ListRegistries
-> AWSResponse ListRegistries -> Maybe ListRegistries
page ListRegistries
rq AWSResponse ListRegistries
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRegistries
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRegistriesResponse (Maybe Text)
listRegistriesResponse_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 ListRegistries
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRegistriesResponse (Maybe [RegistrySummary])
listRegistriesResponse_registries
            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
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListRegistries
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListRegistries (Maybe Text)
listRegistries_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRegistries
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRegistriesResponse (Maybe Text)
listRegistriesResponse_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 ListRegistries where
  type
    AWSResponse ListRegistries =
      ListRegistriesResponse
  request :: (Service -> Service) -> ListRegistries -> Request ListRegistries
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 ListRegistries
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRegistries)))
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
-> Maybe [RegistrySummary] -> Int -> ListRegistriesResponse
ListRegistriesResponse'
            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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Registries" 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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListRegistries where
  hashWithSalt :: Int -> ListRegistries -> Int
hashWithSalt Int
_salt ListRegistries' {Maybe Int
Maybe Text
scope :: Maybe Text
registryNamePrefix :: Maybe Text
nextToken :: Maybe Text
limit :: Maybe Int
$sel:scope:ListRegistries' :: ListRegistries -> Maybe Text
$sel:registryNamePrefix:ListRegistries' :: ListRegistries -> Maybe Text
$sel:nextToken:ListRegistries' :: ListRegistries -> Maybe Text
$sel:limit:ListRegistries' :: ListRegistries -> Maybe Int
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
limit
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
registryNamePrefix
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scope

instance Prelude.NFData ListRegistries where
  rnf :: ListRegistries -> ()
rnf ListRegistries' {Maybe Int
Maybe Text
scope :: Maybe Text
registryNamePrefix :: Maybe Text
nextToken :: Maybe Text
limit :: Maybe Int
$sel:scope:ListRegistries' :: ListRegistries -> Maybe Text
$sel:registryNamePrefix:ListRegistries' :: ListRegistries -> Maybe Text
$sel:nextToken:ListRegistries' :: ListRegistries -> Maybe Text
$sel:limit:ListRegistries' :: ListRegistries -> Maybe Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
limit
      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
registryNamePrefix
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scope

instance Data.ToHeaders ListRegistries where
  toHeaders :: ListRegistries -> 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 ListRegistries where
  toPath :: ListRegistries -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/v1/registries"

instance Data.ToQuery ListRegistries where
  toQuery :: ListRegistries -> QueryString
toQuery ListRegistries' {Maybe Int
Maybe Text
scope :: Maybe Text
registryNamePrefix :: Maybe Text
nextToken :: Maybe Text
limit :: Maybe Int
$sel:scope:ListRegistries' :: ListRegistries -> Maybe Text
$sel:registryNamePrefix:ListRegistries' :: ListRegistries -> Maybe Text
$sel:nextToken:ListRegistries' :: ListRegistries -> Maybe Text
$sel:limit:ListRegistries' :: ListRegistries -> Maybe Int
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"limit" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
limit,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
        ByteString
"registryNamePrefix" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
registryNamePrefix,
        ByteString
"scope" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
scope
      ]

-- | /See:/ 'newListRegistriesResponse' smart constructor.
data ListRegistriesResponse = ListRegistriesResponse'
  { -- | The token that specifies the next page of results to return. To request
    -- the first page, leave NextToken empty. The token will expire in 24
    -- hours, and cannot be shared with other accounts.
    ListRegistriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | An array of registry summaries.
    ListRegistriesResponse -> Maybe [RegistrySummary]
registries :: Prelude.Maybe [RegistrySummary],
    -- | The response's http status code.
    ListRegistriesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListRegistriesResponse -> ListRegistriesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
$c/= :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
== :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
$c== :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
Prelude.Eq, ReadPrec [ListRegistriesResponse]
ReadPrec ListRegistriesResponse
Int -> ReadS ListRegistriesResponse
ReadS [ListRegistriesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRegistriesResponse]
$creadListPrec :: ReadPrec [ListRegistriesResponse]
readPrec :: ReadPrec ListRegistriesResponse
$creadPrec :: ReadPrec ListRegistriesResponse
readList :: ReadS [ListRegistriesResponse]
$creadList :: ReadS [ListRegistriesResponse]
readsPrec :: Int -> ReadS ListRegistriesResponse
$creadsPrec :: Int -> ReadS ListRegistriesResponse
Prelude.Read, Int -> ListRegistriesResponse -> ShowS
[ListRegistriesResponse] -> ShowS
ListRegistriesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRegistriesResponse] -> ShowS
$cshowList :: [ListRegistriesResponse] -> ShowS
show :: ListRegistriesResponse -> String
$cshow :: ListRegistriesResponse -> String
showsPrec :: Int -> ListRegistriesResponse -> ShowS
$cshowsPrec :: Int -> ListRegistriesResponse -> ShowS
Prelude.Show, forall x. Rep ListRegistriesResponse x -> ListRegistriesResponse
forall x. ListRegistriesResponse -> Rep ListRegistriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRegistriesResponse x -> ListRegistriesResponse
$cfrom :: forall x. ListRegistriesResponse -> Rep ListRegistriesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListRegistriesResponse' 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', 'listRegistriesResponse_nextToken' - The token that specifies the next page of results to return. To request
-- the first page, leave NextToken empty. The token will expire in 24
-- hours, and cannot be shared with other accounts.
--
-- 'registries', 'listRegistriesResponse_registries' - An array of registry summaries.
--
-- 'httpStatus', 'listRegistriesResponse_httpStatus' - The response's http status code.
newListRegistriesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRegistriesResponse
newListRegistriesResponse :: Int -> ListRegistriesResponse
newListRegistriesResponse Int
pHttpStatus_ =
  ListRegistriesResponse'
    { $sel:nextToken:ListRegistriesResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:registries:ListRegistriesResponse' :: Maybe [RegistrySummary]
registries = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRegistriesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token that specifies the next page of results to return. To request
-- the first page, leave NextToken empty. The token will expire in 24
-- hours, and cannot be shared with other accounts.
listRegistriesResponse_nextToken :: Lens.Lens' ListRegistriesResponse (Prelude.Maybe Prelude.Text)
listRegistriesResponse_nextToken :: Lens' ListRegistriesResponse (Maybe Text)
listRegistriesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRegistriesResponse' :: ListRegistriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRegistriesResponse
s@ListRegistriesResponse' {} Maybe Text
a -> ListRegistriesResponse
s {$sel:nextToken:ListRegistriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRegistriesResponse)

-- | An array of registry summaries.
listRegistriesResponse_registries :: Lens.Lens' ListRegistriesResponse (Prelude.Maybe [RegistrySummary])
listRegistriesResponse_registries :: Lens' ListRegistriesResponse (Maybe [RegistrySummary])
listRegistriesResponse_registries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistriesResponse' {Maybe [RegistrySummary]
registries :: Maybe [RegistrySummary]
$sel:registries:ListRegistriesResponse' :: ListRegistriesResponse -> Maybe [RegistrySummary]
registries} -> Maybe [RegistrySummary]
registries) (\s :: ListRegistriesResponse
s@ListRegistriesResponse' {} Maybe [RegistrySummary]
a -> ListRegistriesResponse
s {$sel:registries:ListRegistriesResponse' :: Maybe [RegistrySummary]
registries = Maybe [RegistrySummary]
a} :: ListRegistriesResponse) 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 response's http status code.
listRegistriesResponse_httpStatus :: Lens.Lens' ListRegistriesResponse Prelude.Int
listRegistriesResponse_httpStatus :: Lens' ListRegistriesResponse Int
listRegistriesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRegistriesResponse' :: ListRegistriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRegistriesResponse
s@ListRegistriesResponse' {} Int
a -> ListRegistriesResponse
s {$sel:httpStatus:ListRegistriesResponse' :: Int
httpStatus = Int
a} :: ListRegistriesResponse)

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