{-# 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.DeviceFarm.ListTestGridProjects
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a list of all Selenium testing projects in your account.
module Amazonka.DeviceFarm.ListTestGridProjects
  ( -- * Creating a Request
    ListTestGridProjects (..),
    newListTestGridProjects,

    -- * Request Lenses
    listTestGridProjects_maxResult,
    listTestGridProjects_nextToken,

    -- * Destructuring the Response
    ListTestGridProjectsResponse (..),
    newListTestGridProjectsResponse,

    -- * Response Lenses
    listTestGridProjectsResponse_testGridProjects,
    listTestGridProjectsResponse_nextToken,
    listTestGridProjectsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListTestGridProjects' smart constructor.
data ListTestGridProjects = ListTestGridProjects'
  { -- | Return no more than this number of results.
    ListTestGridProjects -> Maybe Natural
maxResult :: Prelude.Maybe Prelude.Natural,
    -- | From a response, used to continue a paginated listing.
    ListTestGridProjects -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListTestGridProjects -> ListTestGridProjects -> Bool
(ListTestGridProjects -> ListTestGridProjects -> Bool)
-> (ListTestGridProjects -> ListTestGridProjects -> Bool)
-> Eq ListTestGridProjects
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTestGridProjects -> ListTestGridProjects -> Bool
$c/= :: ListTestGridProjects -> ListTestGridProjects -> Bool
== :: ListTestGridProjects -> ListTestGridProjects -> Bool
$c== :: ListTestGridProjects -> ListTestGridProjects -> Bool
Prelude.Eq, ReadPrec [ListTestGridProjects]
ReadPrec ListTestGridProjects
Int -> ReadS ListTestGridProjects
ReadS [ListTestGridProjects]
(Int -> ReadS ListTestGridProjects)
-> ReadS [ListTestGridProjects]
-> ReadPrec ListTestGridProjects
-> ReadPrec [ListTestGridProjects]
-> Read ListTestGridProjects
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTestGridProjects]
$creadListPrec :: ReadPrec [ListTestGridProjects]
readPrec :: ReadPrec ListTestGridProjects
$creadPrec :: ReadPrec ListTestGridProjects
readList :: ReadS [ListTestGridProjects]
$creadList :: ReadS [ListTestGridProjects]
readsPrec :: Int -> ReadS ListTestGridProjects
$creadsPrec :: Int -> ReadS ListTestGridProjects
Prelude.Read, Int -> ListTestGridProjects -> ShowS
[ListTestGridProjects] -> ShowS
ListTestGridProjects -> String
(Int -> ListTestGridProjects -> ShowS)
-> (ListTestGridProjects -> String)
-> ([ListTestGridProjects] -> ShowS)
-> Show ListTestGridProjects
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTestGridProjects] -> ShowS
$cshowList :: [ListTestGridProjects] -> ShowS
show :: ListTestGridProjects -> String
$cshow :: ListTestGridProjects -> String
showsPrec :: Int -> ListTestGridProjects -> ShowS
$cshowsPrec :: Int -> ListTestGridProjects -> ShowS
Prelude.Show, (forall x. ListTestGridProjects -> Rep ListTestGridProjects x)
-> (forall x. Rep ListTestGridProjects x -> ListTestGridProjects)
-> Generic ListTestGridProjects
forall x. Rep ListTestGridProjects x -> ListTestGridProjects
forall x. ListTestGridProjects -> Rep ListTestGridProjects x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTestGridProjects x -> ListTestGridProjects
$cfrom :: forall x. ListTestGridProjects -> Rep ListTestGridProjects x
Prelude.Generic)

-- |
-- Create a value of 'ListTestGridProjects' 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:
--
-- 'maxResult', 'listTestGridProjects_maxResult' - Return no more than this number of results.
--
-- 'nextToken', 'listTestGridProjects_nextToken' - From a response, used to continue a paginated listing.
newListTestGridProjects ::
  ListTestGridProjects
newListTestGridProjects :: ListTestGridProjects
newListTestGridProjects =
  ListTestGridProjects' :: Maybe Natural -> Maybe Text -> ListTestGridProjects
