{-# 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.M2.ListApplicationVersions
-- 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 the application versions for a specific application.
--
-- This operation returns paginated results.
module Amazonka.M2.ListApplicationVersions
  ( -- * Creating a Request
    ListApplicationVersions (..),
    newListApplicationVersions,

    -- * Request Lenses
    listApplicationVersions_maxResults,
    listApplicationVersions_nextToken,
    listApplicationVersions_applicationId,

    -- * Destructuring the Response
    ListApplicationVersionsResponse (..),
    newListApplicationVersionsResponse,

    -- * Response Lenses
    listApplicationVersionsResponse_nextToken,
    listApplicationVersionsResponse_httpStatus,
    listApplicationVersionsResponse_applicationVersions,
  )
where

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

-- | /See:/ 'newListApplicationVersions' smart constructor.
data ListApplicationVersions = ListApplicationVersions'
  { -- | The maximum number of application versions to return.
    ListApplicationVersions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A pagination token returned from a previous call to this operation. This
    -- specifies the next item to return. To return to the beginning of the
    -- list, exclude this parameter.
    ListApplicationVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier of the application.
    ListApplicationVersions -> Text
applicationId :: Prelude.Text
  }
  deriving (ListApplicationVersions -> ListApplicationVersions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApplicationVersions -> ListApplicationVersions -> Bool
$c/= :: ListApplicationVersions -> ListApplicationVersions -> Bool
== :: ListApplicationVersions -> ListApplicationVersions -> Bool
$c== :: ListApplicationVersions -> ListApplicationVersions -> Bool
Prelude.Eq, ReadPrec [ListApplicationVersions]
ReadPrec ListApplicationVersions
Int -> ReadS ListApplicationVersions
ReadS [ListApplicationVersions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApplicationVersions]
$creadListPrec :: ReadPrec [ListApplicationVersions]
readPrec :: ReadPrec ListApplicationVersions
$creadPrec :: ReadPrec ListApplicationVersions
readList :: ReadS [ListApplicationVersions]
$creadList :: ReadS [ListApplicationVersions]
readsPrec :: Int -> ReadS ListApplicationVersions
$creadsPrec :: Int -> ReadS ListApplicationVersions
Prelude.Read, Int -> ListApplicationVersions -> ShowS
[ListApplicationVersions] -> ShowS
ListApplicationVersions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApplicationVersions] -> ShowS
$cshowList :: [ListApplicationVersions] -> ShowS
show :: ListApplicationVersions -> String
$cshow :: ListApplicationVersions -> String
showsPrec :: Int -> ListApplicationVersions -> ShowS
$cshowsPrec :: Int -> ListApplicationVersions -> ShowS
Prelude.Show, forall x. Rep ListApplicationVersions x -> ListApplicationVersions
forall x. ListApplicationVersions -> Rep ListApplicationVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListApplicationVersions x -> ListApplicationVersions
$cfrom :: forall x. ListApplicationVersions -> Rep ListApplicationVersions x
Prelude.Generic)

-- |
-- Create a value of 'ListApplicationVersions' 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', 'listApplicationVersions_maxResults' - The maximum number of application versions to return.
--
-- 'nextToken', 'listApplicationVersions_nextToken' - A pagination token returned from a previous call to this operation. This
-- specifies the next item to return. To return to the beginning of the
-- list, exclude this parameter.
--
-- 'applicationId', 'listApplicationVersions_applicationId' - The unique identifier of the application.
newListApplicationVersions ::
  -- | 'applicationId'
  Prelude.Text ->
  ListApplicationVersions
newListApplicationVersions :: Text -> ListApplicationVersions
newListApplicationVersions Text
pApplicationId_ =
  ListApplicationVersions'
    { $sel:maxResults:ListApplicationVersions' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListApplicationVersions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:applicationId:ListApplicationVersions' :: Text
applicationId = Text
pApplicationId_
    }

-- | The maximum number of application versions to return.
listApplicationVersions_maxResults :: Lens.Lens' ListApplicationVersions (Prelude.Maybe Prelude.Natural)
listApplicationVersions_maxResults :: Lens' ListApplicationVersions (Maybe Natural)
listApplicationVersions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationVersions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListApplicationVersions' :: ListApplicationVersions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListApplicationVersions
s@ListApplicationVersions' {} Maybe Natural
a -> ListApplicationVersions
s {$sel:maxResults:ListApplicationVersions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListApplicationVersions)

