{-# 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.AlexaBusiness.ListConferenceProviders
-- 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 conference providers under a specific AWS account.
--
-- This operation returns paginated results.
module Amazonka.AlexaBusiness.ListConferenceProviders
  ( -- * Creating a Request
    ListConferenceProviders (..),
    newListConferenceProviders,

    -- * Request Lenses
    listConferenceProviders_nextToken,
    listConferenceProviders_maxResults,

    -- * Destructuring the Response
    ListConferenceProvidersResponse (..),
    newListConferenceProvidersResponse,

    -- * Response Lenses
    listConferenceProvidersResponse_conferenceProviders,
    listConferenceProvidersResponse_nextToken,
    listConferenceProvidersResponse_httpStatus,
  )
where

import Amazonka.AlexaBusiness.Types
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

-- | /See:/ 'newListConferenceProviders' smart constructor.
data ListConferenceProviders = ListConferenceProviders'
  { -- | The tokens used for pagination.
    ListConferenceProviders -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of conference providers to be returned, per paginated
    -- calls.
    ListConferenceProviders -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListConferenceProviders -> ListConferenceProviders -> Bool
(ListConferenceProviders -> ListConferenceProviders -> Bool)
-> (ListConferenceProviders -> ListConferenceProviders -> Bool)
-> Eq ListConferenceProviders
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConferenceProviders -> ListConferenceProviders -> Bool
$c/= :: ListConferenceProviders -> ListConferenceProviders -> Bool
== :: ListConferenceProviders -> ListConferenceProviders -> Bool
$c== :: ListConferenceProviders -> ListConferenceProviders -> Bool
Prelude.Eq, ReadPrec [ListConferenceProviders]
ReadPrec ListConferenceProviders
Int -> ReadS ListConferenceProviders
ReadS [ListConferenceProviders]
(Int -> ReadS ListConferenceProviders)
-> ReadS [ListConferenceProviders]
-> ReadPrec ListConferenceProviders
-> ReadPrec [ListConferenceProviders]
-> Read ListConferenceProviders
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConferenceProviders]
$creadListPrec :: ReadPrec [ListConferenceProviders]
readPrec :: ReadPrec ListConferenceProviders
$creadPrec :: ReadPrec ListConferenceProviders
readList :: ReadS [ListConferenceProviders]
$creadList :: ReadS [ListConferenceProviders]
readsPrec :: Int -> ReadS ListConferenceProviders
$creadsPrec :: Int -> ReadS ListConferenceProviders
Prelude.Read, Int -> ListConferenceProviders -> ShowS
[ListConferenceProviders] -> ShowS
ListConferenceProviders -> String
(Int -> ListConferenceProviders -> ShowS)
-> (ListConferenceProviders -> String)
-> ([ListConferenceProviders] -> ShowS)
-> Show ListConferenceProviders
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConferenceProviders] -> ShowS
$cshowList :: [ListConferenceProviders] -> ShowS
show :: ListConferenceProviders -> String
$cshow :: ListConferenceProviders -> String
showsPrec :: Int -> ListConferenceProviders -> ShowS
$cshowsPrec :: Int -> ListConferenceProviders -> ShowS
Prelude.Show, (forall x.
 ListConferenceProviders -> Rep ListConferenceProviders x)
-> (forall x.
    Rep ListConferenceProviders x -> ListConferenceProviders)
-> Generic ListConferenceProviders
forall x. Rep ListConferenceProviders x -> ListConferenceProviders
forall x. ListConferenceProviders -> Rep ListConferenceProviders x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListConferenceProviders x -> ListConferenceProviders
$cfrom :: forall x. ListConferenceProviders -> Rep ListConferenceProviders x
Prelude.Generic)

-- |
-- Create a value of 'ListConferenceProviders' 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', 'listConferenceProviders_nextToken' - The tokens used for pagination.
--
-- 'maxResults', 'listConferenceProviders_maxResults' - The maximum number of conference providers to be returned, per paginated
-- calls.
newListConferenceProviders ::
  ListConferenceProviders
newListConferenceProviders :: ListConferenceProviders
newListConferenceProviders =
  ListConferenceProviders' :: Maybe Text -> Maybe Natural -> ListConferenceProviders
