{-# 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.UpdateSipMediaApplicationCall
-- 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)
--
-- Allows you to trigger a Lambda function at any time while a call is
-- active, and replace the current actions with new actions returned by the
-- invocation.
module Amazonka.Chime.UpdateSipMediaApplicationCall
  ( -- * Creating a Request
    UpdateSipMediaApplicationCall (..),
    newUpdateSipMediaApplicationCall,

    -- * Request Lenses
    updateSipMediaApplicationCall_sipMediaApplicationId,
    updateSipMediaApplicationCall_transactionId,
    updateSipMediaApplicationCall_arguments,

    -- * Destructuring the Response
    UpdateSipMediaApplicationCallResponse (..),
    newUpdateSipMediaApplicationCallResponse,

    -- * Response Lenses
    updateSipMediaApplicationCallResponse_sipMediaApplicationCall,
    updateSipMediaApplicationCallResponse_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:/ 'newUpdateSipMediaApplicationCall' smart constructor.
data UpdateSipMediaApplicationCall = UpdateSipMediaApplicationCall'
  { -- | The ID of the SIP media application handling the call.
    UpdateSipMediaApplicationCall -> Text
sipMediaApplicationId :: Prelude.Text,
    -- | The ID of the call transaction.
    UpdateSipMediaApplicationCall -> Text
transactionId :: Prelude.Text,
    -- | Arguments made available to the Lambda function as part of the
    -- @CALL_UPDATE_REQUESTED@ event. Can contain 0-20 key-value pairs.
    UpdateSipMediaApplicationCall -> HashMap Text (Sensitive Text)
arguments :: Prelude.HashMap Prelude.Text (Core.Sensitive Prelude.Text)
  }
  deriving (UpdateSipMediaApplicationCall
-> UpdateSipMediaApplicationCall -> Bool
(UpdateSipMediaApplicationCall
 -> UpdateSipMediaApplicationCall -> Bool)
-> (UpdateSipMediaApplicationCall
    -> UpdateSipMediaApplicationCall -> Bool)
-> Eq UpdateSipMediaApplicationCall
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateSipMediaApplicationCall
-> UpdateSipMediaApplicationCall -> Bool
$c/= :: UpdateSipMediaApplicationCall
-> UpdateSipMediaApplicationCall -> Bool
== :: UpdateSipMediaApplicationCall
-> UpdateSipMediaApplicationCall -> Bool
$c== :: UpdateSipMediaApplicationCall
-> UpdateSipMediaApplicationCall -> Bool
Prelude.Eq, Int -> UpdateSipMediaApplicationCall -> ShowS
[UpdateSipMediaApplicationCall] -> ShowS
UpdateSipMediaApplicationCall -> String
(Int -> UpdateSipMediaApplicationCall -> ShowS)
-> (UpdateSipMediaApplicationCall -> String)
-> ([UpdateSipMediaApplicationCall] -> ShowS)
-> Show UpdateSipMediaApplicationCall
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateSipMediaApplicationCall] -> ShowS
$cshowList :: [UpdateSipMediaApplicationCall] -> ShowS
show :: UpdateSipMediaApplicationCall -> String
$cshow :: UpdateSipMediaApplicationCall -> String
showsPrec :: Int -> UpdateSipMediaApplicationCall -> ShowS
$cshowsPrec :: Int -> UpdateSipMediaApplicationCall -> ShowS
Prelude.Show, (forall x.
 UpdateSipMediaApplicationCall
 -> Rep UpdateSipMediaApplicationCall x)
-> (forall x.
    Rep UpdateSipMediaApplicationCall x
    -> UpdateSipMediaApplicationCall)
-> Generic UpdateSipMediaApplicationCall
forall x.
Rep UpdateSipMediaApplicationCall x
-> UpdateSipMediaApplicationCall
forall x.
UpdateSipMediaApplicationCall
-> Rep UpdateSipMediaApplicationCall x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateSipMediaApplicationCall x
-> UpdateSipMediaApplicationCall
$cfrom :: forall x.
UpdateSipMediaApplicationCall
-> Rep UpdateSipMediaApplicationCall x
Prelude.Generic)

-- |
-- Create a value of 'UpdateSipMediaApplicationCall' 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:
--
-- 'sipMediaApplicationId', 'updateSipMediaApplicationCall_sipMediaApplicationId' - The ID of the SIP media application handling the call.
--
-- 'transactionId', 'updateSipMediaApplicationCall_transactionId' - The ID of the call transaction.
--
-- 'arguments', 'updateSipMediaApplicationCall_arguments' - Arguments made available to the Lambda function as part of the
-- @CALL_UPDATE_REQUESTED@ event. Can contain 0-20 key-value pairs.
newUpdateSipMediaApplicationCall ::
  -- | 'sipMediaApplicationId'
  Prelude.Text ->
  -- | 'transactionId'
  Prelude.Text ->
  UpdateSipMediaApplicationCall
