{-# 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.UpdateVoiceConnectorGroup
-- 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)
--
-- Updates details of the specified Amazon Chime Voice Connector group,
-- such as the name and Amazon Chime Voice Connector priority ranking.
module Amazonka.Chime.UpdateVoiceConnectorGroup
  ( -- * Creating a Request
    UpdateVoiceConnectorGroup (..),
    newUpdateVoiceConnectorGroup,

    -- * Request Lenses
    updateVoiceConnectorGroup_voiceConnectorGroupId,
    updateVoiceConnectorGroup_name,
    updateVoiceConnectorGroup_voiceConnectorItems,

    -- * Destructuring the Response
    UpdateVoiceConnectorGroupResponse (..),
    newUpdateVoiceConnectorGroupResponse,

    -- * Response Lenses
    updateVoiceConnectorGroupResponse_voiceConnectorGroup,
    updateVoiceConnectorGroupResponse_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:/ 'newUpdateVoiceConnectorGroup' smart constructor.
data UpdateVoiceConnectorGroup = UpdateVoiceConnectorGroup'
  { -- | The Amazon Chime Voice Connector group ID.
    UpdateVoiceConnectorGroup -> Text
voiceConnectorGroupId :: Prelude.Text,
    -- | The name of the Amazon Chime Voice Connector group.
    UpdateVoiceConnectorGroup -> Text
name :: Prelude.Text,
    -- | The @VoiceConnectorItems@ to associate with the group.
    UpdateVoiceConnectorGroup -> [VoiceConnectorItem]
voiceConnectorItems :: [VoiceConnectorItem]
  }
  deriving (UpdateVoiceConnectorGroup -> UpdateVoiceConnectorGroup -> Bool
(UpdateVoiceConnectorGroup -> UpdateVoiceConnectorGroup -> Bool)
-> (UpdateVoiceConnectorGroup -> UpdateVoiceConnectorGroup -> Bool)
-> Eq UpdateVoiceConnectorGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVoiceConnectorGroup -> UpdateVoiceConnectorGroup -> Bool
$c/= :: UpdateVoiceConnectorGroup -> UpdateVoiceConnectorGroup -> Bool
== :: UpdateVoiceConnectorGroup -> UpdateVoiceConnectorGroup -> Bool
$c== :: UpdateVoiceConnectorGroup -> UpdateVoiceConnectorGroup -> Bool
Prelude.Eq, ReadPrec [UpdateVoiceConnectorGroup]
ReadPrec UpdateVoiceConnectorGroup
Int -> ReadS UpdateVoiceConnectorGroup
ReadS [UpdateVoiceConnectorGroup]
(Int -> ReadS UpdateVoiceConnectorGroup)
-> ReadS [UpdateVoiceConnectorGroup]
-> ReadPrec UpdateVoiceConnectorGroup
-> ReadPrec [UpdateVoiceConnectorGroup]
-> Read UpdateVoiceConnectorGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVoiceConnectorGroup]
$creadListPrec :: ReadPrec [UpdateVoiceConnectorGroup]
readPrec :: ReadPrec UpdateVoiceConnectorGroup
$creadPrec :: ReadPrec UpdateVoiceConnectorGroup
readList :: ReadS [UpdateVoiceConnectorGroup]
$creadList :: ReadS [UpdateVoiceConnectorGroup]
readsPrec :: Int -> ReadS UpdateVoiceConnectorGroup
$creadsPrec :: Int -> ReadS UpdateVoiceConnectorGroup
Prelude.Read, Int -> UpdateVoiceConnectorGroup -> ShowS
[UpdateVoiceConnectorGroup] -> ShowS
UpdateVoiceConnectorGroup -> String
(Int -> UpdateVoiceConnectorGroup -> ShowS)
-> (UpdateVoiceConnectorGroup -> String)
-> ([UpdateVoiceConnectorGroup] -> ShowS)
-> Show UpdateVoiceConnectorGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVoiceConnectorGroup] -> ShowS
$cshowList :: [UpdateVoiceConnectorGroup] -> ShowS
show :: UpdateVoiceConnectorGroup -> String
$cshow :: UpdateVoiceConnectorGroup -> String
showsPrec :: Int -> UpdateVoiceConnectorGroup -> ShowS
$cshowsPrec :: Int -> UpdateVoiceConnectorGroup -> ShowS
Prelude.Show, (forall x.
 UpdateVoiceConnectorGroup -> Rep UpdateVoiceConnectorGroup x)