ListConferenceProviders'
    { $sel:nextToken:ListConferenceProviders' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListConferenceProviders' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The tokens used for pagination.
listConferenceProviders_nextToken :: Lens.Lens' ListConferenceProviders (Prelude.Maybe Prelude.Text)
listConferenceProviders_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConferenceProviders -> f ListConferenceProviders
listConferenceProviders_nextToken = (ListConferenceProviders -> Maybe Text)
-> (ListConferenceProviders
    -> Maybe Text -> ListConferenceProviders)
-> Lens
     ListConferenceProviders
     ListConferenceProviders
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConferenceProviders' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConferenceProviders' :: ListConferenceProviders -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConferenceProviders
s@ListConferenceProviders' {} Maybe Text
a -> ListConferenceProviders
s {$sel:nextToken:ListConferenceProviders' :: Maybe Text
nextToken = Maybe Text
a} :: ListConferenceProviders)

-- | The maximum number of conference providers to be returned, per paginated
-- calls.
listConferenceProviders_maxResults :: Lens.Lens' ListConferenceProviders (Prelude.Maybe Prelude.Natural)
listConferenceProviders_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListConferenceProviders -> f ListConferenceProviders
listConferenceProviders_maxResults = (ListConferenceProviders -> Maybe Natural)
-> (ListConferenceProviders
    -> Maybe Natural -> ListConferenceProviders)
-> Lens
     ListConferenceProviders
     ListConferenceProviders
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConferenceProviders' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListConferenceProviders' :: ListConferenceProviders -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListConferenceProviders
s@ListConferenceProviders' {} Maybe Natural
a -> ListConferenceProviders
s {$sel:maxResults:ListConferenceProviders' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListConferenceProviders)

instance Core.AWSPager ListConferenceProviders where
  page :: ListConferenceProviders
-> AWSResponse ListConferenceProviders
-> Maybe ListConferenceProviders
page ListConferenceProviders
rq AWSResponse ListConferenceProviders
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListConferenceProviders
ListConferenceProvidersResponse
rs
            ListConferenceProvidersResponse
-> Getting (First Text) ListConferenceProvidersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListConferenceProvidersResponse
-> Const (First Text) ListConferenceProvidersResponse
Lens' ListConferenceProvidersResponse (Maybe Text)
listConferenceProvidersResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListConferenceProvidersResponse
 -> Const (First Text) ListConferenceProvidersResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListConferenceProvidersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListConferenceProviders
forall a. Maybe a
Prelude.Nothing
    | Maybe [ConferenceProvider] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListConferenceProviders
ListConferenceProvidersResponse
rs
            ListConferenceProvidersResponse
-> Getting
     (First [ConferenceProvider])
     ListConferenceProvidersResponse
     [ConferenceProvider]
-> Maybe [ConferenceProvider]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ConferenceProvider]
 -> Const (First [ConferenceProvider]) (Maybe [ConferenceProvider]))
-> ListConferenceProvidersResponse
-> Const
     (First [ConferenceProvider]) ListConferenceProvidersResponse
Lens' ListConferenceProvidersResponse (Maybe [ConferenceProvider])
listConferenceProvidersResponse_conferenceProviders
              ((Maybe [ConferenceProvider]
  -> Const (First [ConferenceProvider]) (Maybe [ConferenceProvider]))
 -> ListConferenceProvidersResponse
 -> Const
      (First [ConferenceProvider]) ListConferenceProvidersResponse)
-> (([ConferenceProvider]
     -> Const (First [ConferenceProvider]) [ConferenceProvider])
    -> Maybe [ConferenceProvider]
    -> Const (First [ConferenceProvider]) (Maybe [ConferenceProvider]))
-> Getting
     (First [ConferenceProvider])
     ListConferenceProvidersResponse
     [ConferenceProvider]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ConferenceProvider]
 -> Const (First [ConferenceProvider]) [ConferenceProvider])
-> Maybe [ConferenceProvider]
-> Const (First [ConferenceProvider]) (Maybe [ConferenceProvider])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListConferenceProviders
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListConferenceProviders -> Maybe ListConferenceProviders
forall a. a -> Maybe a
Prelude.Just (ListConferenceProviders -> Maybe ListConferenceProviders)
-> ListConferenceProviders -> Maybe ListConferenceProviders
forall a b. (a -> b) -> a -> b
Prelude.$
        ListConferenceProviders
rq
          ListConferenceProviders
-> (ListConferenceProviders -> ListConferenceProviders)
-> ListConferenceProviders
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListConferenceProviders -> Identity ListConferenceProviders
Lens
  ListConferenceProviders
  ListConferenceProviders
  (Maybe Text)
  (Maybe Text)
