{-# 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.IoTDeviceAdvisor.ListSuiteDefinitions
-- 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)
--
-- Lists the Device Advisor test suites you have created.
module Amazonka.IoTDeviceAdvisor.ListSuiteDefinitions
  ( -- * Creating a Request
    ListSuiteDefinitions (..),
    newListSuiteDefinitions,

    -- * Request Lenses
    listSuiteDefinitions_nextToken,
    listSuiteDefinitions_maxResults,

    -- * Destructuring the Response
    ListSuiteDefinitionsResponse (..),
    newListSuiteDefinitionsResponse,

    -- * Response Lenses
    listSuiteDefinitionsResponse_suiteDefinitionInformationList,
    listSuiteDefinitionsResponse_nextToken,
    listSuiteDefinitionsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTDeviceAdvisor.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:/ 'newListSuiteDefinitions' smart constructor.
data ListSuiteDefinitions = ListSuiteDefinitions'
  { -- | A token used to get the next set of results.
    ListSuiteDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return at once.
    ListSuiteDefinitions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListSuiteDefinitions -> ListSuiteDefinitions -> Bool
(ListSuiteDefinitions -> ListSuiteDefinitions -> Bool)
-> (ListSuiteDefinitions -> ListSuiteDefinitions -> Bool)
-> Eq ListSuiteDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSuiteDefinitions -> ListSuiteDefinitions -> Bool
$c/= :: ListSuiteDefinitions -> ListSuiteDefinitions -> Bool
== :: ListSuiteDefinitions -> ListSuiteDefinitions -> Bool
$c== :: ListSuiteDefinitions -> ListSuiteDefinitions -> Bool
Prelude.Eq, ReadPrec [ListSuiteDefinitions]
ReadPrec ListSuiteDefinitions
Int -> ReadS ListSuiteDefinitions
ReadS [ListSuiteDefinitions]
(Int -> ReadS ListSuiteDefinitions)
-> ReadS [ListSuiteDefinitions]
-> ReadPrec ListSuiteDefinitions
-> ReadPrec [ListSuiteDefinitions]
-> Read ListSuiteDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSuiteDefinitions]
$creadListPrec :: ReadPrec [ListSuiteDefinitions]
readPrec :: ReadPrec ListSuiteDefinitions
$creadPrec :: ReadPrec ListSuiteDefinitions
readList :: ReadS [ListSuiteDefinitions]
$creadList :: ReadS [ListSuiteDefinitions]
readsPrec :: Int -> ReadS ListSuiteDefinitions
$creadsPrec :: Int -> ReadS ListSuiteDefinitions
Prelude.Read, Int -> ListSuiteDefinitions -> ShowS
[ListSuiteDefinitions] -> ShowS
ListSuiteDefinitions -> String
(Int -> ListSuiteDefinitions -> ShowS)
-> (ListSuiteDefinitions -> String)
-> ([ListSuiteDefinitions] -> ShowS)
-> Show ListSuiteDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSuiteDefinitions] -> ShowS
$cshowList :: [ListSuiteDefinitions] -> ShowS
show :: ListSuiteDefinitions -> String
$cshow :: ListSuiteDefinitions -> String
showsPrec :: Int -> ListSuiteDefinitions -> ShowS
$cshowsPrec :: Int -> ListSuiteDefinitions -> ShowS
Prelude.Show, (forall x. ListSuiteDefinitions -> Rep ListSuiteDefinitions x)
-> (forall x. Rep ListSuiteDefinitions x -> ListSuiteDefinitions)
-> Generic ListSuiteDefinitions
forall x. Rep ListSuiteDefinitions x -> ListSuiteDefinitions
forall x. ListSuiteDefinitions -> Rep ListSuiteDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSuiteDefinitions x -> ListSuiteDefinitions
$cfrom :: forall x. ListSuiteDefinitions -> Rep ListSuiteDefinitions x
Prelude.Generic)

-- |
-- Create a value of 'ListSuiteDefinitions' 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', 'listSuiteDefinitions_nextToken' - A token used to get the next set of results.
--
-- 'maxResults', 'listSuiteDefinitions_maxResults' - The maximum number of results to return at once.
newListSuiteDefinitions ::
  ListSuiteDefinitions
newListSuiteDefinitions :: ListSuiteDefinitions
newListSuiteDefinitions =
  ListSuiteDefinitions' :: Maybe Text -> Maybe Natural -> ListSuiteDefinitions
