{-# 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.Chime.ListVoiceConnectors
-- 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 Amazon Chime Voice Connectors for the administrator\'s AWS
-- account.
module Amazonka.Chime.ListVoiceConnectors
  ( -- * Creating a Request
    ListVoiceConnectors (..),
    newListVoiceConnectors,

    -- * Request Lenses
    listVoiceConnectors_nextToken,
    listVoiceConnectors_maxResults,

    -- * Destructuring the Response
    ListVoiceConnectorsResponse (..),
    newListVoiceConnectorsResponse,

    -- * Response Lenses
    listVoiceConnectorsResponse_nextToken,
    listVoiceConnectorsResponse_voiceConnectors,
    listVoiceConnectorsResponse_httpStatus,
  )
where

import Amazonka.Chime.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:/ 'newListVoiceConnectors' smart constructor.
data ListVoiceConnectors = ListVoiceConnectors'
  { -- | The token to use to retrieve the next page of results.
    ListVoiceConnectors -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return in a single call.
    ListVoiceConnectors -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListVoiceConnectors -> ListVoiceConnectors -> Bool
(ListVoiceConnectors -> ListVoiceConnectors -> Bool)
-> (ListVoiceConnectors -> ListVoiceConnectors -> Bool)
-> Eq ListVoiceConnectors
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVoiceConnectors -> ListVoiceConnectors -> Bool
$c/= :: ListVoiceConnectors -> ListVoiceConnectors -> Bool
== :: ListVoiceConnectors -> ListVoiceConnectors -> Bool
$c== :: ListVoiceConnectors -> ListVoiceConnectors -> Bool
Prelude.Eq, ReadPrec [ListVoiceConnectors]
ReadPrec ListVoiceConnectors
Int -> ReadS ListVoiceConnectors
ReadS [ListVoiceConnectors]
(Int -> ReadS ListVoiceConnectors)
-> ReadS [ListVoiceConnectors]
-> ReadPrec ListVoiceConnectors
-> ReadPrec [ListVoiceConnectors]
-> Read ListVoiceConnectors
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVoiceConnectors]
$creadListPrec :: ReadPrec [ListVoiceConnectors]
readPrec :: ReadPrec ListVoiceConnectors
$creadPrec :: ReadPrec ListVoiceConnectors
readList :: ReadS [ListVoiceConnectors]
$creadList :: ReadS [ListVoiceConnectors]
readsPrec :: Int -> ReadS ListVoiceConnectors
$creadsPrec :: Int -> ReadS ListVoiceConnectors
Prelude.Read, Int -> ListVoiceConnectors -> ShowS
[ListVoiceConnectors] -> ShowS
ListVoiceConnectors -> String
(Int -> ListVoiceConnectors -> ShowS)
-> (ListVoiceConnectors -> String)
-> ([ListVoiceConnectors] -> ShowS)
-> Show ListVoiceConnectors
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVoiceConnectors] -> ShowS
$cshowList :: [ListVoiceConnectors] -> ShowS
show :: ListVoiceConnectors -> String
$cshow :: ListVoiceConnectors -> String
showsPrec :: Int -> ListVoiceConnectors -> ShowS
$cshowsPrec :: Int -> ListVoiceConnectors -> ShowS
Prelude.Show, (forall x. ListVoiceConnectors -> Rep ListVoiceConnectors x)
-> (forall x. Rep ListVoiceConnectors x -> ListVoiceConnectors)
-> Generic ListVoiceConnectors
forall x. Rep ListVoiceConnectors x -> ListVoiceConnectors
forall x. ListVoiceConnectors -> Rep ListVoiceConnectors x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListVoiceConnectors x -> ListVoiceConnectors
$cfrom :: forall x. ListVoiceConnectors -> Rep ListVoiceConnectors x
Prelude.Generic)

-- |
-- Create a value of 'ListVoiceConnectors' 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', 'listVoiceConnectors_nextToken' - The token to use to retrieve the next page of results.
--
-- 'maxResults', 'listVoiceConnectors_maxResults' - The maximum number of results to return in a single call.
newListVoiceConnectors ::
  ListVoiceConnectors
newListVoiceConnectors :: ListVoiceConnectors
newListVoiceConnectors =
  ListVoiceConnectors' :: Maybe Text -> Maybe Natural -> ListVoiceConnectors