-- | A pagination token returned from a previous call to this operation. This
-- specifies the next item to return. To return to the beginning of the
-- list, exclude this parameter.
listApplicationVersions_nextToken :: Lens.Lens' ListApplicationVersions (Prelude.Maybe Prelude.Text)
listApplicationVersions_nextToken :: Lens' ListApplicationVersions (Maybe Text)
listApplicationVersions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApplicationVersions' :: ListApplicationVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApplicationVersions
s@ListApplicationVersions' {} Maybe Text
a -> ListApplicationVersions
s {$sel:nextToken:ListApplicationVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListApplicationVersions)

-- | The unique identifier of the application.
listApplicationVersions_applicationId :: Lens.Lens' ListApplicationVersions Prelude.Text
listApplicationVersions_applicationId :: Lens' ListApplicationVersions Text
listApplicationVersions_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationVersions' {Text
applicationId :: Text
$sel:applicationId:ListApplicationVersions' :: ListApplicationVersions -> Text
applicationId} -> Text
applicationId) (\s :: ListApplicationVersions
s@ListApplicationVersions' {} Text
a -> ListApplicationVersions
s {$sel:applicationId:ListApplicationVersions' :: Text
applicationId = Text
a} :: ListApplicationVersions)

instance Core.AWSPager ListApplicationVersions where
  page :: ListApplicationVersions
-> AWSResponse ListApplicationVersions
-> Maybe ListApplicationVersions
page ListApplicationVersions
rq AWSResponse ListApplicationVersions
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListApplicationVersions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListApplicationVersionsResponse (Maybe Text)
listApplicationVersionsResponse_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 ListApplicationVersions
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListApplicationVersionsResponse [ApplicationVersionSummary]
listApplicationVersionsResponse_applicationVersions
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListApplicationVersions
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListApplicationVersions (Maybe Text)
listApplicationVersions_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListApplicationVersions
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListApplicationVersionsResponse (Maybe Text)
listApplicationVersionsResponse_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 ListApplicationVersions where
  type
    AWSResponse ListApplicationVersions =
      ListApplicationVersionsResponse
  request :: (Service -> Service)
-> ListApplicationVersions -> Request ListApplicationVersions
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 ListApplicationVersions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListApplicationVersions)))
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
-> Int
-> [ApplicationVersionSummary]
-> ListApplicationVersionsResponse
ListApplicationVersionsResponse'
            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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            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
"applicationVersions"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListApplicationVersions where
  hashWithSalt :: Int -> ListApplicationVersions -> Int
hashWithSalt Int
_salt ListApplicationVersions' {Maybe Natural
Maybe Text
Text
applicationId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:applicationId:ListApplicationVersions' :: ListApplicationVersions -> Text
$sel:nextToken:ListApplicationVersions' :: ListApplicationVersions -> Maybe Text
$sel:maxResults:ListApplicationVersions' :: ListApplicationVersions -> 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
applicationId

instance Prelude.NFData ListApplicationVersions where
  rnf :: ListApplicationVersions -> ()
rnf ListApplicationVersions' {Maybe Natural
Maybe Text
Text
applicationId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:applicationId:ListApplicationVersions' :: ListApplicationVersions -> Text
$sel:nextToken:ListApplicationVersions' :: ListApplicationVersions -> Maybe Text
$sel:maxResults:ListApplicationVersions' :: ListApplicationVersions -> 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
applicationId

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

instance Data.ToQuery ListApplicationVersions where
  toQuery :: ListApplicationVersions -> QueryString