ListSuiteDefinitions'
    { $sel:nextToken:ListSuiteDefinitions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListSuiteDefinitions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | A token used to get the next set of results.
listSuiteDefinitions_nextToken :: Lens.Lens' ListSuiteDefinitions (Prelude.Maybe Prelude.Text)
listSuiteDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSuiteDefinitions -> f ListSuiteDefinitions
listSuiteDefinitions_nextToken = (ListSuiteDefinitions -> Maybe Text)
-> (ListSuiteDefinitions -> Maybe Text -> ListSuiteDefinitions)
-> Lens
     ListSuiteDefinitions ListSuiteDefinitions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSuiteDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSuiteDefinitions' :: ListSuiteDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSuiteDefinitions
s@ListSuiteDefinitions' {} Maybe Text
a -> ListSuiteDefinitions
s {$sel:nextToken:ListSuiteDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListSuiteDefinitions)

-- | The maximum number of results to return at once.
listSuiteDefinitions_maxResults :: Lens.Lens' ListSuiteDefinitions (Prelude.Maybe Prelude.Natural)
listSuiteDefinitions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSuiteDefinitions -> f ListSuiteDefinitions
listSuiteDefinitions_maxResults = (ListSuiteDefinitions -> Maybe Natural)
-> (ListSuiteDefinitions -> Maybe Natural -> ListSuiteDefinitions)
-> Lens
     ListSuiteDefinitions
     ListSuiteDefinitions
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSuiteDefinitions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSuiteDefinitions' :: ListSuiteDefinitions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSuiteDefinitions
s@ListSuiteDefinitions' {} Maybe Natural
a -> ListSuiteDefinitions
s {$sel:maxResults:ListSuiteDefinitions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSuiteDefinitions)

instance Core.AWSRequest ListSuiteDefinitions where
  type
    AWSResponse ListSuiteDefinitions =
      ListSuiteDefinitionsResponse
  request :: ListSuiteDefinitions -> Request ListSuiteDefinitions
request = Service -> ListSuiteDefinitions -> Request ListSuiteDefinitions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListSuiteDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSuiteDefinitions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListSuiteDefinitions))
-> Logger
-> Service
-> Proxy ListSuiteDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSuiteDefinitions)))
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 [SuiteDefinitionInformation]
-> Maybe Text -> Int -> ListSuiteDefinitionsResponse
ListSuiteDefinitionsResponse'
            (Maybe [SuiteDefinitionInformation]
 -> Maybe Text -> Int -> ListSuiteDefinitionsResponse)
