{-# 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.ChimeSdkMeetings.Types.AudioFeatures where
import Amazonka.ChimeSdkMeetings.Types.MeetingFeatureStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data AudioFeatures = AudioFeatures'
{
AudioFeatures -> Maybe MeetingFeatureStatus
echoReduction :: Prelude.Maybe MeetingFeatureStatus
}
deriving (AudioFeatures -> AudioFeatures -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AudioFeatures -> AudioFeatures -> Bool
$c/= :: AudioFeatures -> AudioFeatures -> Bool
== :: AudioFeatures -> AudioFeatures -> Bool
$c== :: AudioFeatures -> AudioFeatures -> Bool
Prelude.Eq, ReadPrec [AudioFeatures]
ReadPrec AudioFeatures
Int -> ReadS AudioFeatures
ReadS [AudioFeatures]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AudioFeatures]
$creadListPrec :: ReadPrec [AudioFeatures]
readPrec :: ReadPrec AudioFeatures
$creadPrec :: ReadPrec AudioFeatures
readList :: ReadS [AudioFeatures]
$creadList :: ReadS [AudioFeatures]
readsPrec :: Int -> ReadS AudioFeatures
$creadsPrec :: Int -> ReadS AudioFeatures
Prelude.Read, Int -> AudioFeatures -> ShowS
[AudioFeatures] -> ShowS
AudioFeatures -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AudioFeatures] -> ShowS
$cshowList :: [AudioFeatures] -> ShowS
show :: AudioFeatures -> String
$cshow :: AudioFeatures -> String
showsPrec :: Int -> AudioFeatures -> ShowS
$cshowsPrec :: Int -> AudioFeatures -> ShowS
Prelude.Show, forall x. Rep AudioFeatures x -> AudioFeatures
forall x. AudioFeatures -> Rep AudioFeatures x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AudioFeatures x -> AudioFeatures
$cfrom :: forall x. AudioFeatures -> Rep AudioFeatures x
Prelude.Generic)
newAudioFeatures ::
AudioFeatures
newAudioFeatures :: AudioFeatures
newAudioFeatures =
AudioFeatures' {$sel:echoReduction:AudioFeatures' :: Maybe MeetingFeatureStatus
echoReduction = forall a. Maybe a
Prelude.Nothing}
audioFeatures_echoReduction :: Lens.Lens' AudioFeatures (Prelude.Maybe MeetingFeatureStatus)
audioFeatures_echoReduction :: Lens' AudioFeatures (Maybe MeetingFeatureStatus)
audioFeatures_echoReduction = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioFeatures' {Maybe MeetingFeatureStatus
echoReduction :: Maybe MeetingFeatureStatus
$sel:echoReduction:AudioFeatures' :: AudioFeatures -> Maybe MeetingFeatureStatus
echoReduction} -> Maybe MeetingFeatureStatus
echoReduction) (\s :: AudioFeatures
s@AudioFeatures' {} Maybe MeetingFeatureStatus
a -> AudioFeatures
s {$sel:echoReduction:AudioFeatures' :: Maybe MeetingFeatureStatus
echoReduction = Maybe MeetingFeatureStatus
a} :: AudioFeatures)
instance Data.FromJSON AudioFeatures where
parseJSON :: Value -> Parser AudioFeatures
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AudioFeatures"
( \Object
x ->
Maybe MeetingFeatureStatus -> AudioFeatures
AudioFeatures'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EchoReduction")
)
instance Prelude.Hashable AudioFeatures where
hashWithSalt :: Int -> AudioFeatures -> Int
hashWithSalt Int
_salt AudioFeatures' {Maybe MeetingFeatureStatus
echoReduction :: Maybe MeetingFeatureStatus
$sel:echoReduction:AudioFeatures' :: AudioFeatures -> Maybe MeetingFeatureStatus
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MeetingFeatureStatus
echoReduction
instance Prelude.NFData AudioFeatures where
rnf :: AudioFeatures -> ()
rnf AudioFeatures' {Maybe MeetingFeatureStatus
echoReduction :: Maybe MeetingFeatureStatus
$sel:echoReduction:AudioFeatures' :: AudioFeatures -> Maybe MeetingFeatureStatus
..} = forall a. NFData a => a -> ()
Prelude.rnf Maybe MeetingFeatureStatus
echoReduction
instance Data.ToJSON AudioFeatures where
toJSON :: AudioFeatures -> Value
toJSON AudioFeatures' {Maybe MeetingFeatureStatus
echoReduction :: Maybe MeetingFeatureStatus
$sel:echoReduction:AudioFeatures' :: AudioFeatures -> Maybe MeetingFeatureStatus
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"EchoReduction" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MeetingFeatureStatus
echoReduction
]
)