{-# 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.MediaConvert.Types.AacRawFormat
-- 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.MediaConvert.Types.AacRawFormat
  ( AacRawFormat
      ( ..,
        AacRawFormat_LATM_LOAS,
        AacRawFormat_NONE
      ),
  )
where

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

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

pattern AacRawFormat_LATM_LOAS :: AacRawFormat
pattern $bAacRawFormat_LATM_LOAS :: AacRawFormat
$mAacRawFormat_LATM_LOAS :: forall r. AacRawFormat -> (Void# -> r) -> (Void# -> r) -> r
AacRawFormat_LATM_LOAS = AacRawFormat' "LATM_LOAS"

pattern AacRawFormat_NONE :: AacRawFormat
pattern $bAacRawFormat_NONE :: AacRawFormat
$mAacRawFormat_NONE :: forall r. AacRawFormat -> (Void# -> r) -> (Void# -> r) -> r
AacRawFormat_NONE = AacRawFormat' "NONE"

{-# COMPLETE
  AacRawFormat_LATM_LOAS,
  AacRawFormat_NONE,
  AacRawFormat'
  #-}