-> Either String (Maybe [SuiteDefinitionInformation])
-> Either
     String (Maybe Text -> Int -> ListSuiteDefinitionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [SuiteDefinitionInformation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"suiteDefinitionInformationList"
                            Either String (Maybe (Maybe [SuiteDefinitionInformation]))
-> Maybe [SuiteDefinitionInformation]
-> Either String (Maybe [SuiteDefinitionInformation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SuiteDefinitionInformation]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListSuiteDefinitionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListSuiteDefinitionsResponse)
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 -> ListSuiteDefinitionsResponse)
-> Either String Int -> Either String ListSuiteDefinitionsResponse
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 ListSuiteDefinitions

instance Prelude.NFData ListSuiteDefinitions

instance Core.ToHeaders ListSuiteDefinitions where
  toHeaders :: ListSuiteDefinitions -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListSuiteDefinitions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath ListSuiteDefinitions where
  toPath :: ListSuiteDefinitions -> ByteString
toPath = ByteString -> ListSuiteDefinitions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/suiteDefinitions"

instance Core.ToQuery ListSuiteDefinitions where
  toQuery :: ListSuiteDefinitions -> QueryString
toQuery ListSuiteDefinitions' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListSuiteDefinitions' :: ListSuiteDefinitions -> Maybe Natural
$sel:nextToken:ListSuiteDefinitions' :: ListSuiteDefinitions -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListSuiteDefinitionsResponse' smart constructor.
data ListSuiteDefinitionsResponse = ListSuiteDefinitionsResponse'
  { -- | An array of objects that provide summaries of information about the
    -- suite definitions in the list.
    ListSuiteDefinitionsResponse -> Maybe [SuiteDefinitionInformation]
suiteDefinitionInformationList :: Prelude.Maybe [SuiteDefinitionInformation],
    -- | A token used to get the next set of results.
    ListSuiteDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListSuiteDefinitionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListSuiteDefinitionsResponse
-> ListSuiteDefinitionsResponse -> Bool
(ListSuiteDefinitionsResponse
 -> ListSuiteDefinitionsResponse -> Bool)
-> (ListSuiteDefinitionsResponse
    -> ListSuiteDefinitionsResponse -> Bool)
-> Eq ListSuiteDefinitionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSuiteDefinitionsResponse
-> ListSuiteDefinitionsResponse -> Bool
$c/= :: ListSuiteDefinitionsResponse
-> ListSuiteDefinitionsResponse -> Bool
== :: ListSuiteDefinitionsResponse
-> ListSuiteDefinitionsResponse -> Bool
$c== :: ListSuiteDefinitionsResponse
-> ListSuiteDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListSuiteDefinitionsResponse]
ReadPrec ListSuiteDefinitionsResponse
Int -> ReadS ListSuiteDefinitionsResponse
ReadS [ListSuiteDefinitionsResponse]
(Int -> ReadS ListSuiteDefinitionsResponse)
-> ReadS [ListSuiteDefinitionsResponse]
-> ReadPrec ListSuiteDefinitionsResponse
-> ReadPrec [ListSuiteDefinitionsResponse]
-> Read ListSuiteDefinitionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSuiteDefinitionsResponse]
$creadListPrec :: ReadPrec [ListSuiteDefinitionsResponse]
readPrec :: ReadPrec ListSuiteDefinitionsResponse
$creadPrec :: ReadPrec ListSuiteDefinitionsResponse
readList :: ReadS [ListSuiteDefinitionsResponse]
$creadList :: ReadS [ListSuiteDefinitionsResponse]
readsPrec :: Int -> ReadS ListSuiteDefinitionsResponse
$creadsPrec :: Int -> ReadS ListSuiteDefinitionsResponse
Prelude.Read, Int -> ListSuiteDefinitionsResponse -> ShowS
[ListSuiteDefinitionsResponse] -> ShowS
ListSuiteDefinitionsResponse -> String
(Int -> ListSuiteDefinitionsResponse -> ShowS)
-> (ListSuiteDefinitionsResponse -> String)
-> ([ListSuiteDefinitionsResponse] -> ShowS)
-> Show ListSuiteDefinitionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSuiteDefinitionsResponse] -> ShowS
$cshowList :: [ListSuiteDefinitionsResponse] -> ShowS
show :: ListSuiteDefinitionsResponse -> String
$cshow :: ListSuiteDefinitionsResponse -> String
showsPrec :: Int -> ListSuiteDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListSuiteDefinitionsResponse -> ShowS
Prelude.Show, (forall x.
 ListSuiteDefinitionsResponse -> Rep ListSuiteDefinitionsResponse x)
-> (forall x.
    Rep ListSuiteDefinitionsResponse x -> ListSuiteDefinitionsResponse)
-> Generic ListSuiteDefinitionsResponse
forall x.
Rep ListSuiteDefinitionsResponse x -> ListSuiteDefinitionsResponse
forall x.
ListSuiteDefinitionsResponse -> Rep ListSuiteDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSuiteDefinitionsResponse x -> ListSuiteDefinitionsResponse
$cfrom :: forall x.
ListSuiteDefinitionsResponse -> Rep ListSuiteDefinitionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSuiteDefinitionsResponse' 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:
--
-- 'suiteDefinitionInformationList', 'listSuiteDefinitionsResponse_suiteDefinitionInformationList' - An array of objects that provide summaries of information about the
-- suite definitions in the list.
--
-- 'nextToken', 'listSuiteDefinitionsResponse_nextToken' - A token used to get the next set of results.
--
-- 'httpStatus', 'listSuiteDefinitionsResponse_httpStatus' - The response's http status code.
newListSuiteDefinitionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSuiteDefinitionsResponse
newListSuiteDefinitionsResponse :: Int -> ListSuiteDefinitionsResponse
newListSuiteDefinitionsResponse Int
pHttpStatus_ =
  ListSuiteDefinitionsResponse' :: Maybe [SuiteDefinitionInformation]