-> (forall x.
    Rep UpdateVoiceConnectorGroup x -> UpdateVoiceConnectorGroup)
-> Generic UpdateVoiceConnectorGroup
forall x.
Rep UpdateVoiceConnectorGroup x -> UpdateVoiceConnectorGroup
forall x.
UpdateVoiceConnectorGroup -> Rep UpdateVoiceConnectorGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateVoiceConnectorGroup x -> UpdateVoiceConnectorGroup
$cfrom :: forall x.
UpdateVoiceConnectorGroup -> Rep UpdateVoiceConnectorGroup x
Prelude.Generic)

-- |
-- Create a value of 'UpdateVoiceConnectorGroup' 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:
--
-- 'voiceConnectorGroupId', 'updateVoiceConnectorGroup_voiceConnectorGroupId' - The Amazon Chime Voice Connector group ID.
--
-- 'name', 'updateVoiceConnectorGroup_name' - The name of the Amazon Chime Voice Connector group.
--
-- 'voiceConnectorItems', 'updateVoiceConnectorGroup_voiceConnectorItems' - The @VoiceConnectorItems@ to associate with the group.
newUpdateVoiceConnectorGroup ::
  -- | 'voiceConnectorGroupId'
  Prelude.Text ->
  -- | 'name'
  Prelude.Text ->
  UpdateVoiceConnectorGroup
newUpdateVoiceConnectorGroup :: Text -> Text -> UpdateVoiceConnectorGroup
newUpdateVoiceConnectorGroup
  Text
pVoiceConnectorGroupId_
  Text
pName_ =
    UpdateVoiceConnectorGroup' :: Text -> Text -> [VoiceConnectorItem] -> UpdateVoiceConnectorGroup
UpdateVoiceConnectorGroup'
      { $sel:voiceConnectorGroupId:UpdateVoiceConnectorGroup' :: Text
voiceConnectorGroupId =
          Text
pVoiceConnectorGroupId_,
        $sel:name:UpdateVoiceConnectorGroup' :: Text
name = Text
pName_,
        $sel:voiceConnectorItems:UpdateVoiceConnectorGroup' :: [VoiceConnectorItem]
voiceConnectorItems = [VoiceConnectorItem]
forall a. Monoid a => a
Prelude.mempty
      }

-- | The Amazon Chime Voice Connector group ID.
updateVoiceConnectorGroup_voiceConnectorGroupId :: Lens.Lens' UpdateVoiceConnectorGroup Prelude.Text
updateVoiceConnectorGroup_voiceConnectorGroupId :: (Text -> f Text)
-> UpdateVoiceConnectorGroup -> f UpdateVoiceConnectorGroup
updateVoiceConnectorGroup_voiceConnectorGroupId = (UpdateVoiceConnectorGroup -> Text)
-> (UpdateVoiceConnectorGroup -> Text -> UpdateVoiceConnectorGroup)
-> Lens
     UpdateVoiceConnectorGroup UpdateVoiceConnectorGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVoiceConnectorGroup' {Text
voiceConnectorGroupId :: Text
$sel:voiceConnectorGroupId:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> Text
voiceConnectorGroupId} -> Text
voiceConnectorGroupId) (\s :: UpdateVoiceConnectorGroup
s@UpdateVoiceConnectorGroup' {} Text
a -> UpdateVoiceConnectorGroup
s {$sel:voiceConnectorGroupId:UpdateVoiceConnectorGroup' :: Text
voiceConnectorGroupId = Text
a} :: UpdateVoiceConnectorGroup)

-- | The name of the Amazon Chime Voice Connector group.
updateVoiceConnectorGroup_name :: Lens.Lens' UpdateVoiceConnectorGroup Prelude.Text
updateVoiceConnectorGroup_name :: (Text -> f Text)
-> UpdateVoiceConnectorGroup -> f UpdateVoiceConnectorGroup
updateVoiceConnectorGroup_name = (UpdateVoiceConnectorGroup -> Text)
-> (UpdateVoiceConnectorGroup -> Text -> UpdateVoiceConnectorGroup)
-> Lens
     UpdateVoiceConnectorGroup UpdateVoiceConnectorGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVoiceConnectorGroup' {Text
name :: Text
$sel:name:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> Text
name} -> Text
name) (\s :: UpdateVoiceConnectorGroup
s@UpdateVoiceConnectorGroup' {} Text
a -> UpdateVoiceConnectorGroup
s {$sel:name:UpdateVoiceConnectorGroup' :: Text
name = Text
a} :: UpdateVoiceConnectorGroup)

-- | The @VoiceConnectorItems@ to associate with the group.
updateVoiceConnectorGroup_voiceConnectorItems :: Lens.Lens' UpdateVoiceConnectorGroup [VoiceConnectorItem]
updateVoiceConnectorGroup_voiceConnectorItems :: ([VoiceConnectorItem] -> f [VoiceConnectorItem])
-> UpdateVoiceConnectorGroup -> f UpdateVoiceConnectorGroup
updateVoiceConnectorGroup_voiceConnectorItems = (UpdateVoiceConnectorGroup -> [VoiceConnectorItem])
-> (UpdateVoiceConnectorGroup
    -> [VoiceConnectorItem] -> UpdateVoiceConnectorGroup)
-> Lens
     UpdateVoiceConnectorGroup
     UpdateVoiceConnectorGroup
     [VoiceConnectorItem]
     [VoiceConnectorItem]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVoiceConnectorGroup' {[VoiceConnectorItem]
voiceConnectorItems :: [VoiceConnectorItem]
$sel:voiceConnectorItems:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> [VoiceConnectorItem]
voiceConnectorItems} -> [VoiceConnectorItem]
voiceConnectorItems) (\s :: UpdateVoiceConnectorGroup
s@UpdateVoiceConnectorGroup' {} [VoiceConnectorItem]
a -> UpdateVoiceConnectorGroup
s {$sel:voiceConnectorItems:UpdateVoiceConnectorGroup' :: [VoiceConnectorItem]
voiceConnectorItems = [VoiceConnectorItem]
a} :: UpdateVoiceConnectorGroup) (([VoiceConnectorItem] -> f [VoiceConnectorItem])
 -> UpdateVoiceConnectorGroup -> f UpdateVoiceConnectorGroup)
-> (([VoiceConnectorItem] -> f [VoiceConnectorItem])
    -> [VoiceConnectorItem] -> f [VoiceConnectorItem])
-> ([VoiceConnectorItem] -> f [VoiceConnectorItem])
-> UpdateVoiceConnectorGroup
-> f UpdateVoiceConnectorGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([VoiceConnectorItem] -> f [VoiceConnectorItem])
-> [VoiceConnectorItem] -> f [VoiceConnectorItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest UpdateVoiceConnectorGroup where
  type
    AWSResponse UpdateVoiceConnectorGroup =
      UpdateVoiceConnectorGroupResponse
  request :: UpdateVoiceConnectorGroup -> Request UpdateVoiceConnectorGroup
request = Service
-> UpdateVoiceConnectorGroup -> Request UpdateVoiceConnectorGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateVoiceConnectorGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateVoiceConnectorGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateVoiceConnectorGroup))
-> Logger
-> Service
-> Proxy UpdateVoiceConnectorGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateVoiceConnectorGroup)))
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 VoiceConnectorGroup
-> Int -> UpdateVoiceConnectorGroupResponse
UpdateVoiceConnectorGroupResponse'
            (Maybe VoiceConnectorGroup
 -> Int -> UpdateVoiceConnectorGroupResponse)
-> Either String (Maybe VoiceConnectorGroup)
-> Either String (Int -> UpdateVoiceConnectorGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe VoiceConnectorGroup)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VoiceConnectorGroup")
            Either String (Int -> UpdateVoiceConnectorGroupResponse)
-> Either String Int
-> Either String UpdateVoiceConnectorGroupResponse
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 UpdateVoiceConnectorGroup

instance Prelude.NFData UpdateVoiceConnectorGroup

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

instance Core.ToJSON UpdateVoiceConnectorGroup where
  toJSON :: UpdateVoiceConnectorGroup -> Value
toJSON UpdateVoiceConnectorGroup' {[VoiceConnectorItem]
Text
voiceConnectorItems :: [VoiceConnectorItem]
name :: Text
voiceConnectorGroupId :: Text
$sel:voiceConnectorItems:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> [VoiceConnectorItem]
$sel:name:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> Text
$sel:voiceConnectorGroupId:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"VoiceConnectorItems" Text -> [VoiceConnectorItem] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [VoiceConnectorItem]
voiceConnectorItems)
          ]
      )

instance Core.ToPath UpdateVoiceConnectorGroup where
  toPath :: UpdateVoiceConnectorGroup -> ByteString
toPath UpdateVoiceConnectorGroup' {[VoiceConnectorItem]
Text
voiceConnectorItems :: [VoiceConnectorItem]
name :: Text
voiceConnectorGroupId :: Text
$sel:voiceConnectorItems:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> [VoiceConnectorItem]
$sel:name:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> Text
$sel:voiceConnectorGroupId:UpdateVoiceConnectorGroup' :: UpdateVoiceConnectorGroup -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/voice-connector-groups/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
voiceConnectorGroupId
      ]

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

-- | /See:/ 'newUpdateVoiceConnectorGroupResponse' smart constructor.
data UpdateVoiceConnectorGroupResponse = UpdateVoiceConnectorGroupResponse'
  { -- | The updated Amazon Chime Voice Connector group details.
    UpdateVoiceConnectorGroupResponse -> Maybe VoiceConnectorGroup
voiceConnectorGroup :: Prelude.Maybe VoiceConnectorGroup,
    -- | The response's http status code.
    UpdateVoiceConnectorGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateVoiceConnectorGroupResponse
-> UpdateVoiceConnectorGroupResponse -> Bool
(UpdateVoiceConnectorGroupResponse
 -> UpdateVoiceConnectorGroupResponse -> Bool)
-> (UpdateVoiceConnectorGroupResponse
    -> UpdateVoiceConnectorGroupResponse -> Bool)
-> Eq UpdateVoiceConnectorGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVoiceConnectorGroupResponse
-> UpdateVoiceConnectorGroupResponse -> Bool
$c/= :: UpdateVoiceConnectorGroupResponse
-> UpdateVoiceConnectorGroupResponse -> Bool
== :: UpdateVoiceConnectorGroupResponse
-> UpdateVoiceConnectorGroupResponse -> Bool
$c== :: UpdateVoiceConnectorGroupResponse
-> UpdateVoiceConnectorGroupResponse -> Bool
Prelude.Eq, ReadPrec [UpdateVoiceConnectorGroupResponse]
ReadPrec UpdateVoiceConnectorGroupResponse
Int -> ReadS UpdateVoiceConnectorGroupResponse
ReadS [UpdateVoiceConnectorGroupResponse]
(Int -> ReadS UpdateVoiceConnectorGroupResponse)
-> ReadS [UpdateVoiceConnectorGroupResponse]
-> ReadPrec UpdateVoiceConnectorGroupResponse
-> ReadPrec [UpdateVoiceConnectorGroupResponse]
-> Read UpdateVoiceConnectorGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVoiceConnectorGroupResponse]
$creadListPrec :: ReadPrec [UpdateVoiceConnectorGroupResponse]
readPrec :: ReadPrec UpdateVoiceConnectorGroupResponse
$creadPrec :: ReadPrec UpdateVoiceConnectorGroupResponse
readList :: ReadS [UpdateVoiceConnectorGroupResponse]
$creadList :: ReadS [UpdateVoiceConnectorGroupResponse]
readsPrec :: Int -> ReadS UpdateVoiceConnectorGroupResponse
$creadsPrec :: Int -> ReadS UpdateVoiceConnectorGroupResponse
Prelude.Read, Int -> UpdateVoiceConnectorGroupResponse -> ShowS
[UpdateVoiceConnectorGroupResponse] -> ShowS
UpdateVoiceConnectorGroupResponse -> String
(Int -> UpdateVoiceConnectorGroupResponse -> ShowS)
-> (UpdateVoiceConnectorGroupResponse -> String)
-> ([UpdateVoiceConnectorGroupResponse] -> ShowS)
-> Show UpdateVoiceConnectorGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVoiceConnectorGroupResponse] -> ShowS
$cshowList :: [UpdateVoiceConnectorGroupResponse] -> ShowS
show :: UpdateVoiceConnectorGroupResponse -> String
$cshow :: UpdateVoiceConnectorGroupResponse -> String
showsPrec :: Int -> UpdateVoiceConnectorGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdateVoiceConnectorGroupResponse -> ShowS
Prelude.Show, (forall x.
 UpdateVoiceConnectorGroupResponse
 -> Rep UpdateVoiceConnectorGroupResponse x)
-> (forall x.
    Rep UpdateVoiceConnectorGroupResponse x
    -> UpdateVoiceConnectorGroupResponse)
-> Generic UpdateVoiceConnectorGroupResponse
forall x.
Rep UpdateVoiceConnectorGroupResponse x
-> UpdateVoiceConnectorGroupResponse
forall x.
UpdateVoiceConnectorGroupResponse
-> Rep UpdateVoiceConnectorGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateVoiceConnectorGroupResponse x
-> UpdateVoiceConnectorGroupResponse
$cfrom :: forall x.
UpdateVoiceConnectorGroupResponse
-> Rep UpdateVoiceConnectorGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateVoiceConnectorGroupResponse' 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:
--
-- 'voiceConnectorGroup', 'updateVoiceConnectorGroupResponse_voiceConnectorGroup' - The updated Amazon Chime Voice Connector group details.
--
-- 'httpStatus', 'updateVoiceConnectorGroupResponse_httpStatus' - The response's http status code.
newUpdateVoiceConnectorGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateVoiceConnectorGroupResponse
newUpdateVoiceConnectorGroupResponse :: Int -> UpdateVoiceConnectorGroupResponse
newUpdateVoiceConnectorGroupResponse Int
pHttpStatus_ =
  UpdateVoiceConnectorGroupResponse' :: Maybe VoiceConnectorGroup
-> Int -> UpdateVoiceConnectorGroupResponse
UpdateVoiceConnectorGroupResponse'
    { $sel:voiceConnectorGroup:UpdateVoiceConnectorGroupResponse' :: Maybe VoiceConnectorGroup
voiceConnectorGroup =
        Maybe VoiceConnectorGroup
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateVoiceConnectorGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The updated Amazon Chime Voice Connector group details.
updateVoiceConnectorGroupResponse_voiceConnectorGroup :: Lens.Lens' UpdateVoiceConnectorGroupResponse (Prelude.Maybe VoiceConnectorGroup)
updateVoiceConnectorGroupResponse_voiceConnectorGroup :: (Maybe VoiceConnectorGroup -> f (Maybe VoiceConnectorGroup))
-> UpdateVoiceConnectorGroupResponse
-> f UpdateVoiceConnectorGroupResponse
updateVoiceConnectorGroupResponse_voiceConnectorGroup = (UpdateVoiceConnectorGroupResponse -> Maybe VoiceConnectorGroup)
-> (UpdateVoiceConnectorGroupResponse
    -> Maybe VoiceConnectorGroup -> UpdateVoiceConnectorGroupResponse)
-> Lens
     UpdateVoiceConnectorGroupResponse
     UpdateVoiceConnectorGroupResponse
     (Maybe VoiceConnectorGroup)
     (Maybe VoiceConnectorGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVoiceConnectorGroupResponse' {Maybe VoiceConnectorGroup
voiceConnectorGroup :: Maybe VoiceConnectorGroup
$sel:voiceConnectorGroup:UpdateVoiceConnectorGroupResponse' :: UpdateVoiceConnectorGroupResponse -> Maybe VoiceConnectorGroup
voiceConnectorGroup} -> Maybe VoiceConnectorGroup
voiceConnectorGroup) (\s :: UpdateVoiceConnectorGroupResponse
s@UpdateVoiceConnectorGroupResponse' {} Maybe VoiceConnectorGroup
a -> UpdateVoiceConnectorGroupResponse
s {$sel:voiceConnectorGroup:UpdateVoiceConnectorGroupResponse' :: Maybe VoiceConnectorGroup
voiceConnectorGroup = Maybe VoiceConnectorGroup
a} :: UpdateVoiceConnectorGroupResponse)

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

instance
  Prelude.NFData
    UpdateVoiceConnectorGroupResponse