{-# 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.GamesParks.ListExtensionVersions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a paginated list of available versions for the extension.
--
-- Each time an API change is made to an extension, the version is
-- incremented. The list retrieved by this operation shows the versions
-- that are currently available.
--
-- This operation returns paginated results.
module Amazonka.GamesParks.ListExtensionVersions
  ( -- * Creating a Request
    ListExtensionVersions (..),
    newListExtensionVersions,

    -- * Request Lenses
    listExtensionVersions_maxResults,
    listExtensionVersions_nextToken,
    listExtensionVersions_name,
    listExtensionVersions_namespace,

    -- * Destructuring the Response
    ListExtensionVersionsResponse (..),
    newListExtensionVersionsResponse,

    -- * Response Lenses
    listExtensionVersionsResponse_extensionVersions,
    listExtensionVersionsResponse_nextToken,
    listExtensionVersionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListExtensionVersions' smart constructor.
data ListExtensionVersions = ListExtensionVersions'
  { -- | The maximum number of results to return.
    --
    -- Use this parameter with NextToken to get results as a set of sequential
    -- pages.
    ListExtensionVersions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token that indicates the start of the next sequential page of
    -- results.
    --
    -- Use the token that is returned with a previous call to this operation.
    -- To start at the beginning of the result set, do not specify a value.
    ListExtensionVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The name of the extension.
    ListExtensionVersions -> Text
name :: Prelude.Text,
    -- | The namespace (qualifier) of the extension.
    ListExtensionVersions -> Text
namespace :: Prelude.Text
  }
  deriving (ListExtensionVersions -> ListExtensionVersions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListExtensionVersions -> ListExtensionVersions -> Bool
$c/= :: ListExtensionVersions -> ListExtensionVersions -> Bool
== :: ListExtensionVersions -> ListExtensionVersions -> Bool
$c== :: ListExtensionVersions -> ListExtensionVersions -> Bool
Prelude.Eq, ReadPrec [ListExtensionVersions]
ReadPrec ListExtensionVersions
Int -> ReadS ListExtensionVersions
ReadS [ListExtensionVersions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListExtensionVersions]
$creadListPrec :: ReadPrec [ListExtensionVersions]
readPrec :: ReadPrec ListExtensionVersions
$creadPrec :: ReadPrec ListExtensionVersions
readList :: ReadS [ListExtensionVersions]
$creadList :: ReadS [ListExtensionVersions]
readsPrec :: Int -> ReadS ListExtensionVersions
$creadsPrec :: Int -> ReadS ListExtensionVersions
Prelude.Read, Int -> ListExtensionVersions -> ShowS
[ListExtensionVersions] -> ShowS
ListExtensionVersions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListExtensionVersions] -> ShowS
$cshowList :: [ListExtensionVersions] -> ShowS
show :: ListExtensionVersions -> String
$cshow :: ListExtensionVersions -> String
showsPrec :: Int -> ListExtensionVersions -> ShowS
$cshowsPrec :: Int -> ListExtensionVersions -> ShowS
Prelude.Show, forall x. Rep ListExtensionVersions x -> ListExtensionVersions
forall x. ListExtensionVersions -> Rep ListExtensionVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListExtensionVersions x -> ListExtensionVersions
$cfrom :: forall x. ListExtensionVersions -> Rep ListExtensionVersions x
Prelude.Generic)

-- |
-- Create a value of 'ListExtensionVersions' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'maxResults', 'listExtensionVersions_maxResults' - The maximum number of results to return.
--
-- Use this parameter with NextToken to get results as a set of sequential
-- pages.
--
-- 'nextToken', 'listExtensionVersions_nextToken' - The token that indicates the start of the next sequential page of
-- results.
--
-- Use the token that is returned with a previous call to this operation.
-- To start at the beginning of the result set, do not specify a value.
--
-- 'name', 'listExtensionVersions_name' - The name of the extension.
--
-- 'namespace', 'listExtensionVersions_namespace' - The namespace (qualifier) of the extension.
newListExtensionVersions ::
  -- | 'name'
  Prelude.Text ->
  -- | 'namespace'
  Prelude.Text ->
  ListExtensionVersions
newListExtensionVersions :: Text -> Text -> ListExtensionVersions
newListExtensionVersions Text
pName_ Text
pNamespace_ =
  ListExtensionVersions'
    { $sel:maxResults:ListExtensionVersions' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListExtensionVersions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ListExtensionVersions' :: Text
name = Text
pName_,
      $sel:namespace:ListExtensionVersions' :: Text
namespace = Text
pNamespace_
    }

-- | The maximum number of results to return.
--
-- Use this parameter with NextToken to get results as a set of sequential
-- pages.
listExtensionVersions_maxResults :: Lens.Lens' ListExtensionVersions (Prelude.Maybe Prelude.Natural)
listExtensionVersions_maxResults :: Lens' ListExtensionVersions (Maybe Natural)
listExtensionVersions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListExtensionVersions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListExtensionVersions' :: ListExtensionVersions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListExtensionVersions
s@ListExtensionVersions' {} Maybe Natural
a -> ListExtensionVersions
s {$sel:maxResults:ListExtensionVersions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListExtensionVersions)

-- | The token that indicates the start of the next sequential page of
-- results.
--
-- Use the token that is returned with a previous call to this operation.
-- To start at the beginning of the result set, do not specify a value.
listExtensionVersions_nextToken :: Lens.Lens' ListExtensionVersions (Prelude.Maybe Prelude.Text)
listExtensionVersions_nextToken :: Lens' ListExtensionVersions (Maybe Text)
listExtensionVersions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListExtensionVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListExtensionVersions' :: ListExtensionVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListExtensionVersions
s@ListExtensionVersions' {} Maybe Text
a -> ListExtensionVersions
s {$sel:nextToken:ListExtensionVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListExtensionVersions)

-- | The name of the extension.
listExtensionVersions_name :: Lens.Lens' ListExtensionVersions Prelude.Text
listExtensionVersions_name :: Lens' ListExtensionVersions Text
listExtensionVersions_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListExtensionVersions' {Text
name :: Text
$sel:name:ListExtensionVersions' :: ListExtensionVersions -> Text
name} -> Text
name) (\s :: ListExtensionVersions
s@ListExtensionVersions' {} Text
a -> ListExtensionVersions
s {$sel:name:ListExtensionVersions' :: Text
name = Text
a} :: ListExtensionVersions)

