{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Chime.Types.SipMediaApplicationCall where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data SipMediaApplicationCall = SipMediaApplicationCall'
{
SipMediaApplicationCall -> Maybe Text
transactionId :: Prelude.Maybe Prelude.Text
}
deriving (SipMediaApplicationCall -> SipMediaApplicationCall -> Bool
(SipMediaApplicationCall -> SipMediaApplicationCall -> Bool)
-> (SipMediaApplicationCall -> SipMediaApplicationCall -> Bool)
-> Eq SipMediaApplicationCall
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SipMediaApplicationCall -> SipMediaApplicationCall -> Bool
$c/= :: SipMediaApplicationCall -> SipMediaApplicationCall -> Bool
== :: SipMediaApplicationCall -> SipMediaApplicationCall -> Bool
$c== :: SipMediaApplicationCall -> SipMediaApplicationCall -> Bool
Prelude.Eq, ReadPrec [SipMediaApplicationCall]
ReadPrec SipMediaApplicationCall
Int -> ReadS SipMediaApplicationCall
ReadS [SipMediaApplicationCall]
(Int -> ReadS SipMediaApplicationCall)
-> ReadS [SipMediaApplicationCall]
-> ReadPrec SipMediaApplicationCall
-> ReadPrec [SipMediaApplicationCall]
-> Read SipMediaApplicationCall
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SipMediaApplicationCall]
$creadListPrec :: ReadPrec [SipMediaApplicationCall]
readPrec :: ReadPrec SipMediaApplicationCall
$creadPrec :: ReadPrec SipMediaApplicationCall
readList :: ReadS [SipMediaApplicationCall]
$creadList :: ReadS [SipMediaApplicationCall]
readsPrec :: Int -> ReadS SipMediaApplicationCall
$creadsPrec :: Int -> ReadS SipMediaApplicationCall
Prelude.Read, Int -> SipMediaApplicationCall -> ShowS
[SipMediaApplicationCall] -> ShowS
SipMediaApplicationCall -> String
(Int -> SipMediaApplicationCall -> ShowS)
-> (SipMediaApplicationCall -> String)
-> ([SipMediaApplicationCall] -> ShowS)
-> Show SipMediaApplicationCall
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SipMediaApplicationCall] -> ShowS
$cshowList :: [SipMediaApplicationCall] -> ShowS
show :: SipMediaApplicationCall -> String
$cshow :: SipMediaApplicationCall -> String
showsPrec :: Int -> SipMediaApplicationCall -> ShowS
$cshowsPrec :: Int -> SipMediaApplicationCall -> ShowS
Prelude.Show, (forall x.
SipMediaApplicationCall -> Rep SipMediaApplicationCall x)
-> (forall x.
Rep SipMediaApplicationCall x -> SipMediaApplicationCall)
-> Generic SipMediaApplicationCall
forall x. Rep SipMediaApplicationCall x -> SipMediaApplicationCall
forall x. SipMediaApplicationCall -> Rep SipMediaApplicationCall x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SipMediaApplicationCall x -> SipMediaApplicationCall
$cfrom :: forall x. SipMediaApplicationCall -> Rep SipMediaApplicationCall x
Prelude.Generic)
newSipMediaApplicationCall ::
SipMediaApplicationCall
newSipMediaApplicationCall :: SipMediaApplicationCall
newSipMediaApplicationCall =
SipMediaApplicationCall' :: Maybe Text -> SipMediaApplicationCall
SipMediaApplicationCall'
{ $sel:transactionId:SipMediaApplicationCall' :: Maybe Text
transactionId =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
sipMediaApplicationCall_transactionId :: Lens.Lens' SipMediaApplicationCall (Prelude.Maybe Prelude.Text)
sipMediaApplicationCall_transactionId :: (Maybe Text -> f (Maybe Text))
-> SipMediaApplicationCall -> f SipMediaApplicationCall
sipMediaApplicationCall_transactionId = (SipMediaApplicationCall -> Maybe Text)
-> (SipMediaApplicationCall
-> Maybe Text -> SipMediaApplicationCall)
-> Lens
SipMediaApplicationCall
SipMediaApplicationCall
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SipMediaApplicationCall' {Maybe Text
transactionId :: Maybe Text
$sel:transactionId:SipMediaApplicationCall' :: SipMediaApplicationCall -> Maybe Text
transactionId} -> Maybe Text
transactionId) (\s :: SipMediaApplicationCall
s@SipMediaApplicationCall' {} Maybe Text
a -> SipMediaApplicationCall
s {$sel:transactionId:SipMediaApplicationCall' :: Maybe Text
transactionId = Maybe Text
a} :: SipMediaApplicationCall)
instance Core.FromJSON SipMediaApplicationCall where
parseJSON :: Value -> Parser SipMediaApplicationCall
parseJSON =
String
-> (Object -> Parser SipMediaApplicationCall)
-> Value
-> Parser SipMediaApplicationCall
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SipMediaApplicationCall"
( \Object
x ->
Maybe Text -> SipMediaApplicationCall
SipMediaApplicationCall'
(Maybe Text -> SipMediaApplicationCall)
-> Parser (Maybe Text) -> Parser SipMediaApplicationCall
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TransactionId")
)
instance Prelude.Hashable SipMediaApplicationCall
instance Prelude.NFData SipMediaApplicationCall