-> Maybe Text -> Int -> ListSuiteDefinitionsResponse
ListSuiteDefinitionsResponse'
    { $sel:suiteDefinitionInformationList:ListSuiteDefinitionsResponse' :: Maybe [SuiteDefinitionInformation]
suiteDefinitionInformationList =
        Maybe [SuiteDefinitionInformation]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSuiteDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSuiteDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of objects that provide summaries of information about the
-- suite definitions in the list.
listSuiteDefinitionsResponse_suiteDefinitionInformationList :: Lens.Lens' ListSuiteDefinitionsResponse (Prelude.Maybe [SuiteDefinitionInformation])
listSuiteDefinitionsResponse_suiteDefinitionInformationList :: (Maybe [SuiteDefinitionInformation]
 -> f (Maybe [SuiteDefinitionInformation]))
-> ListSuiteDefinitionsResponse -> f ListSuiteDefinitionsResponse
listSuiteDefinitionsResponse_suiteDefinitionInformationList = (ListSuiteDefinitionsResponse
 -> Maybe [SuiteDefinitionInformation])
-> (ListSuiteDefinitionsResponse
    -> Maybe [SuiteDefinitionInformation]
    -> ListSuiteDefinitionsResponse)
-> Lens
     ListSuiteDefinitionsResponse
     ListSuiteDefinitionsResponse
     (Maybe [SuiteDefinitionInformation])
     (Maybe [SuiteDefinitionInformation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSuiteDefinitionsResponse' {Maybe [SuiteDefinitionInformation]
suiteDefinitionInformationList :: Maybe [SuiteDefinitionInformation]
$sel:suiteDefinitionInformationList:ListSuiteDefinitionsResponse' :: ListSuiteDefinitionsResponse -> Maybe [SuiteDefinitionInformation]
suiteDefinitionInformationList} -> Maybe [SuiteDefinitionInformation]
suiteDefinitionInformationList) (\s :: ListSuiteDefinitionsResponse
s@ListSuiteDefinitionsResponse' {} Maybe [SuiteDefinitionInformation]
a -> ListSuiteDefinitionsResponse
s {$sel:suiteDefinitionInformationList:ListSuiteDefinitionsResponse' :: Maybe [SuiteDefinitionInformation]
suiteDefinitionInformationList = Maybe [SuiteDefinitionInformation]
a} :: ListSuiteDefinitionsResponse) ((Maybe [SuiteDefinitionInformation]
  -> f (Maybe [SuiteDefinitionInformation]))
 -> ListSuiteDefinitionsResponse -> f ListSuiteDefinitionsResponse)
-> ((Maybe [SuiteDefinitionInformation]
     -> f (Maybe [SuiteDefinitionInformation]))
    -> Maybe [SuiteDefinitionInformation]
    -> f (Maybe [SuiteDefinitionInformation]))
-> (Maybe [SuiteDefinitionInformation]
    -> f (Maybe [SuiteDefinitionInformation]))
-> ListSuiteDefinitionsResponse
-> f ListSuiteDefinitionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [SuiteDefinitionInformation]
  [SuiteDefinitionInformation]
  [SuiteDefinitionInformation]
  [SuiteDefinitionInformation]
-> Iso
     (Maybe [SuiteDefinitionInformation])
     (Maybe [SuiteDefinitionInformation])
     (Maybe [SuiteDefinitionInformation])
     (Maybe [SuiteDefinitionInformation])
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
  [SuiteDefinitionInformation]
  [SuiteDefinitionInformation]
  [SuiteDefinitionInformation]
  [SuiteDefinitionInformation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token used to get the next set of results.
listSuiteDefinitionsResponse_nextToken :: Lens.Lens' ListSuiteDefinitionsResponse (Prelude.Maybe Prelude.Text)
listSuiteDefinitionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSuiteDefinitionsResponse -> f ListSuiteDefinitionsResponse
listSuiteDefinitionsResponse_nextToken = (ListSuiteDefinitionsResponse -> Maybe Text)
-> (ListSuiteDefinitionsResponse
    -> Maybe Text -> ListSuiteDefinitionsResponse)
-> Lens
     ListSuiteDefinitionsResponse
     ListSuiteDefinitionsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSuiteDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSuiteDefinitionsResponse' :: ListSuiteDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSuiteDefinitionsResponse
s@ListSuiteDefinitionsResponse' {} Maybe Text
a -> ListSuiteDefinitionsResponse
s {$sel:nextToken:ListSuiteDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSuiteDefinitionsResponse)

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

instance Prelude.NFData ListSuiteDefinitionsResponse