ListTestGridProjects'
    { $sel:maxResult:ListTestGridProjects' :: Maybe Natural
maxResult = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListTestGridProjects' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Return no more than this number of results.
listTestGridProjects_maxResult :: Lens.Lens' ListTestGridProjects (Prelude.Maybe Prelude.Natural)
listTestGridProjects_maxResult :: (Maybe Natural -> f (Maybe Natural))
-> ListTestGridProjects -> f ListTestGridProjects
listTestGridProjects_maxResult = (ListTestGridProjects -> Maybe Natural)
-> (ListTestGridProjects -> Maybe Natural -> ListTestGridProjects)
-> Lens
     ListTestGridProjects
     ListTestGridProjects
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTestGridProjects' {Maybe Natural
maxResult :: Maybe Natural
$sel:maxResult:ListTestGridProjects' :: ListTestGridProjects -> Maybe Natural
maxResult} -> Maybe Natural
maxResult) (\s :: ListTestGridProjects
s@ListTestGridProjects' {} Maybe Natural
a -> ListTestGridProjects
s {$sel:maxResult:ListTestGridProjects' :: Maybe Natural
maxResult = Maybe Natural
a} :: ListTestGridProjects)

-- | From a response, used to continue a paginated listing.
listTestGridProjects_nextToken :: Lens.Lens' ListTestGridProjects (Prelude.Maybe Prelude.Text)
listTestGridProjects_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTestGridProjects -> f ListTestGridProjects
listTestGridProjects_nextToken = (ListTestGridProjects -> Maybe Text)
-> (ListTestGridProjects -> Maybe Text -> ListTestGridProjects)
-> Lens
     ListTestGridProjects ListTestGridProjects (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTestGridProjects' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTestGridProjects' :: ListTestGridProjects -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTestGridProjects
s@ListTestGridProjects' {} Maybe Text
a -> ListTestGridProjects
s {$sel:nextToken:ListTestGridProjects' :: Maybe Text
nextToken = Maybe Text
a} :: ListTestGridProjects)

instance Core.AWSRequest ListTestGridProjects where
  type
    AWSResponse ListTestGridProjects =
      ListTestGridProjectsResponse
  request :: ListTestGridProjects -> Request ListTestGridProjects
request = Service -> ListTestGridProjects -> Request ListTestGridProjects
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListTestGridProjects
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListTestGridProjects)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListTestGridProjects))
-> Logger
-> Service
-> Proxy ListTestGridProjects
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListTestGridProjects)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [TestGridProject]
-> Maybe Text -> Int -> ListTestGridProjectsResponse
ListTestGridProjectsResponse'
            (Maybe [TestGridProject]
 -> Maybe Text -> Int -> ListTestGridProjectsResponse)
-> Either String (Maybe [TestGridProject])
-> Either
     String (Maybe Text -> Int -> ListTestGridProjectsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [TestGridProject]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"testGridProjects"
                            Either String (Maybe (Maybe [TestGridProject]))
-> Maybe [TestGridProject]
-> Either String (Maybe [TestGridProject])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TestGridProject]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListTestGridProjectsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListTestGridProjectsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextToken")
            Either String (Int -> ListTestGridProjectsResponse)
-> Either String Int -> Either String ListTestGridProjectsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListTestGridProjects

instance Prelude.NFData ListTestGridProjects

instance Core.ToHeaders ListTestGridProjects where
  toHeaders :: ListTestGridProjects -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListTestGridProjects -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"DeviceFarm_20150623.ListTestGridProjects" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListTestGridProjects where
  toJSON :: ListTestGridProjects -> Value