newUpdateSipMediaApplicationCall :: Text -> Text -> UpdateSipMediaApplicationCall
newUpdateSipMediaApplicationCall
  Text
pSipMediaApplicationId_
  Text
pTransactionId_ =
    UpdateSipMediaApplicationCall' :: Text
-> Text
-> HashMap Text (Sensitive Text)
-> UpdateSipMediaApplicationCall
UpdateSipMediaApplicationCall'
      { $sel:sipMediaApplicationId:UpdateSipMediaApplicationCall' :: Text
sipMediaApplicationId =
          Text
pSipMediaApplicationId_,
        $sel:transactionId:UpdateSipMediaApplicationCall' :: Text
transactionId = Text
pTransactionId_,
        $sel:arguments:UpdateSipMediaApplicationCall' :: HashMap Text (Sensitive Text)
arguments = HashMap Text (Sensitive Text)
forall a. Monoid a => a
Prelude.mempty
      }

-- | The ID of the SIP media application handling the call.
updateSipMediaApplicationCall_sipMediaApplicationId :: Lens.Lens' UpdateSipMediaApplicationCall Prelude.Text
updateSipMediaApplicationCall_sipMediaApplicationId :: (Text -> f Text)
-> UpdateSipMediaApplicationCall -> f UpdateSipMediaApplicationCall
updateSipMediaApplicationCall_sipMediaApplicationId = (UpdateSipMediaApplicationCall -> Text)
-> (UpdateSipMediaApplicationCall
    -> Text -> UpdateSipMediaApplicationCall)
-> Lens
     UpdateSipMediaApplicationCall
     UpdateSipMediaApplicationCall
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSipMediaApplicationCall' {Text
sipMediaApplicationId :: Text
$sel:sipMediaApplicationId:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> Text
sipMediaApplicationId} -> Text
sipMediaApplicationId) (\s :: UpdateSipMediaApplicationCall
s@UpdateSipMediaApplicationCall' {} Text
a -> UpdateSipMediaApplicationCall
s {$sel:sipMediaApplicationId:UpdateSipMediaApplicationCall' :: Text
sipMediaApplicationId = Text
a} :: UpdateSipMediaApplicationCall)

-- | The ID of the call transaction.
updateSipMediaApplicationCall_transactionId :: Lens.Lens' UpdateSipMediaApplicationCall Prelude.Text
updateSipMediaApplicationCall_transactionId :: (Text -> f Text)
-> UpdateSipMediaApplicationCall -> f UpdateSipMediaApplicationCall
updateSipMediaApplicationCall_transactionId = (UpdateSipMediaApplicationCall -> Text)
-> (UpdateSipMediaApplicationCall
    -> Text -> UpdateSipMediaApplicationCall)
-> Lens
     UpdateSipMediaApplicationCall
     UpdateSipMediaApplicationCall
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSipMediaApplicationCall' {Text
transactionId :: Text
$sel:transactionId:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> Text
transactionId} -> Text
transactionId) (\s :: UpdateSipMediaApplicationCall
s@UpdateSipMediaApplicationCall' {} Text
a -> UpdateSipMediaApplicationCall
s {$sel:transactionId:UpdateSipMediaApplicationCall' :: Text
transactionId = Text
a} :: UpdateSipMediaApplicationCall)

-- | Arguments made available to the Lambda function as part of the
-- @CALL_UPDATE_REQUESTED@ event. Can contain 0-20 key-value pairs.
updateSipMediaApplicationCall_arguments :: Lens.Lens' UpdateSipMediaApplicationCall (Prelude.HashMap Prelude.Text Prelude.Text)
updateSipMediaApplicationCall_arguments :: (HashMap Text Text -> f (HashMap Text Text))
-> UpdateSipMediaApplicationCall -> f UpdateSipMediaApplicationCall
updateSipMediaApplicationCall_arguments = (UpdateSipMediaApplicationCall -> HashMap Text (Sensitive Text))
-> (UpdateSipMediaApplicationCall
    -> HashMap Text (Sensitive Text) -> UpdateSipMediaApplicationCall)
-> Lens
     UpdateSipMediaApplicationCall
     UpdateSipMediaApplicationCall
     (HashMap Text (Sensitive Text))
     (HashMap Text (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSipMediaApplicationCall' {HashMap Text (Sensitive Text)
arguments :: HashMap Text (Sensitive Text)
$sel:arguments:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> HashMap Text (Sensitive Text)
arguments} -> HashMap Text (Sensitive Text)
arguments) (\s :: UpdateSipMediaApplicationCall
s@UpdateSipMediaApplicationCall' {} HashMap Text (Sensitive Text)
a -> UpdateSipMediaApplicationCall
s {$sel:arguments:UpdateSipMediaApplicationCall' :: HashMap Text (Sensitive Text)
arguments = HashMap Text (Sensitive Text)
a} :: UpdateSipMediaApplicationCall) ((HashMap Text (Sensitive Text)
  -> f (HashMap Text (Sensitive Text)))
 -> UpdateSipMediaApplicationCall
 -> f UpdateSipMediaApplicationCall)
