{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Chime.Types.AudioMuxType
-- 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)
module Amazonka.Chime.Types.AudioMuxType
  ( AudioMuxType
      ( ..,
        AudioMuxType_AudioOnly,
        AudioMuxType_AudioWithActiveSpeakerVideo
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype AudioMuxType = AudioMuxType'
  { AudioMuxType -> Text
fromAudioMuxType ::
      Core.Text
  }
  deriving stock
    ( Int -> AudioMuxType -> ShowS
[AudioMuxType] -> ShowS
AudioMuxType -> String
(Int -> AudioMuxType -> ShowS)
-> (AudioMuxType -> String)
-> ([AudioMuxType] -> ShowS)
-> Show AudioMuxType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AudioMuxType] -> ShowS
$cshowList :: [AudioMuxType] -> ShowS
show :: AudioMuxType -> String
$cshow :: AudioMuxType -> String
showsPrec :: Int -> AudioMuxType -> ShowS
$cshowsPrec :: Int -> AudioMuxType -> ShowS
Prelude.Show,
      ReadPrec [AudioMuxType]
ReadPrec AudioMuxType
Int -> ReadS AudioMuxType
ReadS [AudioMuxType]
(Int -> ReadS AudioMuxType)
-> ReadS [AudioMuxType]
-> ReadPrec AudioMuxType
-> ReadPrec [AudioMuxType]
-> Read AudioMuxType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AudioMuxType]
$creadListPrec :: ReadPrec [AudioMuxType]
readPrec :: ReadPrec AudioMuxType
$creadPrec :: ReadPrec AudioMuxType
readList :: ReadS [AudioMuxType]
$creadList :: ReadS [AudioMuxType]
readsPrec :: Int -> ReadS AudioMuxType
$creadsPrec :: Int -> ReadS AudioMuxType
Prelude.Read,
      AudioMuxType -> AudioMuxType -> Bool
(AudioMuxType -> AudioMuxType -> Bool)
-> (AudioMuxType -> AudioMuxType -> Bool) -> Eq AudioMuxType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AudioMuxType -> AudioMuxType -> Bool
$c/= :: AudioMuxType -> AudioMuxType -> Bool
== :: AudioMuxType -> AudioMuxType -> Bool
$c== :: AudioMuxType -> AudioMuxType -> Bool
Prelude.Eq,
      Eq AudioMuxType
Eq AudioMuxType
-> (AudioMuxType -> AudioMuxType -> Ordering)
-> (AudioMuxType -> AudioMuxType -> Bool)
-> (AudioMuxType -> AudioMuxType -> Bool)
-> (AudioMuxType -> AudioMuxType -> Bool)
-> (AudioMuxType -> AudioMuxType -> Bool)
-> (AudioMuxType -> AudioMuxType -> AudioMuxType)
-> (AudioMuxType -> AudioMuxType -> AudioMuxType)
-> Ord AudioMuxType
AudioMuxType -> AudioMuxType -> Bool
AudioMuxType -> AudioMuxType -> Ordering
AudioMuxType -> AudioMuxType -> AudioMuxType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: AudioMuxType -> AudioMuxType -> AudioMuxType
$cmin :: AudioMuxType -> AudioMuxType -> AudioMuxType
max :: AudioMuxType -> AudioMuxType -> AudioMuxType
$cmax :: AudioMuxType -> AudioMuxType -> AudioMuxType
>= :: AudioMuxType -> AudioMuxType -> Bool
$c>= :: AudioMuxType -> AudioMuxType -> Bool
> :: AudioMuxType -> AudioMuxType -> Bool
$c> :: AudioMuxType -> AudioMuxType -> Bool
<= :: AudioMuxType -> AudioMuxType -> Bool
$c<= :: AudioMuxType -> AudioMuxType -> Bool
< :: AudioMuxType -> AudioMuxType -> Bool
$c< :: AudioMuxType -> AudioMuxType -> Bool
compare :: AudioMuxType -> AudioMuxType -> Ordering
$ccompare :: AudioMuxType -> AudioMuxType -> Ordering
$cp1Ord :: Eq AudioMuxType
Prelude.Ord,
      (forall x. AudioMuxType -> Rep AudioMuxType x)
-> (forall x. Rep AudioMuxType x -> AudioMuxType)
-> Generic AudioMuxType
forall x. Rep AudioMuxType x -> AudioMuxType
forall x. AudioMuxType -> Rep AudioMuxType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AudioMuxType x -> AudioMuxType
$cfrom :: forall x. AudioMuxType -> Rep AudioMuxType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> AudioMuxType -> Int
AudioMuxType -> Int
(Int -> AudioMuxType -> Int)
-> (AudioMuxType -> Int) -> Hashable AudioMuxType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AudioMuxType -> Int
$chash :: AudioMuxType -> Int
hashWithSalt :: Int -> AudioMuxType -> Int
$chashWithSalt :: Int -> AudioMuxType -> Int
Prelude.Hashable,
      AudioMuxType -> ()
(AudioMuxType -> ()) -> NFData AudioMuxType
forall a. (a -> ()) -> NFData a
rnf :: AudioMuxType -> ()
$crnf :: AudioMuxType -> ()
Prelude.NFData,
      Text -> Either String AudioMuxType
(Text -> Either String AudioMuxType) -> FromText AudioMuxType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AudioMuxType
$cfromText :: Text -> Either String AudioMuxType
Core.FromText,
      AudioMuxType -> Text
(AudioMuxType -> Text) -> ToText AudioMuxType
forall a. (a -> Text) -> ToText a
toText :: AudioMuxType -> Text
$ctoText :: AudioMuxType -> Text
Core.ToText,
      AudioMuxType -> ByteString
(AudioMuxType -> ByteString) -> ToByteString AudioMuxType
forall a. (a -> ByteString) -> ToByteString a
toBS :: AudioMuxType -> ByteString
$ctoBS :: AudioMuxType -> ByteString
Core.ToByteString,
      AudioMuxType -> ByteStringBuilder
(AudioMuxType -> ByteStringBuilder) -> ToLog AudioMuxType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AudioMuxType -> ByteStringBuilder
$cbuild :: AudioMuxType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AudioMuxType -> [Header]
(HeaderName -> AudioMuxType -> [Header]) -> ToHeader AudioMuxType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AudioMuxType -> [Header]
$ctoHeader :: HeaderName -> AudioMuxType -> [Header]
Core.ToHeader,
      AudioMuxType -> QueryString
(AudioMuxType -> QueryString) -> ToQuery AudioMuxType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AudioMuxType -> QueryString
$ctoQuery :: AudioMuxType -> QueryString
Core.ToQuery,
      Value -> Parser [AudioMuxType]
Value -> Parser AudioMuxType
(Value -> Parser AudioMuxType)
-> (Value -> Parser [AudioMuxType]) -> FromJSON AudioMuxType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AudioMuxType]
$cparseJSONList :: Value -> Parser [AudioMuxType]
parseJSON :: Value -> Parser AudioMuxType
$cparseJSON :: Value -> Parser AudioMuxType
Core.FromJSON,
      FromJSONKeyFunction [AudioMuxType]