listConferenceProviders_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListConferenceProviders -> Identity ListConferenceProviders)
-> Maybe Text -> ListConferenceProviders -> ListConferenceProviders
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListConferenceProviders
ListConferenceProvidersResponse
rs
          ListConferenceProvidersResponse
-> Getting (First Text) ListConferenceProvidersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListConferenceProvidersResponse
-> Const (First Text) ListConferenceProvidersResponse
Lens' ListConferenceProvidersResponse (Maybe Text)
listConferenceProvidersResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListConferenceProvidersResponse
 -> Const (First Text) ListConferenceProvidersResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListConferenceProvidersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance Prelude.NFData ListConferenceProviders

instance Core.ToHeaders ListConferenceProviders where
  toHeaders :: ListConferenceProviders -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListConferenceProviders -> 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
"AlexaForBusiness.ListConferenceProviders" ::
                          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 ListConferenceProviders where
  toJSON :: ListConferenceProviders -> Value
toJSON ListConferenceProviders' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListConferenceProviders' :: ListConferenceProviders -> Maybe Natural
$sel:nextToken:ListConferenceProviders' :: ListConferenceProviders -> 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
          ]
      )

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

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

-- | /See:/ 'newListConferenceProvidersResponse' smart constructor.
data ListConferenceProvidersResponse = ListConferenceProvidersResponse'
  { -- | The conference providers.
    ListConferenceProvidersResponse -> Maybe [ConferenceProvider]
conferenceProviders :: Prelude.Maybe [ConferenceProvider],
    -- | The tokens used for pagination.
    ListConferenceProvidersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListConferenceProvidersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListConferenceProvidersResponse
-> ListConferenceProvidersResponse -> Bool
(ListConferenceProvidersResponse
 -> ListConferenceProvidersResponse -> Bool)
-> (ListConferenceProvidersResponse
    -> ListConferenceProvidersResponse -> Bool)
-> Eq ListConferenceProvidersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConferenceProvidersResponse
-> ListConferenceProvidersResponse -> Bool
$c/= :: ListConferenceProvidersResponse
-> ListConferenceProvidersResponse -> Bool
== :: ListConferenceProvidersResponse
-> ListConferenceProvidersResponse -> Bool
$c== :: ListConferenceProvidersResponse
-> ListConferenceProvidersResponse -> Bool
Prelude.Eq, ReadPrec [ListConferenceProvidersResponse]
ReadPrec ListConferenceProvidersResponse
Int -> ReadS ListConferenceProvidersResponse
ReadS [ListConferenceProvidersResponse]
(Int -> ReadS ListConferenceProvidersResponse)
-> ReadS [ListConferenceProvidersResponse]
-> ReadPrec ListConferenceProvidersResponse
-> ReadPrec [ListConferenceProvidersResponse]
-> Read ListConferenceProvidersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConferenceProvidersResponse]
$creadListPrec :: ReadPrec [ListConferenceProvidersResponse]
readPrec :: ReadPrec ListConferenceProvidersResponse
$creadPrec :: ReadPrec ListConferenceProvidersResponse
readList :: ReadS [ListConferenceProvidersResponse]
$creadList :: ReadS [ListConferenceProvidersResponse]
readsPrec :: Int -> ReadS ListConferenceProvidersResponse
$creadsPrec :: Int -> ReadS ListConferenceProvidersResponse
Prelude.Read, Int -> ListConferenceProvidersResponse -> ShowS
[ListConferenceProvidersResponse] -> ShowS
ListConferenceProvidersResponse -> String
(Int -> ListConferenceProvidersResponse -> ShowS)
-> (ListConferenceProvidersResponse -> String)
-> ([ListConferenceProvidersResponse] -> ShowS)
-> Show ListConferenceProvidersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConferenceProvidersResponse] -> ShowS
$cshowList :: [ListConferenceProvidersResponse] -> ShowS
show :: ListConferenceProvidersResponse -> String
$cshow :: ListConferenceProvidersResponse -> String
showsPrec :: Int -> ListConferenceProvidersResponse -> ShowS
$cshowsPrec :: Int -> ListConferenceProvidersResponse -> ShowS
Prelude.Show, (forall x.
 ListConferenceProvidersResponse
 -> Rep ListConferenceProvidersResponse x)
-> (forall x.
    Rep ListConferenceProvidersResponse x
    -> ListConferenceProvidersResponse)