toJSON ListTestGridProjects' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResult :: Maybe Natural
$sel:nextToken:ListTestGridProjects' :: ListTestGridProjects -> Maybe Text
$sel:maxResult:ListTestGridProjects' :: ListTestGridProjects -> Maybe Natural
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"maxResult" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResult,
            (Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

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

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

-- | /See:/ 'newListTestGridProjectsResponse' smart constructor.
data ListTestGridProjectsResponse = ListTestGridProjectsResponse'
  { -- | The list of TestGridProjects, based on a ListTestGridProjectsRequest.
    ListTestGridProjectsResponse -> Maybe [TestGridProject]
testGridProjects :: Prelude.Maybe [TestGridProject],
    -- | Used for pagination. Pass into ListTestGridProjects to get more results
    -- in a paginated request.
    ListTestGridProjectsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListTestGridProjectsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListTestGridProjectsResponse
-> ListTestGridProjectsResponse -> Bool
(ListTestGridProjectsResponse
 -> ListTestGridProjectsResponse -> Bool)
-> (ListTestGridProjectsResponse
    -> ListTestGridProjectsResponse -> Bool)
-> Eq ListTestGridProjectsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTestGridProjectsResponse
-> ListTestGridProjectsResponse -> Bool
$c/= :: ListTestGridProjectsResponse
-> ListTestGridProjectsResponse -> Bool
== :: ListTestGridProjectsResponse
-> ListTestGridProjectsResponse -> Bool
$c== :: ListTestGridProjectsResponse
-> ListTestGridProjectsResponse -> Bool
Prelude.Eq, ReadPrec [ListTestGridProjectsResponse]
ReadPrec ListTestGridProjectsResponse
Int -> ReadS ListTestGridProjectsResponse
ReadS [ListTestGridProjectsResponse]
(Int -> ReadS ListTestGridProjectsResponse)
-> ReadS [ListTestGridProjectsResponse]
-> ReadPrec ListTestGridProjectsResponse
-> ReadPrec [ListTestGridProjectsResponse]
-> Read ListTestGridProjectsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTestGridProjectsResponse]
$creadListPrec :: ReadPrec [ListTestGridProjectsResponse]
readPrec :: ReadPrec ListTestGridProjectsResponse
$creadPrec :: ReadPrec ListTestGridProjectsResponse
readList :: ReadS [ListTestGridProjectsResponse]
$creadList :: ReadS [ListTestGridProjectsResponse]
readsPrec :: Int -> ReadS ListTestGridProjectsResponse
$creadsPrec :: Int -> ReadS ListTestGridProjectsResponse
Prelude.Read, Int -> ListTestGridProjectsResponse -> ShowS
[ListTestGridProjectsResponse] -> ShowS
ListTestGridProjectsResponse -> String
(Int -> ListTestGridProjectsResponse -> ShowS)
-> (ListTestGridProjectsResponse -> String)
-> ([ListTestGridProjectsResponse] -> ShowS)
-> Show ListTestGridProjectsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTestGridProjectsResponse] -> ShowS
$cshowList :: [ListTestGridProjectsResponse] -> ShowS
show :: ListTestGridProjectsResponse -> String
$cshow :: ListTestGridProjectsResponse -> String
showsPrec :: Int -> ListTestGridProjectsResponse -> ShowS
$cshowsPrec :: Int -> ListTestGridProjectsResponse -> ShowS
Prelude.Show, (forall x.
 ListTestGridProjectsResponse -> Rep ListTestGridProjectsResponse x)
-> (forall x.
    Rep ListTestGridProjectsResponse x -> ListTestGridProjectsResponse)
-> Generic ListTestGridProjectsResponse
forall x.
Rep ListTestGridProjectsResponse x -> ListTestGridProjectsResponse
forall x.
ListTestGridProjectsResponse -> Rep ListTestGridProjectsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTestGridProjectsResponse x -> ListTestGridProjectsResponse
$cfrom :: forall x.
ListTestGridProjectsResponse -> Rep ListTestGridProjectsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListTestGridProjectsResponse' 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:
--
-- 'testGridProjects', 'listTestGridProjectsResponse_testGridProjects' - The list of TestGridProjects, based on a ListTestGridProjectsRequest.
--
-- 'nextToken', 'listTestGridProjectsResponse_nextToken' - Used for pagination. Pass into ListTestGridProjects to get more results
-- in a paginated request.
--
-- 'httpStatus', 'listTestGridProjectsResponse_httpStatus' - The response's http status code.
newListTestGridProjectsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListTestGridProjectsResponse
newListTestGridProjectsResponse :: Int -> ListTestGridProjectsResponse
newListTestGridProjectsResponse Int
pHttpStatus_ =
  ListTestGridProjectsResponse' :: Maybe [TestGridProject]