FromJSONKeyFunction AudioMuxType
FromJSONKeyFunction AudioMuxType
-> FromJSONKeyFunction [AudioMuxType] -> FromJSONKey AudioMuxType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AudioMuxType]
$cfromJSONKeyList :: FromJSONKeyFunction [AudioMuxType]
fromJSONKey :: FromJSONKeyFunction AudioMuxType
$cfromJSONKey :: FromJSONKeyFunction AudioMuxType
Core.FromJSONKey,
      [AudioMuxType] -> Encoding
[AudioMuxType] -> Value
AudioMuxType -> Encoding
AudioMuxType -> Value
(AudioMuxType -> Value)
-> (AudioMuxType -> Encoding)
-> ([AudioMuxType] -> Value)
-> ([AudioMuxType] -> Encoding)
-> ToJSON AudioMuxType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AudioMuxType] -> Encoding
$ctoEncodingList :: [AudioMuxType] -> Encoding
toJSONList :: [AudioMuxType] -> Value
$ctoJSONList :: [AudioMuxType] -> Value
toEncoding :: AudioMuxType -> Encoding
$ctoEncoding :: AudioMuxType -> Encoding
toJSON :: AudioMuxType -> Value
$ctoJSON :: AudioMuxType -> Value
Core.ToJSON,
      ToJSONKeyFunction [AudioMuxType]
ToJSONKeyFunction AudioMuxType
ToJSONKeyFunction AudioMuxType
-> ToJSONKeyFunction [AudioMuxType] -> ToJSONKey AudioMuxType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AudioMuxType]
$ctoJSONKeyList :: ToJSONKeyFunction [AudioMuxType]
toJSONKey :: ToJSONKeyFunction AudioMuxType
$ctoJSONKey :: ToJSONKeyFunction AudioMuxType
Core.ToJSONKey,
      [Node] -> Either String AudioMuxType
([Node] -> Either String AudioMuxType) -> FromXML AudioMuxType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AudioMuxType
$cparseXML :: [Node] -> Either String AudioMuxType
Core.FromXML,
      AudioMuxType -> XML
(AudioMuxType -> XML) -> ToXML AudioMuxType
forall a. (a -> XML) -> ToXML a
toXML :: AudioMuxType -> XML
$ctoXML :: AudioMuxType -> XML
Core.ToXML
    )

pattern AudioMuxType_AudioOnly :: AudioMuxType
pattern $bAudioMuxType_AudioOnly :: AudioMuxType
$mAudioMuxType_AudioOnly :: forall r. AudioMuxType -> (Void# -> r) -> (Void# -> r) -> r
AudioMuxType_AudioOnly = AudioMuxType' "AudioOnly"

pattern AudioMuxType_AudioWithActiveSpeakerVideo :: AudioMuxType
pattern $bAudioMuxType_AudioWithActiveSpeakerVideo :: AudioMuxType
$mAudioMuxType_AudioWithActiveSpeakerVideo :: forall r. AudioMuxType -> (Void# -> r) -> (Void# -> r) -> r
AudioMuxType_AudioWithActiveSpeakerVideo = AudioMuxType' "AudioWithActiveSpeakerVideo"

{-# COMPLETE
  AudioMuxType_AudioOnly,
  AudioMuxType_AudioWithActiveSpeakerVideo,
  AudioMuxType'
  #-}