-- | The namespace (qualifier) of the extension.
listExtensionVersions_namespace :: Lens.Lens' ListExtensionVersions Prelude.Text
listExtensionVersions_namespace :: Lens' ListExtensionVersions Text
listExtensionVersions_namespace = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListExtensionVersions' {Text
namespace :: Text
$sel:namespace:ListExtensionVersions' :: ListExtensionVersions -> Text
namespace} -> Text
namespace) (\s :: ListExtensionVersions
s@ListExtensionVersions' {} Text
a -> ListExtensionVersions
s {$sel:namespace:ListExtensionVersions' :: Text
namespace = Text
a} :: ListExtensionVersions)

instance Core.AWSPager ListExtensionVersions where
  page :: ListExtensionVersions
-> AWSResponse ListExtensionVersions -> Maybe ListExtensionVersions
page ListExtensionVersions
rq AWSResponse ListExtensionVersions
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListExtensionVersions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListExtensionVersionsResponse (Maybe Text)
listExtensionVersionsResponse_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 ListExtensionVersions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListExtensionVersionsResponse (Maybe [ExtensionVersionDetails])
listExtensionVersionsResponse_extensionVersions
            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.$ ListExtensionVersions
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListExtensionVersions (Maybe Text)
listExtensionVersions_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListExtensionVersions
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListExtensionVersionsResponse (Maybe Text)
listExtensionVersionsResponse_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 ListExtensionVersions where
  type
    AWSResponse ListExtensionVersions =
      ListExtensionVersionsResponse
  request :: (Service -> Service)
-> ListExtensionVersions -> Request ListExtensionVersions
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 ListExtensionVersions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListExtensionVersions)))
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 [ExtensionVersionDetails]
-> Maybe Text -> Int -> ListExtensionVersionsResponse
ListExtensionVersionsResponse'
            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
"ExtensionVersions"
                            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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

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

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

instance Data.ToHeaders ListExtensionVersions where
  toHeaders :: ListExtensionVersions -> 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 ListExtensionVersions where
  toPath :: ListExtensionVersions -> ByteString
toPath ListExtensionVersions' {Maybe Natural
Maybe Text
Text
namespace :: Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:namespace:ListExtensionVersions' :: ListExtensionVersions -> Text
$sel:name:ListExtensionVersions' :: ListExtensionVersions -> Text
$sel:nextToken:ListExtensionVersions' :: ListExtensionVersions -> Maybe Text
$sel:maxResults:ListExtensionVersions' :: ListExtensionVersions -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/extension/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
namespace,
        ByteString
"/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
name,
        ByteString
"/version"
      ]

instance Data.ToQuery ListExtensionVersions where
  toQuery :: ListExtensionVersions -> QueryString
