{-# 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.AacCodingMode
-- 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.AacCodingMode
  ( AacCodingMode
      ( ..,
        AacCodingMode_AD_RECEIVER_MIX,
        AacCodingMode_CODING_MODE_1_0,
        AacCodingMode_CODING_MODE_1_1,
        AacCodingMode_CODING_MODE_2_0,
        AacCodingMode_CODING_MODE_5_1
      ),
  )
where

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

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

pattern AacCodingMode_AD_RECEIVER_MIX :: AacCodingMode
pattern $bAacCodingMode_AD_RECEIVER_MIX :: AacCodingMode
$mAacCodingMode_AD_RECEIVER_MIX :: forall {r}. AacCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
AacCodingMode_AD_RECEIVER_MIX = AacCodingMode' "AD_RECEIVER_MIX"

pattern AacCodingMode_CODING_MODE_1_0 :: AacCodingMode
pattern $bAacCodingMode_CODING_MODE_1_0 :: AacCodingMode
$mAacCodingMode_CODING_MODE_1_0 :: forall {r}. AacCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
AacCodingMode_CODING_MODE_1_0 = AacCodingMode' "CODING_MODE_1_0"

pattern AacCodingMode_CODING_MODE_1_1 :: AacCodingMode
pattern $bAacCodingMode_CODING_MODE_1_1 :: AacCodingMode
$mAacCodingMode_CODING_MODE_1_1 :: forall {r}. AacCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
AacCodingMode_CODING_MODE_1_1 = AacCodingMode' "CODING_MODE_1_1"

pattern AacCodingMode_CODING_MODE_2_0 :: AacCodingMode
pattern $bAacCodingMode_CODING_MODE_2_0 :: AacCodingMode
$mAacCodingMode_CODING_MODE_2_0 :: forall {r}. AacCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
AacCodingMode_CODING_MODE_2_0 = AacCodingMode' "CODING_MODE_2_0"

pattern AacCodingMode_CODING_MODE_5_1 :: AacCodingMode
pattern $bAacCodingMode_CODING_MODE_5_1 :: AacCodingMode
$mAacCodingMode_CODING_MODE_5_1 :: forall {r}. AacCodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
AacCodingMode_CODING_MODE_5_1 = AacCodingMode' "CODING_MODE_5_1"

{-# COMPLETE
  AacCodingMode_AD_RECEIVER_MIX,
  AacCodingMode_CODING_MODE_1_0,
  AacCodingMode_CODING_MODE_1_1,
  AacCodingMode_CODING_MODE_2_0,
  AacCodingMode_CODING_MODE_5_1,
  AacCodingMode'
  #-}