{-# 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.AacSpec
-- 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.AacSpec
  ( AacSpec
      ( ..,
        AacSpec_MPEG2,
        AacSpec_MPEG4
      ),
  )
where

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

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

pattern AacSpec_MPEG2 :: AacSpec
pattern $bAacSpec_MPEG2 :: AacSpec
$mAacSpec_MPEG2 :: forall r. AacSpec -> (Void# -> r) -> (Void# -> r) -> r
AacSpec_MPEG2 = AacSpec' "MPEG2"

pattern AacSpec_MPEG4 :: AacSpec
pattern $bAacSpec_MPEG4 :: AacSpec
$mAacSpec_MPEG4 :: forall r. AacSpec -> (Void# -> r) -> (Void# -> r) -> r
AacSpec_MPEG4 = AacSpec' "MPEG4"

{-# COMPLETE
  AacSpec_MPEG2,
  AacSpec_MPEG4,
  AacSpec'
  #-}