{-# 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.MediaLive.Types.WavCodingMode
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.WavCodingMode
  ( WavCodingMode
      ( ..,
        WavCodingMode_CODING_MODE_1_0,
        WavCodingMode_CODING_MODE_2_0,
        WavCodingMode_CODING_MODE_4_0,
        WavCodingMode_CODING_MODE_8_0
      ),
  )
where

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

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

pattern WavCodingMode_CODING_MODE_1_0 :: WavCodingMode
pattern $bWavCodingMode_CODING_MODE_1_0 :: WavCodingMode
$mWavCodingMode_CODING_MODE_1_0 :: forall {r}. WavCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
WavCodingMode_CODING_MODE_1_0 = WavCodingMode' "CODING_MODE_1_0"

pattern WavCodingMode_CODING_MODE_2_0 :: WavCodingMode
pattern $bWavCodingMode_CODING_MODE_2_0 :: WavCodingMode
$mWavCodingMode_CODING_MODE_2_0 :: forall {r}. WavCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
WavCodingMode_CODING_MODE_2_0 = WavCodingMode' "CODING_MODE_2_0"

pattern WavCodingMode_CODING_MODE_4_0 :: WavCodingMode
pattern $bWavCodingMode_CODING_MODE_4_0 :: WavCodingMode
$mWavCodingMode_CODING_MODE_4_0 :: forall {r}. WavCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
WavCodingMode_CODING_MODE_4_0 = WavCodingMode' "CODING_MODE_4_0"

pattern WavCodingMode_CODING_MODE_8_0 :: WavCodingMode
pattern $bWavCodingMode_CODING_MODE_8_0 :: WavCodingMode
$mWavCodingMode_CODING_MODE_8_0 :: forall {r}. WavCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
WavCodingMode_CODING_MODE_8_0 = WavCodingMode' "CODING_MODE_8_0"

{-# COMPLETE
  WavCodingMode_CODING_MODE_1_0,
  WavCodingMode_CODING_MODE_2_0,
  WavCodingMode_CODING_MODE_4_0,
  WavCodingMode_CODING_MODE_8_0,
  WavCodingMode'
  #-}