{-# 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.VoiceId.ListSpeakers
-- 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 all speakers in a specified domain.
module Amazonka.VoiceId.ListSpeakers
  ( -- * Creating a Request
    ListSpeakers (..),
    newListSpeakers,

    -- * Request Lenses
    listSpeakers_nextToken,
    listSpeakers_maxResults,
    listSpeakers_domainId,

    -- * Destructuring the Response
    ListSpeakersResponse (..),
    newListSpeakersResponse,

    -- * Response Lenses
    listSpeakersResponse_speakerSummaries,
    listSpeakersResponse_nextToken,
    listSpeakersResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListSpeakers' smart constructor.
data ListSpeakers = ListSpeakers'
  { -- | If @NextToken@ is returned, there are more results available. The value
    -- of @NextToken@ is a unique pagination token for each page. Make the call
    -- again using the returned token to retrieve the next page. Keep all other
    -- arguments unchanged. Each pagination token expires after 24 hours.
    ListSpeakers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results that are returned per call. You can use
    -- @NextToken@ to obtain further pages of results. The default is 100; the
    -- maximum allowed page size is also 100.
    ListSpeakers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The identifier of the domain.
    ListSpeakers -> Text
domainId :: Prelude.Text
  }
  deriving (ListSpeakers -> ListSpeakers -> Bool
(ListSpeakers -> ListSpeakers -> Bool)
-> (ListSpeakers -> ListSpeakers -> Bool) -> Eq ListSpeakers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSpeakers -> ListSpeakers -> Bool
$c/= :: ListSpeakers -> ListSpeakers -> Bool
== :: ListSpeakers -> ListSpeakers -> Bool
$c== :: ListSpeakers -> ListSpeakers -> Bool
Prelude.Eq, ReadPrec [ListSpeakers]
ReadPrec ListSpeakers
Int -> ReadS ListSpeakers
ReadS [ListSpeakers]
(Int -> ReadS ListSpeakers)
-> ReadS [ListSpeakers]
-> ReadPrec ListSpeakers
-> ReadPrec [ListSpeakers]
-> Read ListSpeakers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSpeakers]
$creadListPrec :: ReadPrec [ListSpeakers]
readPrec :: ReadPrec ListSpeakers
$creadPrec :: ReadPrec ListSpeakers
readList :: ReadS [ListSpeakers]
$creadList :: ReadS [ListSpeakers]
readsPrec :: Int -> ReadS ListSpeakers
$creadsPrec :: Int -> ReadS ListSpeakers
Prelude.Read, Int -> ListSpeakers -> ShowS
[ListSpeakers] -> ShowS
ListSpeakers -> String
(Int -> ListSpeakers -> ShowS)
-> (ListSpeakers -> String)
-> ([ListSpeakers] -> ShowS)
-> Show ListSpeakers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSpeakers] -> ShowS
$cshowList :: [ListSpeakers] -> ShowS
show :: ListSpeakers -> String
$cshow :: ListSpeakers -> String
showsPrec :: Int -> ListSpeakers -> ShowS
$cshowsPrec :: Int -> ListSpeakers -> ShowS
Prelude.Show, (forall x. ListSpeakers -> Rep ListSpeakers x)
-> (forall x. Rep ListSpeakers x -> ListSpeakers)
-> Generic ListSpeakers
forall x. Rep ListSpeakers x -> ListSpeakers
forall x. ListSpeakers -> Rep ListSpeakers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSpeakers x -> ListSpeakers
$cfrom :: forall x. ListSpeakers -> Rep ListSpeakers x
Prelude.Generic)

-- |
-- Create a value of 'ListSpeakers' 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', 'listSpeakers_nextToken' - If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
--
-- 'maxResults', 'listSpeakers_maxResults' - The maximum number of results that are returned per call. You can use
-- @NextToken@ to obtain further pages of results. The default is 100; the
-- maximum allowed page size is also 100.
--
-- 'domainId', 'listSpeakers_domainId' - The identifier of the domain.
newListSpeakers ::
  -- | 'domainId'
  Prelude.Text ->
  ListSpeakers
newListSpeakers :: Text -> ListSpeakers
newListSpeakers Text
pDomainId_ =
  ListSpeakers' :: Maybe Text -> Maybe Natural -> Text -> ListSpeakers
ListSpeakers'
    { $sel:nextToken:ListSpeakers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListSpeakers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:domainId:ListSpeakers' :: Text
domainId = Text
pDomainId_
    }

-- | If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
listSpeakers_nextToken :: Lens.Lens' ListSpeakers (Prelude.Maybe Prelude.Text)
listSpeakers_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListSpeakers -> f ListSpeakers
listSpeakers_nextToken = (ListSpeakers -> Maybe Text)
-> (ListSpeakers -> Maybe Text -> ListSpeakers)
-> Lens ListSpeakers ListSpeakers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSpeakers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSpeakers' :: ListSpeakers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSpeakers
s@ListSpeakers' {} Maybe Text
a -> ListSpeakers
s {$sel:nextToken:ListSpeakers' :: Maybe Text
nextToken = Maybe Text
a} :: ListSpeakers)

-- | The maximum number of results that are returned per call. You can use
-- @NextToken@ to obtain further pages of results. The default is 100; the
-- maximum allowed page size is also 100.
listSpeakers_maxResults :: Lens.Lens' ListSpeakers (Prelude.Maybe Prelude.Natural)
listSpeakers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSpeakers -> f ListSpeakers
listSpeakers_maxResults = (ListSpeakers -> Maybe Natural)
-> (ListSpeakers -> Maybe Natural -> ListSpeakers)
-> Lens ListSpeakers ListSpeakers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSpeakers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSpeakers' :: ListSpeakers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSpeakers
s@ListSpeakers' {} Maybe Natural
a -> ListSpeakers
s {$sel:maxResults:ListSpeakers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSpeakers)

-- | The identifier of the domain.
listSpeakers_domainId :: Lens.Lens' ListSpeakers Prelude.Text
listSpeakers_domainId :: (Text -> f Text) -> ListSpeakers -> f ListSpeakers
listSpeakers_domainId = (ListSpeakers -> Text)
-> (ListSpeakers -> Text -> ListSpeakers)
-> Lens ListSpeakers ListSpeakers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSpeakers' {Text
domainId :: Text
$sel:domainId:ListSpeakers' :: ListSpeakers -> Text
domainId} -> Text
domainId) (\s :: ListSpeakers
s@ListSpeakers' {} Text
a -> ListSpeakers
s {$sel:domainId:ListSpeakers' :: Text
domainId = Text
a} :: ListSpeakers)

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

instance Prelude.NFData ListSpeakers

instance Core.ToHeaders ListSpeakers where
  toHeaders :: ListSpeakers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListSpeakers -> 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
"VoiceID.ListSpeakers" :: Prelude.ByteString),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListSpeakers where
  toJSON :: ListSpeakers -> Value
toJSON ListSpeakers' {Maybe Natural
Maybe Text
Text
domainId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:domainId:ListSpeakers' :: ListSpeakers -> Text
$sel:maxResults:ListSpeakers' :: ListSpeakers -> Maybe Natural
$sel:nextToken:ListSpeakers' :: ListSpeakers -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (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,
            (Text
"MaxResults" 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
maxResults,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DomainId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainId)
          ]
      )

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

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

-- | /See:/ 'newListSpeakersResponse' smart constructor.
data ListSpeakersResponse = ListSpeakersResponse'
  { -- | A list containing details about each speaker in the Amazon Web Services
    -- account.
    ListSpeakersResponse -> Maybe [SpeakerSummary]
speakerSummaries :: Prelude.Maybe [SpeakerSummary],
    -- | If @NextToken@ is returned, there are more results available. The value
    -- of @NextToken@ is a unique pagination token for each page. Make the call
    -- again using the returned token to retrieve the next page. Keep all other
    -- arguments unchanged. Each pagination token expires after 24 hours.
    ListSpeakersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListSpeakersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListSpeakersResponse -> ListSpeakersResponse -> Bool
(ListSpeakersResponse -> ListSpeakersResponse -> Bool)
-> (ListSpeakersResponse -> ListSpeakersResponse -> Bool)
-> Eq ListSpeakersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSpeakersResponse -> ListSpeakersResponse -> Bool
$c/= :: ListSpeakersResponse -> ListSpeakersResponse -> Bool
== :: ListSpeakersResponse -> ListSpeakersResponse -> Bool
$c== :: ListSpeakersResponse -> ListSpeakersResponse -> Bool
Prelude.Eq, Int -> ListSpeakersResponse -> ShowS
[ListSpeakersResponse] -> ShowS
ListSpeakersResponse -> String
(Int -> ListSpeakersResponse -> ShowS)
-> (ListSpeakersResponse -> String)
-> ([ListSpeakersResponse] -> ShowS)
-> Show ListSpeakersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSpeakersResponse] -> ShowS
$cshowList :: [ListSpeakersResponse] -> ShowS
show :: ListSpeakersResponse -> String
$cshow :: ListSpeakersResponse -> String
showsPrec :: Int -> ListSpeakersResponse -> ShowS
$cshowsPrec :: Int -> ListSpeakersResponse -> ShowS
Prelude.Show, (forall x. ListSpeakersResponse -> Rep ListSpeakersResponse x)
-> (forall x. Rep ListSpeakersResponse x -> ListSpeakersResponse)
-> Generic ListSpeakersResponse
forall x. Rep ListSpeakersResponse x -> ListSpeakersResponse
forall x. ListSpeakersResponse -> Rep ListSpeakersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSpeakersResponse x -> ListSpeakersResponse
$cfrom :: forall x. ListSpeakersResponse -> Rep ListSpeakersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSpeakersResponse' 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:
--
-- 'speakerSummaries', 'listSpeakersResponse_speakerSummaries' - A list containing details about each speaker in the Amazon Web Services
-- account.
--
-- 'nextToken', 'listSpeakersResponse_nextToken' - If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
--
-- 'httpStatus', 'listSpeakersResponse_httpStatus' - The response's http status code.
newListSpeakersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSpeakersResponse
newListSpeakersResponse :: Int -> ListSpeakersResponse
newListSpeakersResponse Int
pHttpStatus_ =
  ListSpeakersResponse' :: Maybe [SpeakerSummary] -> Maybe Text -> Int -> ListSpeakersResponse
