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

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

pattern AacCodingMode_AD_RECEIVER_MIX :: AacCodingMode
pattern $bAacCodingMode_AD_RECEIVER_MIX :: AacCodingMode
$mAacCodingMode_AD_RECEIVER_MIX :: forall r. AacCodingMode -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}