-> ((HashMap Text Text -> f (HashMap Text Text))
    -> HashMap Text (Sensitive Text)
    -> f (HashMap Text (Sensitive Text)))
-> (HashMap Text Text -> f (HashMap Text Text))
-> UpdateSipMediaApplicationCall
-> f UpdateSipMediaApplicationCall
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text (Sensitive Text)
-> f (HashMap Text (Sensitive Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData UpdateSipMediaApplicationCall

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

instance Core.ToJSON UpdateSipMediaApplicationCall where
  toJSON :: UpdateSipMediaApplicationCall -> Value
toJSON UpdateSipMediaApplicationCall' {Text
HashMap Text (Sensitive Text)
arguments :: HashMap Text (Sensitive Text)
transactionId :: Text
sipMediaApplicationId :: Text
$sel:arguments:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> HashMap Text (Sensitive Text)
$sel:transactionId:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> Text
$sel:sipMediaApplicationId:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> 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
"Arguments" Text -> HashMap Text (Sensitive Text) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= HashMap Text (Sensitive Text)
arguments)]
      )

instance Core.ToPath UpdateSipMediaApplicationCall where
  toPath :: UpdateSipMediaApplicationCall -> ByteString
toPath UpdateSipMediaApplicationCall' {Text
HashMap Text (Sensitive Text)
arguments :: HashMap Text (Sensitive Text)
transactionId :: Text
sipMediaApplicationId :: Text
$sel:arguments:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> HashMap Text (Sensitive Text)
$sel:transactionId:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> Text
$sel:sipMediaApplicationId:UpdateSipMediaApplicationCall' :: UpdateSipMediaApplicationCall -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/sip-media-applications/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
sipMediaApplicationId,
        ByteString
"/calls/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
transactionId
      ]

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

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

-- |
-- Create a value of 'UpdateSipMediaApplicationCallResponse' 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:
--
-- 'sipMediaApplicationCall', 'updateSipMediaApplicationCallResponse_sipMediaApplicationCall' - Undocumented member.
--
-- 'httpStatus', 'updateSipMediaApplicationCallResponse_httpStatus' - The response's http status code.
newUpdateSipMediaApplicationCallResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateSipMediaApplicationCallResponse
newUpdateSipMediaApplicationCallResponse :: Int -> UpdateSipMediaApplicationCallResponse
newUpdateSipMediaApplicationCallResponse Int
pHttpStatus_ =
  UpdateSipMediaApplicationCallResponse' :: Maybe SipMediaApplicationCall
-> Int -> UpdateSipMediaApplicationCallResponse
UpdateSipMediaApplicationCallResponse'
    { $sel:sipMediaApplicationCall:UpdateSipMediaApplicationCallResponse' :: Maybe SipMediaApplicationCall
sipMediaApplicationCall =
        Maybe SipMediaApplicationCall
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateSipMediaApplicationCallResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
updateSipMediaApplicationCallResponse_sipMediaApplicationCall :: Lens.Lens' UpdateSipMediaApplicationCallResponse (Prelude.Maybe SipMediaApplicationCall)
updateSipMediaApplicationCallResponse_sipMediaApplicationCall :: (Maybe SipMediaApplicationCall
 -> f (Maybe SipMediaApplicationCall))
-> UpdateSipMediaApplicationCallResponse
-> f UpdateSipMediaApplicationCallResponse
updateSipMediaApplicationCallResponse_sipMediaApplicationCall = (UpdateSipMediaApplicationCallResponse
 -> Maybe SipMediaApplicationCall)
-> (UpdateSipMediaApplicationCallResponse
    -> Maybe SipMediaApplicationCall
    -> UpdateSipMediaApplicationCallResponse)
-> Lens
     UpdateSipMediaApplicationCallResponse
     UpdateSipMediaApplicationCallResponse
     (Maybe SipMediaApplicationCall)
     (Maybe SipMediaApplicationCall)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSipMediaApplicationCallResponse' {Maybe SipMediaApplicationCall
sipMediaApplicationCall :: Maybe SipMediaApplicationCall
$sel:sipMediaApplicationCall:UpdateSipMediaApplicationCallResponse' :: UpdateSipMediaApplicationCallResponse
-> Maybe SipMediaApplicationCall
sipMediaApplicationCall} -> Maybe SipMediaApplicationCall
sipMediaApplicationCall) (\s :: UpdateSipMediaApplicationCallResponse
s@UpdateSipMediaApplicationCallResponse' {} Maybe SipMediaApplicationCall
a -> UpdateSipMediaApplicationCallResponse
s {$sel:sipMediaApplicationCall:UpdateSipMediaApplicationCallResponse' :: Maybe SipMediaApplicationCall
sipMediaApplicationCall = Maybe SipMediaApplicationCall
a} :: UpdateSipMediaApplicationCallResponse)

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

instance
  Prelude.NFData
    UpdateSipMediaApplicationCallResponse