-> Maybe Text -> Int -> ListTestGridProjectsResponse
ListTestGridProjectsResponse'
    { $sel:testGridProjects:ListTestGridProjectsResponse' :: Maybe [TestGridProject]
testGridProjects =
        Maybe [TestGridProject]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListTestGridProjectsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListTestGridProjectsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of TestGridProjects, based on a ListTestGridProjectsRequest.
listTestGridProjectsResponse_testGridProjects :: Lens.Lens' ListTestGridProjectsResponse (Prelude.Maybe [TestGridProject])
listTestGridProjectsResponse_testGridProjects :: (Maybe [TestGridProject] -> f (Maybe [TestGridProject]))
-> ListTestGridProjectsResponse -> f ListTestGridProjectsResponse
listTestGridProjectsResponse_testGridProjects = (ListTestGridProjectsResponse -> Maybe [TestGridProject])
-> (ListTestGridProjectsResponse
    -> Maybe [TestGridProject] -> ListTestGridProjectsResponse)
-> Lens
     ListTestGridProjectsResponse
     ListTestGridProjectsResponse
     (Maybe [TestGridProject])
     (Maybe [TestGridProject])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTestGridProjectsResponse' {Maybe [TestGridProject]
testGridProjects :: Maybe [TestGridProject]
$sel:testGridProjects:ListTestGridProjectsResponse' :: ListTestGridProjectsResponse -> Maybe [TestGridProject]
testGridProjects} -> Maybe [TestGridProject]
testGridProjects) (\s :: ListTestGridProjectsResponse
s@ListTestGridProjectsResponse' {} Maybe [TestGridProject]
a -> ListTestGridProjectsResponse
s {$sel:testGridProjects:ListTestGridProjectsResponse' :: Maybe [TestGridProject]
testGridProjects = Maybe [TestGridProject]
a} :: ListTestGridProjectsResponse) ((Maybe [TestGridProject] -> f (Maybe [TestGridProject]))
 -> ListTestGridProjectsResponse -> f ListTestGridProjectsResponse)
-> ((Maybe [TestGridProject] -> f (Maybe [TestGridProject]))
    -> Maybe [TestGridProject] -> f (Maybe [TestGridProject]))
-> (Maybe [TestGridProject] -> f (Maybe [TestGridProject]))
-> ListTestGridProjectsResponse
-> f ListTestGridProjectsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TestGridProject]
  [TestGridProject]
  [TestGridProject]
  [TestGridProject]
-> Iso
     (Maybe [TestGridProject])
     (Maybe [TestGridProject])
     (Maybe [TestGridProject])
     (Maybe [TestGridProject])
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 AnIso
  [TestGridProject]
  [TestGridProject]
  [TestGridProject]
  [TestGridProject]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Used for pagination. Pass into ListTestGridProjects to get more results
-- in a paginated request.
listTestGridProjectsResponse_nextToken :: Lens.Lens' ListTestGridProjectsResponse (Prelude.Maybe Prelude.Text)
listTestGridProjectsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTestGridProjectsResponse -> f ListTestGridProjectsResponse
listTestGridProjectsResponse_nextToken = (ListTestGridProjectsResponse -> Maybe Text)
-> (ListTestGridProjectsResponse
    -> Maybe Text -> ListTestGridProjectsResponse)
-> Lens
     ListTestGridProjectsResponse
     ListTestGridProjectsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTestGridProjectsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTestGridProjectsResponse' :: ListTestGridProjectsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTestGridProjectsResponse
s@ListTestGridProjectsResponse' {} Maybe Text
a -> ListTestGridProjectsResponse
s {$sel:nextToken:ListTestGridProjectsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTestGridProjectsResponse)

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

instance Prelude.NFData ListTestGridProjectsResponse