toQuery ListApplicationVersions' {Maybe Natural
Maybe Text
Text
applicationId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:applicationId:ListApplicationVersions' :: ListApplicationVersions -> Text
$sel:nextToken:ListApplicationVersions' :: ListApplicationVersions -> Maybe Text
$sel:maxResults:ListApplicationVersions' :: ListApplicationVersions -> 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:/ 'newListApplicationVersionsResponse' smart constructor.
data ListApplicationVersionsResponse = ListApplicationVersionsResponse'
  { -- | If there are more items to return, this contains a token that is passed
    -- to a subsequent call to this operation to retrieve the next set of
    -- items.
    ListApplicationVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListApplicationVersionsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The list of application versions.
    ListApplicationVersionsResponse -> [ApplicationVersionSummary]
applicationVersions :: [ApplicationVersionSummary]
  }
  deriving (ListApplicationVersionsResponse
-> ListApplicationVersionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApplicationVersionsResponse
-> ListApplicationVersionsResponse -> Bool
$c/= :: ListApplicationVersionsResponse
-> ListApplicationVersionsResponse -> Bool
== :: ListApplicationVersionsResponse
-> ListApplicationVersionsResponse -> Bool
$c== :: ListApplicationVersionsResponse
-> ListApplicationVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListApplicationVersionsResponse]
ReadPrec ListApplicationVersionsResponse
Int -> ReadS ListApplicationVersionsResponse
ReadS [ListApplicationVersionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApplicationVersionsResponse]
$creadListPrec :: ReadPrec [ListApplicationVersionsResponse]
readPrec :: ReadPrec ListApplicationVersionsResponse
$creadPrec :: ReadPrec ListApplicationVersionsResponse
readList :: ReadS [ListApplicationVersionsResponse]
$creadList :: ReadS [ListApplicationVersionsResponse]
readsPrec :: Int -> ReadS ListApplicationVersionsResponse
$creadsPrec :: Int -> ReadS ListApplicationVersionsResponse
Prelude.Read, Int -> ListApplicationVersionsResponse -> ShowS
[ListApplicationVersionsResponse] -> ShowS
ListApplicationVersionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApplicationVersionsResponse] -> ShowS
$cshowList :: [ListApplicationVersionsResponse] -> ShowS
show :: ListApplicationVersionsResponse -> String
$cshow :: ListApplicationVersionsResponse -> String
showsPrec :: Int -> ListApplicationVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListApplicationVersionsResponse -> ShowS
Prelude.Show, forall x.
Rep ListApplicationVersionsResponse x
-> ListApplicationVersionsResponse
forall x.
ListApplicationVersionsResponse
-> Rep ListApplicationVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListApplicationVersionsResponse x
-> ListApplicationVersionsResponse
$cfrom :: forall x.
ListApplicationVersionsResponse
-> Rep ListApplicationVersionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListApplicationVersionsResponse' 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', 'listApplicationVersionsResponse_nextToken' - If there are more items to return, this contains a token that is passed
-- to a subsequent call to this operation to retrieve the next set of
-- items.
--
-- 'httpStatus', 'listApplicationVersionsResponse_httpStatus' - The response's http status code.
--
-- 'applicationVersions', 'listApplicationVersionsResponse_applicationVersions' - The list of application versions.
newListApplicationVersionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListApplicationVersionsResponse
newListApplicationVersionsResponse :: Int -> ListApplicationVersionsResponse
newListApplicationVersionsResponse Int
pHttpStatus_ =
  ListApplicationVersionsResponse'
    { $sel:nextToken:ListApplicationVersionsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListApplicationVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:applicationVersions:ListApplicationVersionsResponse' :: [ApplicationVersionSummary]
applicationVersions = forall a. Monoid a => a
Prelude.mempty
    }

-- | If there are more items to return, this contains a token that is passed
-- to a subsequent call to this operation to retrieve the next set of
-- items.
listApplicationVersionsResponse_nextToken :: Lens.Lens' ListApplicationVersionsResponse (Prelude.Maybe Prelude.Text)
listApplicationVersionsResponse_nextToken :: Lens' ListApplicationVersionsResponse (Maybe Text)
listApplicationVersionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApplicationVersionsResponse' :: ListApplicationVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApplicationVersionsResponse
s@ListApplicationVersionsResponse' {} Maybe Text
a -> ListApplicationVersionsResponse
s {$sel:nextToken:ListApplicationVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListApplicationVersionsResponse)

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

-- | The list of application versions.
listApplicationVersionsResponse_applicationVersions :: Lens.Lens' ListApplicationVersionsResponse [ApplicationVersionSummary]
listApplicationVersionsResponse_applicationVersions :: Lens' ListApplicationVersionsResponse [ApplicationVersionSummary]
listApplicationVersionsResponse_applicationVersions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationVersionsResponse' {[ApplicationVersionSummary]
applicationVersions :: [ApplicationVersionSummary]
$sel:applicationVersions:ListApplicationVersionsResponse' :: ListApplicationVersionsResponse -> [ApplicationVersionSummary]
applicationVersions} -> [ApplicationVersionSummary]
applicationVersions) (\s :: ListApplicationVersionsResponse
s@ListApplicationVersionsResponse' {} [ApplicationVersionSummary]
a -> ListApplicationVersionsResponse
s {$sel:applicationVersions:ListApplicationVersionsResponse' :: [ApplicationVersionSummary]
applicationVersions = [ApplicationVersionSummary]
a} :: ListApplicationVersionsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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