{-# 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-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.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.Prelude as Prelude

-- | Wav Coding Mode
newtype WavCodingMode = WavCodingMode'
  { WavCodingMode -> Text
fromWavCodingMode ::
      Core.Text
  }
  deriving stock
    ( Int -> WavCodingMode -> ShowS
[WavCodingMode] -> ShowS
WavCodingMode -> String
(Int -> WavCodingMode -> ShowS)
-> (WavCodingMode -> String)
-> ([WavCodingMode] -> ShowS)
-> Show WavCodingMode
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]
(Int -> ReadS WavCodingMode)
-> ReadS [WavCodingMode]
-> ReadPrec WavCodingMode
-> ReadPrec [WavCodingMode]
-> Read 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
(WavCodingMode -> WavCodingMode -> Bool)
-> (WavCodingMode -> WavCodingMode -> Bool) -> Eq WavCodingMode
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
Eq WavCodingMode
-> (WavCodingMode -> WavCodingMode -> Ordering)
-> (WavCodingMode -> WavCodingMode -> Bool)
-> (WavCodingMode -> WavCodingMode -> Bool)
-> (WavCodingMode -> WavCodingMode -> Bool)
-> (WavCodingMode -> WavCodingMode -> Bool)
-> (WavCodingMode -> WavCodingMode -> WavCodingMode)
-> (WavCodingMode -> WavCodingMode -> WavCodingMode)
-> Ord 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
$cp1Ord :: Eq WavCodingMode
Prelude.Ord,
      (forall x. WavCodingMode -> Rep WavCodingMode x)
-> (forall x. Rep WavCodingMode x -> WavCodingMode)
-> Generic WavCodingMode
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
    ( Int -> WavCodingMode -> Int
WavCodingMode -> Int
(Int -> WavCodingMode -> Int)
-> (WavCodingMode -> Int) -> Hashable WavCodingMode
forall 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 -> ()
(WavCodingMode -> ()) -> NFData WavCodingMode
forall a. (a -> ()) -> NFData a
rnf :: WavCodingMode -> ()
$crnf :: WavCodingMode -> ()
Prelude.NFData,
      Text -> Either String WavCodingMode
(Text -> Either String WavCodingMode) -> FromText WavCodingMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WavCodingMode
$cfromText :: Text -> Either String WavCodingMode
Core.FromText,
      WavCodingMode -> Text
(WavCodingMode -> Text) -> ToText WavCodingMode
forall a. (a -> Text) -> ToText a
toText :: WavCodingMode -> Text
$ctoText :: WavCodingMode -> Text
Core.ToText,
      WavCodingMode -> ByteString
(WavCodingMode -> ByteString) -> ToByteString WavCodingMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: WavCodingMode -> ByteString
$ctoBS :: WavCodingMode -> ByteString
Core.ToByteString,
      WavCodingMode -> ByteStringBuilder
(WavCodingMode -> ByteStringBuilder) -> ToLog WavCodingMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WavCodingMode -> ByteStringBuilder
$cbuild :: WavCodingMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> WavCodingMode -> [Header]
(HeaderName -> WavCodingMode -> [Header]) -> ToHeader WavCodingMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WavCodingMode -> [Header]
$ctoHeader :: HeaderName -> WavCodingMode -> [Header]
Core.ToHeader,
      WavCodingMode -> QueryString
(WavCodingMode -> QueryString) -> ToQuery WavCodingMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WavCodingMode -> QueryString
$ctoQuery :: WavCodingMode -> QueryString
Core.ToQuery,
      Value -> Parser [WavCodingMode]
Value -> Parser WavCodingMode
(Value -> Parser WavCodingMode)
-> (Value -> Parser [WavCodingMode]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [WavCodingMode]
FromJSONKeyFunction WavCodingMode
FromJSONKeyFunction WavCodingMode
-> FromJSONKeyFunction [WavCodingMode] -> FromJSONKey WavCodingMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WavCodingMode]
$cfromJSONKeyList :: FromJSONKeyFunction [WavCodingMode]
fromJSONKey :: FromJSONKeyFunction WavCodingMode
$cfromJSONKey :: FromJSONKeyFunction WavCodingMode
Core.FromJSONKey,
      [WavCodingMode] -> Encoding
[WavCodingMode] -> Value
WavCodingMode -> Encoding
WavCodingMode -> Value
(WavCodingMode -> Value)
-> (WavCodingMode -> Encoding)
-> ([WavCodingMode] -> Value)
-> ([WavCodingMode] -> Encoding)
-> ToJSON WavCodingMode
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
Core.ToJSON,
      ToJSONKeyFunction [WavCodingMode]
ToJSONKeyFunction WavCodingMode
ToJSONKeyFunction WavCodingMode
-> ToJSONKeyFunction [WavCodingMode] -> ToJSONKey WavCodingMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WavCodingMode]
$ctoJSONKeyList :: ToJSONKeyFunction [WavCodingMode]
toJSONKey :: ToJSONKeyFunction WavCodingMode
$ctoJSONKey :: ToJSONKeyFunction WavCodingMode
Core.ToJSONKey,
      [Node] -> Either String WavCodingMode
([Node] -> Either String WavCodingMode) -> FromXML WavCodingMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WavCodingMode
$cparseXML :: [Node] -> Either String WavCodingMode
Core.FromXML,
      WavCodingMode -> XML
(WavCodingMode -> XML) -> ToXML WavCodingMode
forall a. (a -> XML) -> ToXML a
toXML :: WavCodingMode -> XML
$ctoXML :: WavCodingMode -> XML
Core.ToXML
    )

pattern WavCodingMode_CODING_MODE_1_0 :: WavCodingMode
pattern $bWavCodingMode_CODING_MODE_1_0 :: WavCodingMode
$mWavCodingMode_CODING_MODE_1_0 :: forall r. WavCodingMode -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}