ListSpeakersResponse'
    { $sel:speakerSummaries:ListSpeakersResponse' :: Maybe [SpeakerSummary]
speakerSummaries =
        Maybe [SpeakerSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSpeakersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSpeakersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list containing details about each speaker in the Amazon Web Services
-- account.
listSpeakersResponse_speakerSummaries :: Lens.Lens' ListSpeakersResponse (Prelude.Maybe [SpeakerSummary])
listSpeakersResponse_speakerSummaries :: (Maybe [SpeakerSummary] -> f (Maybe [SpeakerSummary]))
-> ListSpeakersResponse -> f ListSpeakersResponse
listSpeakersResponse_speakerSummaries = (ListSpeakersResponse -> Maybe [SpeakerSummary])
-> (ListSpeakersResponse
    -> Maybe [SpeakerSummary] -> ListSpeakersResponse)
-> Lens
     ListSpeakersResponse
     ListSpeakersResponse
     (Maybe [SpeakerSummary])
     (Maybe [SpeakerSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSpeakersResponse' {Maybe [SpeakerSummary]
speakerSummaries :: Maybe [SpeakerSummary]
$sel:speakerSummaries:ListSpeakersResponse' :: ListSpeakersResponse -> Maybe [SpeakerSummary]
speakerSummaries} -> Maybe [SpeakerSummary]
speakerSummaries) (\s :: ListSpeakersResponse
s@ListSpeakersResponse' {} Maybe [SpeakerSummary]
a -> ListSpeakersResponse
s {$sel:speakerSummaries:ListSpeakersResponse' :: Maybe [SpeakerSummary]
speakerSummaries = Maybe [SpeakerSummary]
a} :: ListSpeakersResponse) ((Maybe [SpeakerSummary] -> f (Maybe [SpeakerSummary]))
 -> ListSpeakersResponse -> f ListSpeakersResponse)
-> ((Maybe [SpeakerSummary] -> f (Maybe [SpeakerSummary]))
    -> Maybe [SpeakerSummary] -> f (Maybe [SpeakerSummary]))
-> (Maybe [SpeakerSummary] -> f (Maybe [SpeakerSummary]))
-> ListSpeakersResponse
-> f ListSpeakersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [SpeakerSummary] [SpeakerSummary] [SpeakerSummary] [SpeakerSummary]
-> Iso
     (Maybe [SpeakerSummary])
     (Maybe [SpeakerSummary])
     (Maybe [SpeakerSummary])
     (Maybe [SpeakerSummary])
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
  [SpeakerSummary] [SpeakerSummary] [SpeakerSummary] [SpeakerSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
listSpeakersResponse_nextToken :: Lens.Lens' ListSpeakersResponse (Prelude.Maybe Prelude.Text)
listSpeakersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSpeakersResponse -> f ListSpeakersResponse
listSpeakersResponse_nextToken = (ListSpeakersResponse -> Maybe Text)
-> (ListSpeakersResponse -> Maybe Text -> ListSpeakersResponse)
-> Lens
     ListSpeakersResponse ListSpeakersResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSpeakersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSpeakersResponse' :: ListSpeakersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSpeakersResponse
s@ListSpeakersResponse' {} Maybe Text
a -> ListSpeakersResponse
s {$sel:nextToken:ListSpeakersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSpeakersResponse)

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

instance Prelude.NFData ListSpeakersResponse