toQuery ListExtensionVersions' {Maybe Natural
Maybe Text
Text
namespace :: Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:namespace:ListExtensionVersions' :: ListExtensionVersions -> Text
$sel:name:ListExtensionVersions' :: ListExtensionVersions -> Text
$sel:nextToken:ListExtensionVersions' :: ListExtensionVersions -> Maybe Text
$sel:maxResults:ListExtensionVersions' :: ListExtensionVersions -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListExtensionVersionsResponse' smart constructor.
data ListExtensionVersionsResponse = ListExtensionVersionsResponse'
  { -- | The list of extension versions.
    ListExtensionVersionsResponse -> Maybe [ExtensionVersionDetails]
extensionVersions :: Prelude.Maybe [ExtensionVersionDetails],
    -- | The token that indicates the start of the next sequential page of
    -- results.
    --
    -- Use this value when making the next call to this operation to continue
    -- where the last one finished.
    ListExtensionVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListExtensionVersionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListExtensionVersionsResponse
-> ListExtensionVersionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListExtensionVersionsResponse
-> ListExtensionVersionsResponse -> Bool
$c/= :: ListExtensionVersionsResponse
-> ListExtensionVersionsResponse -> Bool
== :: ListExtensionVersionsResponse
-> ListExtensionVersionsResponse -> Bool
$c== :: ListExtensionVersionsResponse
-> ListExtensionVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListExtensionVersionsResponse]
ReadPrec ListExtensionVersionsResponse
Int -> ReadS ListExtensionVersionsResponse
ReadS [ListExtensionVersionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListExtensionVersionsResponse]
$creadListPrec :: ReadPrec [ListExtensionVersionsResponse]
readPrec :: ReadPrec ListExtensionVersionsResponse
$creadPrec :: ReadPrec ListExtensionVersionsResponse
readList :: ReadS [ListExtensionVersionsResponse]
$creadList :: ReadS [ListExtensionVersionsResponse]
readsPrec :: Int -> ReadS ListExtensionVersionsResponse
$creadsPrec :: Int -> ReadS ListExtensionVersionsResponse
Prelude.Read, Int -> ListExtensionVersionsResponse -> ShowS
[ListExtensionVersionsResponse] -> ShowS
ListExtensionVersionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListExtensionVersionsResponse] -> ShowS
$cshowList :: [ListExtensionVersionsResponse] -> ShowS
show :: ListExtensionVersionsResponse -> String
$cshow :: ListExtensionVersionsResponse -> String
showsPrec :: Int -> ListExtensionVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListExtensionVersionsResponse -> ShowS
Prelude.Show, forall x.
Rep ListExtensionVersionsResponse x
-> ListExtensionVersionsResponse
forall x.
ListExtensionVersionsResponse
-> Rep ListExtensionVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListExtensionVersionsResponse x
-> ListExtensionVersionsResponse
$cfrom :: forall x.
ListExtensionVersionsResponse
-> Rep ListExtensionVersionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListExtensionVersionsResponse' 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:
--
-- 'extensionVersions', 'listExtensionVersionsResponse_extensionVersions' - The list of extension versions.
--
-- 'nextToken', 'listExtensionVersionsResponse_nextToken' - The token that indicates the start of the next sequential page of
-- results.
--
-- Use this value when making the next call to this operation to continue
-- where the last one finished.
--
-- 'httpStatus', 'listExtensionVersionsResponse_httpStatus' - The response's http status code.
newListExtensionVersionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListExtensionVersionsResponse
newListExtensionVersionsResponse :: Int -> ListExtensionVersionsResponse
newListExtensionVersionsResponse Int
pHttpStatus_ =
  ListExtensionVersionsResponse'
    { $sel:extensionVersions:ListExtensionVersionsResponse' :: Maybe [ExtensionVersionDetails]
extensionVersions =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListExtensionVersionsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListExtensionVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of extension versions.
listExtensionVersionsResponse_extensionVersions :: Lens.Lens' ListExtensionVersionsResponse (Prelude.Maybe [ExtensionVersionDetails])
listExtensionVersionsResponse_extensionVersions :: Lens'
  ListExtensionVersionsResponse (Maybe [ExtensionVersionDetails])
listExtensionVersionsResponse_extensionVersions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListExtensionVersionsResponse' {Maybe [ExtensionVersionDetails]
extensionVersions :: Maybe [ExtensionVersionDetails]
$sel:extensionVersions:ListExtensionVersionsResponse' :: ListExtensionVersionsResponse -> Maybe [ExtensionVersionDetails]
extensionVersions} -> Maybe [ExtensionVersionDetails]
extensionVersions) (\s :: ListExtensionVersionsResponse
s@ListExtensionVersionsResponse' {} Maybe [ExtensionVersionDetails]
a -> ListExtensionVersionsResponse
s {$sel:extensionVersions:ListExtensionVersionsResponse' :: Maybe [ExtensionVersionDetails]
extensionVersions = Maybe [ExtensionVersionDetails]
a} :: ListExtensionVersionsResponse) 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 token that indicates the start of the next sequential page of
-- results.
--
-- Use this value when making the next call to this operation to continue
-- where the last one finished.
listExtensionVersionsResponse_nextToken :: Lens.Lens' ListExtensionVersionsResponse (Prelude.Maybe Prelude.Text)
listExtensionVersionsResponse_nextToken :: Lens' ListExtensionVersionsResponse (Maybe Text)
listExtensionVersionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListExtensionVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListExtensionVersionsResponse' :: ListExtensionVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListExtensionVersionsResponse
s@ListExtensionVersionsResponse' {} Maybe Text
a -> ListExtensionVersionsResponse
s {$sel:nextToken:ListExtensionVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListExtensionVersionsResponse)

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

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