ListVoiceConnectors'
    { $sel:nextToken:ListVoiceConnectors' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListVoiceConnectors' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The token to use to retrieve the next page of results.
listVoiceConnectors_nextToken :: Lens.Lens' ListVoiceConnectors (Prelude.Maybe Prelude.Text)
listVoiceConnectors_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListVoiceConnectors -> f ListVoiceConnectors
listVoiceConnectors_nextToken = (ListVoiceConnectors -> Maybe Text)
-> (ListVoiceConnectors -> Maybe Text -> ListVoiceConnectors)
-> Lens
     ListVoiceConnectors ListVoiceConnectors (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVoiceConnectors' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListVoiceConnectors' :: ListVoiceConnectors -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListVoiceConnectors
s@ListVoiceConnectors' {} Maybe Text
a -> ListVoiceConnectors
s {$sel:nextToken:ListVoiceConnectors' :: Maybe Text
nextToken = Maybe Text
a} :: ListVoiceConnectors)

-- | The maximum number of results to return in a single call.
listVoiceConnectors_maxResults :: Lens.Lens' ListVoiceConnectors (Prelude.Maybe Prelude.Natural)
listVoiceConnectors_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListVoiceConnectors -> f ListVoiceConnectors
listVoiceConnectors_maxResults = (ListVoiceConnectors -> Maybe Natural)
-> (ListVoiceConnectors -> Maybe Natural -> ListVoiceConnectors)
-> Lens
     ListVoiceConnectors
     ListVoiceConnectors
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVoiceConnectors' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListVoiceConnectors' :: ListVoiceConnectors -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListVoiceConnectors
s@ListVoiceConnectors' {} Maybe Natural
a -> ListVoiceConnectors
s {$sel:maxResults:ListVoiceConnectors' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListVoiceConnectors)

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

instance Prelude.NFData ListVoiceConnectors

instance Core.ToHeaders ListVoiceConnectors where
  toHeaders :: ListVoiceConnectors -> ResponseHeaders
toHeaders = ResponseHeaders -> ListVoiceConnectors -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

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

-- | /See:/ 'newListVoiceConnectorsResponse' smart constructor.
data ListVoiceConnectorsResponse = ListVoiceConnectorsResponse'
  { -- | The token to use to retrieve the next page of results.
    ListVoiceConnectorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The details of the Amazon Chime Voice Connectors.
    ListVoiceConnectorsResponse -> Maybe [VoiceConnector]
voiceConnectors :: Prelude.Maybe [VoiceConnector],
    -- | The response's http status code.
    ListVoiceConnectorsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListVoiceConnectorsResponse -> ListVoiceConnectorsResponse -> Bool
(ListVoiceConnectorsResponse
 -> ListVoiceConnectorsResponse -> Bool)
-> (ListVoiceConnectorsResponse
    -> ListVoiceConnectorsResponse -> Bool)
-> Eq ListVoiceConnectorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVoiceConnectorsResponse -> ListVoiceConnectorsResponse -> Bool
$c/= :: ListVoiceConnectorsResponse -> ListVoiceConnectorsResponse -> Bool
== :: ListVoiceConnectorsResponse -> ListVoiceConnectorsResponse -> Bool
$c== :: ListVoiceConnectorsResponse -> ListVoiceConnectorsResponse -> Bool
Prelude.Eq, ReadPrec [ListVoiceConnectorsResponse]
ReadPrec ListVoiceConnectorsResponse
Int -> ReadS ListVoiceConnectorsResponse
ReadS [ListVoiceConnectorsResponse]
(Int -> ReadS ListVoiceConnectorsResponse)
-> ReadS [ListVoiceConnectorsResponse]
-> ReadPrec ListVoiceConnectorsResponse
-> ReadPrec [ListVoiceConnectorsResponse]
-> Read ListVoiceConnectorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVoiceConnectorsResponse]
$creadListPrec :: ReadPrec [ListVoiceConnectorsResponse]
readPrec :: ReadPrec ListVoiceConnectorsResponse
$creadPrec :: ReadPrec ListVoiceConnectorsResponse
readList :: ReadS [ListVoiceConnectorsResponse]
$creadList :: ReadS [ListVoiceConnectorsResponse]
readsPrec :: Int -> ReadS ListVoiceConnectorsResponse
$creadsPrec :: Int -> ReadS ListVoiceConnectorsResponse
Prelude.Read, Int -> ListVoiceConnectorsResponse -> ShowS
[ListVoiceConnectorsResponse] -> ShowS
ListVoiceConnectorsResponse -> String
(Int -> ListVoiceConnectorsResponse -> ShowS)
-> (ListVoiceConnectorsResponse -> String)
-> ([ListVoiceConnectorsResponse] -> ShowS)
-> Show ListVoiceConnectorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVoiceConnectorsResponse] -> ShowS
$cshowList :: [ListVoiceConnectorsResponse] -> ShowS
show :: ListVoiceConnectorsResponse -> String
$cshow :: ListVoiceConnectorsResponse -> String
showsPrec :: Int -> ListVoiceConnectorsResponse -> ShowS
$cshowsPrec :: Int -> ListVoiceConnectorsResponse -> ShowS
Prelude.Show, (forall x.
 ListVoiceConnectorsResponse -> Rep ListVoiceConnectorsResponse x)
-> (forall x.
    Rep ListVoiceConnectorsResponse x -> ListVoiceConnectorsResponse)
-> Generic ListVoiceConnectorsResponse
forall x.
Rep ListVoiceConnectorsResponse x -> ListVoiceConnectorsResponse
forall x.
ListVoiceConnectorsResponse -> Rep ListVoiceConnectorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListVoiceConnectorsResponse x -> ListVoiceConnectorsResponse
$cfrom :: forall x.
ListVoiceConnectorsResponse -> Rep ListVoiceConnectorsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListVoiceConnectorsResponse' 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', 'listVoiceConnectorsResponse_nextToken' - The token to use to retrieve the next page of results.
--
-- 'voiceConnectors', 'listVoiceConnectorsResponse_voiceConnectors' - The details of the Amazon Chime Voice Connectors.
--
-- 'httpStatus', 'listVoiceConnectorsResponse_httpStatus' - The response's http status code.
newListVoiceConnectorsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListVoiceConnectorsResponse
newListVoiceConnectorsResponse :: Int -> ListVoiceConnectorsResponse
newListVoiceConnectorsResponse Int
pHttpStatus_ =
  ListVoiceConnectorsResponse' :: Maybe Text
-> Maybe [VoiceConnector] -> Int -> ListVoiceConnectorsResponse
ListVoiceConnectorsResponse'
    { $sel:nextToken:ListVoiceConnectorsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:voiceConnectors:ListVoiceConnectorsResponse' :: Maybe [VoiceConnector]
voiceConnectors = Maybe [VoiceConnector]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListVoiceConnectorsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token to use to retrieve the next page of results.
listVoiceConnectorsResponse_nextToken :: Lens.Lens' ListVoiceConnectorsResponse (Prelude.Maybe Prelude.Text)
listVoiceConnectorsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListVoiceConnectorsResponse -> f ListVoiceConnectorsResponse
listVoiceConnectorsResponse_nextToken = (ListVoiceConnectorsResponse -> Maybe Text)
-> (ListVoiceConnectorsResponse
    -> Maybe Text -> ListVoiceConnectorsResponse)
-> Lens
     ListVoiceConnectorsResponse
     ListVoiceConnectorsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVoiceConnectorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListVoiceConnectorsResponse' :: ListVoiceConnectorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListVoiceConnectorsResponse
s@ListVoiceConnectorsResponse' {} Maybe Text
a -> ListVoiceConnectorsResponse
s {$sel:nextToken:ListVoiceConnectorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListVoiceConnectorsResponse)

-- | The details of the Amazon Chime Voice Connectors.
listVoiceConnectorsResponse_voiceConnectors :: Lens.Lens' ListVoiceConnectorsResponse (Prelude.Maybe [VoiceConnector])
listVoiceConnectorsResponse_voiceConnectors :: (Maybe [VoiceConnector] -> f (Maybe [VoiceConnector]))
-> ListVoiceConnectorsResponse -> f ListVoiceConnectorsResponse
listVoiceConnectorsResponse_voiceConnectors = (ListVoiceConnectorsResponse -> Maybe [VoiceConnector])
-> (ListVoiceConnectorsResponse
    -> Maybe [VoiceConnector] -> ListVoiceConnectorsResponse)
-> Lens
     ListVoiceConnectorsResponse
     ListVoiceConnectorsResponse
     (Maybe [VoiceConnector])
     (Maybe [VoiceConnector])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVoiceConnectorsResponse' {Maybe [VoiceConnector]
voiceConnectors :: Maybe [VoiceConnector]
$sel:voiceConnectors:ListVoiceConnectorsResponse' :: ListVoiceConnectorsResponse -> Maybe [VoiceConnector]
voiceConnectors} -> Maybe [VoiceConnector]
voiceConnectors) (\s :: ListVoiceConnectorsResponse
s@ListVoiceConnectorsResponse' {} Maybe [VoiceConnector]
a -> ListVoiceConnectorsResponse
s {$sel:voiceConnectors:ListVoiceConnectorsResponse' :: Maybe [VoiceConnector]
voiceConnectors = Maybe [VoiceConnector]
a} :: ListVoiceConnectorsResponse) ((Maybe [VoiceConnector] -> f (Maybe [VoiceConnector]))
 -> ListVoiceConnectorsResponse -> f ListVoiceConnectorsResponse)
-> ((Maybe [VoiceConnector] -> f (Maybe [VoiceConnector]))
    -> Maybe [VoiceConnector] -> f (Maybe [VoiceConnector]))
-> (Maybe [VoiceConnector] -> f (Maybe [VoiceConnector]))
-> ListVoiceConnectorsResponse
-> f ListVoiceConnectorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [VoiceConnector] [VoiceConnector] [VoiceConnector] [VoiceConnector]
-> Iso
     (Maybe [VoiceConnector])
     (Maybe [VoiceConnector])
     (Maybe [VoiceConnector])
     (Maybe [VoiceConnector])
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
  [VoiceConnector] [VoiceConnector] [VoiceConnector] [VoiceConnector]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListVoiceConnectorsResponse