{-# 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.PutVoiceConnectorEmergencyCallingConfiguration
-- 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)
--
-- Puts emergency calling configuration details to the specified Amazon
-- Chime Voice Connector, such as emergency phone numbers and calling
-- countries. Origination and termination settings must be enabled for the
-- Amazon Chime Voice Connector before emergency calling can be configured.
module Amazonka.Chime.PutVoiceConnectorEmergencyCallingConfiguration
  ( -- * Creating a Request
    PutVoiceConnectorEmergencyCallingConfiguration (..),
    newPutVoiceConnectorEmergencyCallingConfiguration,

    -- * Request Lenses
    putVoiceConnectorEmergencyCallingConfiguration_voiceConnectorId,
    putVoiceConnectorEmergencyCallingConfiguration_emergencyCallingConfiguration,

    -- * Destructuring the Response
    PutVoiceConnectorEmergencyCallingConfigurationResponse (..),
    newPutVoiceConnectorEmergencyCallingConfigurationResponse,

    -- * Response Lenses
    putVoiceConnectorEmergencyCallingConfigurationResponse_emergencyCallingConfiguration,
    putVoiceConnectorEmergencyCallingConfigurationResponse_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:/ 'newPutVoiceConnectorEmergencyCallingConfiguration' smart constructor.
data PutVoiceConnectorEmergencyCallingConfiguration = PutVoiceConnectorEmergencyCallingConfiguration'
  { -- | The Amazon Chime Voice Connector ID.
    PutVoiceConnectorEmergencyCallingConfiguration -> Text
voiceConnectorId :: Prelude.Text,
    -- | The emergency calling configuration details.
    PutVoiceConnectorEmergencyCallingConfiguration
-> EmergencyCallingConfiguration
emergencyCallingConfiguration :: EmergencyCallingConfiguration
  }
  deriving (PutVoiceConnectorEmergencyCallingConfiguration
-> PutVoiceConnectorEmergencyCallingConfiguration -> Bool
(PutVoiceConnectorEmergencyCallingConfiguration
 -> PutVoiceConnectorEmergencyCallingConfiguration -> Bool)
-> (PutVoiceConnectorEmergencyCallingConfiguration
    -> PutVoiceConnectorEmergencyCallingConfiguration -> Bool)
-> Eq PutVoiceConnectorEmergencyCallingConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutVoiceConnectorEmergencyCallingConfiguration
-> PutVoiceConnectorEmergencyCallingConfiguration -> Bool
$c/= :: PutVoiceConnectorEmergencyCallingConfiguration
-> PutVoiceConnectorEmergencyCallingConfiguration -> Bool
== :: PutVoiceConnectorEmergencyCallingConfiguration
-> PutVoiceConnectorEmergencyCallingConfiguration -> Bool
$c== :: PutVoiceConnectorEmergencyCallingConfiguration
-> PutVoiceConnectorEmergencyCallingConfiguration -> Bool
Prelude.Eq, Int -> PutVoiceConnectorEmergencyCallingConfiguration -> ShowS
[PutVoiceConnectorEmergencyCallingConfiguration] -> ShowS
PutVoiceConnectorEmergencyCallingConfiguration -> String
(Int -> PutVoiceConnectorEmergencyCallingConfiguration -> ShowS)
-> (PutVoiceConnectorEmergencyCallingConfiguration -> String)
-> ([PutVoiceConnectorEmergencyCallingConfiguration] -> ShowS)
-> Show PutVoiceConnectorEmergencyCallingConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutVoiceConnectorEmergencyCallingConfiguration] -> ShowS
$cshowList :: [PutVoiceConnectorEmergencyCallingConfiguration] -> ShowS
show :: PutVoiceConnectorEmergencyCallingConfiguration -> String
$cshow :: PutVoiceConnectorEmergencyCallingConfiguration -> String
showsPrec :: Int -> PutVoiceConnectorEmergencyCallingConfiguration -> ShowS
$cshowsPrec :: Int -> PutVoiceConnectorEmergencyCallingConfiguration -> ShowS
Prelude.Show, (forall x.
 PutVoiceConnectorEmergencyCallingConfiguration
 -> Rep PutVoiceConnectorEmergencyCallingConfiguration x)
-> (forall x.
    Rep PutVoiceConnectorEmergencyCallingConfiguration x
    -> PutVoiceConnectorEmergencyCallingConfiguration)
-> Generic PutVoiceConnectorEmergencyCallingConfiguration
forall x.
Rep PutVoiceConnectorEmergencyCallingConfiguration x
-> PutVoiceConnectorEmergencyCallingConfiguration
forall x.
PutVoiceConnectorEmergencyCallingConfiguration
-> Rep PutVoiceConnectorEmergencyCallingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutVoiceConnectorEmergencyCallingConfiguration x
-> PutVoiceConnectorEmergencyCallingConfiguration
$cfrom :: forall x.
PutVoiceConnectorEmergencyCallingConfiguration
-> Rep PutVoiceConnectorEmergencyCallingConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'PutVoiceConnectorEmergencyCallingConfiguration' 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:
--
-- 'voiceConnectorId', 'putVoiceConnectorEmergencyCallingConfiguration_voiceConnectorId' - The Amazon Chime Voice Connector ID.
--
-- 'emergencyCallingConfiguration', 'putVoiceConnectorEmergencyCallingConfiguration_emergencyCallingConfiguration' - The emergency calling configuration details.
newPutVoiceConnectorEmergencyCallingConfiguration ::
  -- | 'voiceConnectorId'
  Prelude.Text ->
  -- | 'emergencyCallingConfiguration'
  EmergencyCallingConfiguration ->
  PutVoiceConnectorEmergencyCallingConfiguration
newPutVoiceConnectorEmergencyCallingConfiguration :: Text
-> EmergencyCallingConfiguration
-> PutVoiceConnectorEmergencyCallingConfiguration
newPutVoiceConnectorEmergencyCallingConfiguration
  Text
pVoiceConnectorId_
  EmergencyCallingConfiguration
pEmergencyCallingConfiguration_ =
    PutVoiceConnectorEmergencyCallingConfiguration' :: Text
-> EmergencyCallingConfiguration
-> PutVoiceConnectorEmergencyCallingConfiguration
PutVoiceConnectorEmergencyCallingConfiguration'
      { $sel:voiceConnectorId:PutVoiceConnectorEmergencyCallingConfiguration' :: Text
voiceConnectorId =
          Text
pVoiceConnectorId_,
        $sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfiguration' :: EmergencyCallingConfiguration
emergencyCallingConfiguration =
          EmergencyCallingConfiguration
pEmergencyCallingConfiguration_
      }

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

-- | The emergency calling configuration details.
putVoiceConnectorEmergencyCallingConfiguration_emergencyCallingConfiguration :: Lens.Lens' PutVoiceConnectorEmergencyCallingConfiguration EmergencyCallingConfiguration
putVoiceConnectorEmergencyCallingConfiguration_emergencyCallingConfiguration :: (EmergencyCallingConfiguration -> f EmergencyCallingConfiguration)
-> PutVoiceConnectorEmergencyCallingConfiguration
-> f PutVoiceConnectorEmergencyCallingConfiguration
putVoiceConnectorEmergencyCallingConfiguration_emergencyCallingConfiguration = (PutVoiceConnectorEmergencyCallingConfiguration
 -> EmergencyCallingConfiguration)
-> (PutVoiceConnectorEmergencyCallingConfiguration
    -> EmergencyCallingConfiguration
    -> PutVoiceConnectorEmergencyCallingConfiguration)
-> Lens
     PutVoiceConnectorEmergencyCallingConfiguration
     PutVoiceConnectorEmergencyCallingConfiguration
     EmergencyCallingConfiguration
     EmergencyCallingConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutVoiceConnectorEmergencyCallingConfiguration' {EmergencyCallingConfiguration
emergencyCallingConfiguration :: EmergencyCallingConfiguration
$sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfiguration' :: PutVoiceConnectorEmergencyCallingConfiguration
-> EmergencyCallingConfiguration
emergencyCallingConfiguration} -> EmergencyCallingConfiguration
emergencyCallingConfiguration) (\s :: PutVoiceConnectorEmergencyCallingConfiguration
s@PutVoiceConnectorEmergencyCallingConfiguration' {} EmergencyCallingConfiguration
a -> PutVoiceConnectorEmergencyCallingConfiguration
s {$sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfiguration' :: EmergencyCallingConfiguration
emergencyCallingConfiguration = EmergencyCallingConfiguration
a} :: PutVoiceConnectorEmergencyCallingConfiguration)

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

instance
  Prelude.NFData
    PutVoiceConnectorEmergencyCallingConfiguration

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

instance
  Core.ToJSON
    PutVoiceConnectorEmergencyCallingConfiguration
  where
  toJSON :: PutVoiceConnectorEmergencyCallingConfiguration -> Value
toJSON
    PutVoiceConnectorEmergencyCallingConfiguration' {Text
EmergencyCallingConfiguration
emergencyCallingConfiguration :: EmergencyCallingConfiguration
voiceConnectorId :: Text
$sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfiguration' :: PutVoiceConnectorEmergencyCallingConfiguration
-> EmergencyCallingConfiguration
$sel:voiceConnectorId:PutVoiceConnectorEmergencyCallingConfiguration' :: PutVoiceConnectorEmergencyCallingConfiguration -> 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
"EmergencyCallingConfiguration"
                    Text -> EmergencyCallingConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= EmergencyCallingConfiguration
emergencyCallingConfiguration
                )
            ]
        )

instance
  Core.ToPath
    PutVoiceConnectorEmergencyCallingConfiguration
  where
  toPath :: PutVoiceConnectorEmergencyCallingConfiguration -> ByteString
toPath
    PutVoiceConnectorEmergencyCallingConfiguration' {Text
EmergencyCallingConfiguration
emergencyCallingConfiguration :: EmergencyCallingConfiguration
voiceConnectorId :: Text
$sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfiguration' :: PutVoiceConnectorEmergencyCallingConfiguration
-> EmergencyCallingConfiguration
$sel:voiceConnectorId:PutVoiceConnectorEmergencyCallingConfiguration' :: PutVoiceConnectorEmergencyCallingConfiguration -> Text
..} =
      [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
        [ ByteString
"/voice-connectors/",
          Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
voiceConnectorId,
          ByteString
"/emergency-calling-configuration"
        ]

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

-- | /See:/ 'newPutVoiceConnectorEmergencyCallingConfigurationResponse' smart constructor.
data PutVoiceConnectorEmergencyCallingConfigurationResponse = PutVoiceConnectorEmergencyCallingConfigurationResponse'
  { -- | The emergency calling configuration details.
    PutVoiceConnectorEmergencyCallingConfigurationResponse
-> Maybe EmergencyCallingConfiguration
emergencyCallingConfiguration :: Prelude.Maybe EmergencyCallingConfiguration,
    -- | The response's http status code.
    PutVoiceConnectorEmergencyCallingConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (PutVoiceConnectorEmergencyCallingConfigurationResponse
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> Bool
(PutVoiceConnectorEmergencyCallingConfigurationResponse
 -> PutVoiceConnectorEmergencyCallingConfigurationResponse -> Bool)
-> (PutVoiceConnectorEmergencyCallingConfigurationResponse
    -> PutVoiceConnectorEmergencyCallingConfigurationResponse -> Bool)
-> Eq PutVoiceConnectorEmergencyCallingConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutVoiceConnectorEmergencyCallingConfigurationResponse
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> Bool
$c/= :: PutVoiceConnectorEmergencyCallingConfigurationResponse
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> Bool
== :: PutVoiceConnectorEmergencyCallingConfigurationResponse
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> Bool
$c== :: PutVoiceConnectorEmergencyCallingConfigurationResponse
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> Bool
Prelude.Eq, Int
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> ShowS
[PutVoiceConnectorEmergencyCallingConfigurationResponse] -> ShowS
PutVoiceConnectorEmergencyCallingConfigurationResponse -> String
(Int
 -> PutVoiceConnectorEmergencyCallingConfigurationResponse -> ShowS)
-> (PutVoiceConnectorEmergencyCallingConfigurationResponse
    -> String)
-> ([PutVoiceConnectorEmergencyCallingConfigurationResponse]
    -> ShowS)
-> Show PutVoiceConnectorEmergencyCallingConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutVoiceConnectorEmergencyCallingConfigurationResponse] -> ShowS
$cshowList :: [PutVoiceConnectorEmergencyCallingConfigurationResponse] -> ShowS
show :: PutVoiceConnectorEmergencyCallingConfigurationResponse -> String
$cshow :: PutVoiceConnectorEmergencyCallingConfigurationResponse -> String
showsPrec :: Int
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> ShowS
$cshowsPrec :: Int
-> PutVoiceConnectorEmergencyCallingConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 PutVoiceConnectorEmergencyCallingConfigurationResponse
 -> Rep PutVoiceConnectorEmergencyCallingConfigurationResponse x)
-> (forall x.
    Rep PutVoiceConnectorEmergencyCallingConfigurationResponse x
    -> PutVoiceConnectorEmergencyCallingConfigurationResponse)
-> Generic PutVoiceConnectorEmergencyCallingConfigurationResponse
forall x.
Rep PutVoiceConnectorEmergencyCallingConfigurationResponse x
-> PutVoiceConnectorEmergencyCallingConfigurationResponse
forall x.
PutVoiceConnectorEmergencyCallingConfigurationResponse
-> Rep PutVoiceConnectorEmergencyCallingConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutVoiceConnectorEmergencyCallingConfigurationResponse x
-> PutVoiceConnectorEmergencyCallingConfigurationResponse
$cfrom :: forall x.
PutVoiceConnectorEmergencyCallingConfigurationResponse
-> Rep PutVoiceConnectorEmergencyCallingConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutVoiceConnectorEmergencyCallingConfigurationResponse' 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:
--
-- 'emergencyCallingConfiguration', 'putVoiceConnectorEmergencyCallingConfigurationResponse_emergencyCallingConfiguration' - The emergency calling configuration details.
--
-- 'httpStatus', 'putVoiceConnectorEmergencyCallingConfigurationResponse_httpStatus' - The response's http status code.
newPutVoiceConnectorEmergencyCallingConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutVoiceConnectorEmergencyCallingConfigurationResponse
newPutVoiceConnectorEmergencyCallingConfigurationResponse :: Int -> PutVoiceConnectorEmergencyCallingConfigurationResponse
newPutVoiceConnectorEmergencyCallingConfigurationResponse
  Int
pHttpStatus_ =
    PutVoiceConnectorEmergencyCallingConfigurationResponse' :: Maybe EmergencyCallingConfiguration
-> Int -> PutVoiceConnectorEmergencyCallingConfigurationResponse
PutVoiceConnectorEmergencyCallingConfigurationResponse'
      { $sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfigurationResponse' :: Maybe EmergencyCallingConfiguration
emergencyCallingConfiguration =
          Maybe EmergencyCallingConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:PutVoiceConnectorEmergencyCallingConfigurationResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | The emergency calling configuration details.
putVoiceConnectorEmergencyCallingConfigurationResponse_emergencyCallingConfiguration :: Lens.Lens' PutVoiceConnectorEmergencyCallingConfigurationResponse (Prelude.Maybe EmergencyCallingConfiguration)
putVoiceConnectorEmergencyCallingConfigurationResponse_emergencyCallingConfiguration :: (Maybe EmergencyCallingConfiguration
 -> f (Maybe EmergencyCallingConfiguration))
-> PutVoiceConnectorEmergencyCallingConfigurationResponse
-> f PutVoiceConnectorEmergencyCallingConfigurationResponse
putVoiceConnectorEmergencyCallingConfigurationResponse_emergencyCallingConfiguration = (PutVoiceConnectorEmergencyCallingConfigurationResponse
 -> Maybe EmergencyCallingConfiguration)
-> (PutVoiceConnectorEmergencyCallingConfigurationResponse
    -> Maybe EmergencyCallingConfiguration
    -> PutVoiceConnectorEmergencyCallingConfigurationResponse)
-> Lens
     PutVoiceConnectorEmergencyCallingConfigurationResponse
     PutVoiceConnectorEmergencyCallingConfigurationResponse
     (Maybe EmergencyCallingConfiguration)
     (Maybe EmergencyCallingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutVoiceConnectorEmergencyCallingConfigurationResponse' {Maybe EmergencyCallingConfiguration
emergencyCallingConfiguration :: Maybe EmergencyCallingConfiguration
$sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfigurationResponse' :: PutVoiceConnectorEmergencyCallingConfigurationResponse
-> Maybe EmergencyCallingConfiguration
emergencyCallingConfiguration} -> Maybe EmergencyCallingConfiguration
emergencyCallingConfiguration) (\s :: PutVoiceConnectorEmergencyCallingConfigurationResponse
s@PutVoiceConnectorEmergencyCallingConfigurationResponse' {} Maybe EmergencyCallingConfiguration
a -> PutVoiceConnectorEmergencyCallingConfigurationResponse
s {$sel:emergencyCallingConfiguration:PutVoiceConnectorEmergencyCallingConfigurationResponse' :: Maybe EmergencyCallingConfiguration
emergencyCallingConfiguration = Maybe EmergencyCallingConfiguration
a} :: PutVoiceConnectorEmergencyCallingConfigurationResponse)

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

instance
  Prelude.NFData
    PutVoiceConnectorEmergencyCallingConfigurationResponse