-> Generic ListConferenceProvidersResponse
forall x.
Rep ListConferenceProvidersResponse x
-> ListConferenceProvidersResponse
forall x.
ListConferenceProvidersResponse
-> Rep ListConferenceProvidersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConferenceProvidersResponse x
-> ListConferenceProvidersResponse
$cfrom :: forall x.
ListConferenceProvidersResponse
-> Rep ListConferenceProvidersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListConferenceProvidersResponse' 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:
--
-- 'conferenceProviders', 'listConferenceProvidersResponse_conferenceProviders' - The conference providers.
--
-- 'nextToken', 'listConferenceProvidersResponse_nextToken' - The tokens used for pagination.
--
-- 'httpStatus', 'listConferenceProvidersResponse_httpStatus' - The response's http status code.
newListConferenceProvidersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListConferenceProvidersResponse
newListConferenceProvidersResponse :: Int -> ListConferenceProvidersResponse
newListConferenceProvidersResponse Int
pHttpStatus_ =
  ListConferenceProvidersResponse' :: Maybe [ConferenceProvider]
-> Maybe Text -> Int -> ListConferenceProvidersResponse
ListConferenceProvidersResponse'
    { $sel:conferenceProviders:ListConferenceProvidersResponse' :: Maybe [ConferenceProvider]
conferenceProviders =
        Maybe [ConferenceProvider]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListConferenceProvidersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListConferenceProvidersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The conference providers.
listConferenceProvidersResponse_conferenceProviders :: Lens.Lens' ListConferenceProvidersResponse (Prelude.Maybe [ConferenceProvider])
listConferenceProvidersResponse_conferenceProviders :: (Maybe [ConferenceProvider] -> f (Maybe [ConferenceProvider]))
-> ListConferenceProvidersResponse
-> f ListConferenceProvidersResponse
listConferenceProvidersResponse_conferenceProviders = (ListConferenceProvidersResponse -> Maybe [ConferenceProvider])
-> (ListConferenceProvidersResponse
    -> Maybe [ConferenceProvider] -> ListConferenceProvidersResponse)
-> Lens'
     ListConferenceProvidersResponse (Maybe [ConferenceProvider])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConferenceProvidersResponse' {Maybe [ConferenceProvider]
conferenceProviders :: Maybe [ConferenceProvider]
$sel:conferenceProviders:ListConferenceProvidersResponse' :: ListConferenceProvidersResponse -> Maybe [ConferenceProvider]
conferenceProviders} -> Maybe [ConferenceProvider]
conferenceProviders) (\s :: ListConferenceProvidersResponse
s@ListConferenceProvidersResponse' {} Maybe [ConferenceProvider]
a -> ListConferenceProvidersResponse
s {$sel:conferenceProviders:ListConferenceProvidersResponse' :: Maybe [ConferenceProvider]
conferenceProviders = Maybe [ConferenceProvider]
a} :: ListConferenceProvidersResponse) ((Maybe [ConferenceProvider] -> f (Maybe [ConferenceProvider]))
 -> ListConferenceProvidersResponse
 -> f ListConferenceProvidersResponse)
-> ((Maybe [ConferenceProvider] -> f (Maybe [ConferenceProvider]))
    -> Maybe [ConferenceProvider] -> f (Maybe [ConferenceProvider]))
-> (Maybe [ConferenceProvider] -> f (Maybe [ConferenceProvider]))
-> ListConferenceProvidersResponse
-> f ListConferenceProvidersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConferenceProvider]
  [ConferenceProvider]
  [ConferenceProvider]
  [ConferenceProvider]
-> Iso
     (Maybe [ConferenceProvider])
     (Maybe [ConferenceProvider])
     (Maybe [ConferenceProvider])
     (Maybe [ConferenceProvider])
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
  [ConferenceProvider]
  [ConferenceProvider]
  [ConferenceProvider]
  [ConferenceProvider]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The tokens used for pagination.
listConferenceProvidersResponse_nextToken :: Lens.Lens' ListConferenceProvidersResponse (Prelude.Maybe Prelude.Text)
listConferenceProvidersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConferenceProvidersResponse
-> f ListConferenceProvidersResponse
listConferenceProvidersResponse_nextToken = (ListConferenceProvidersResponse -> Maybe Text)
-> (ListConferenceProvidersResponse
    -> Maybe Text -> ListConferenceProvidersResponse)
-> Lens' ListConferenceProvidersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConferenceProvidersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConferenceProvidersResponse' :: ListConferenceProvidersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConferenceProvidersResponse
s@ListConferenceProvidersResponse' {} Maybe Text
a -> ListConferenceProvidersResponse
s {$sel:nextToken:ListConferenceProvidersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListConferenceProvidersResponse)

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

instance
  Prelude.NFData
    ListConferenceProvidersResponse