{-# 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.AacProfile
-- 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.AacProfile
  ( AacProfile
      ( ..,
        AacProfile_HEV1,
        AacProfile_HEV2,
        AacProfile_LC
      ),
  )
where

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

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

pattern AacProfile_HEV1 :: AacProfile
pattern $bAacProfile_HEV1 :: AacProfile
$mAacProfile_HEV1 :: forall r. AacProfile -> (Void# -> r) -> (Void# -> r) -> r
AacProfile_HEV1 = AacProfile' "HEV1"

pattern AacProfile_HEV2 :: AacProfile
pattern $bAacProfile_HEV2 :: AacProfile
$mAacProfile_HEV2 :: forall r. AacProfile -> (Void# -> r) -> (Void# -> r) -> r
AacProfile_HEV2 = AacProfile' "HEV2"

pattern AacProfile_LC :: AacProfile
pattern $bAacProfile_LC :: AacProfile
$mAacProfile_LC :: forall r. AacProfile -> (Void# -> r) -> (Void# -> r) -> r
AacProfile_LC = AacProfile' "LC"

{-# COMPLETE
  AacProfile_HEV1,
  AacProfile_HEV2,
  AacProfile_LC,
  AacProfile'
  #-}