{-# 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.Eac3AtmosMeteringMode
-- 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.Eac3AtmosMeteringMode
  ( Eac3AtmosMeteringMode
      ( ..,
        Eac3AtmosMeteringMode_ITU_BS_1770_1,
        Eac3AtmosMeteringMode_ITU_BS_1770_2,
        Eac3AtmosMeteringMode_ITU_BS_1770_3,
        Eac3AtmosMeteringMode_ITU_BS_1770_4,
        Eac3AtmosMeteringMode_LEQ_A
      ),
  )
where

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

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

pattern Eac3AtmosMeteringMode_ITU_BS_1770_1 :: Eac3AtmosMeteringMode
pattern $bEac3AtmosMeteringMode_ITU_BS_1770_1 :: Eac3AtmosMeteringMode
$mEac3AtmosMeteringMode_ITU_BS_1770_1 :: forall r.
Eac3AtmosMeteringMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosMeteringMode_ITU_BS_1770_1 = Eac3AtmosMeteringMode' "ITU_BS_1770_1"

pattern Eac3AtmosMeteringMode_ITU_BS_1770_2 :: Eac3AtmosMeteringMode
pattern $bEac3AtmosMeteringMode_ITU_BS_1770_2 :: Eac3AtmosMeteringMode
$mEac3AtmosMeteringMode_ITU_BS_1770_2 :: forall r.
Eac3AtmosMeteringMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosMeteringMode_ITU_BS_1770_2 = Eac3AtmosMeteringMode' "ITU_BS_1770_2"

pattern Eac3AtmosMeteringMode_ITU_BS_1770_3 :: Eac3AtmosMeteringMode
pattern $bEac3AtmosMeteringMode_ITU_BS_1770_3 :: Eac3AtmosMeteringMode
$mEac3AtmosMeteringMode_ITU_BS_1770_3 :: forall r.
Eac3AtmosMeteringMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosMeteringMode_ITU_BS_1770_3 = Eac3AtmosMeteringMode' "ITU_BS_1770_3"

pattern Eac3AtmosMeteringMode_ITU_BS_1770_4 :: Eac3AtmosMeteringMode
pattern $bEac3AtmosMeteringMode_ITU_BS_1770_4 :: Eac3AtmosMeteringMode
$mEac3AtmosMeteringMode_ITU_BS_1770_4 :: forall r.
Eac3AtmosMeteringMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosMeteringMode_ITU_BS_1770_4 = Eac3AtmosMeteringMode' "ITU_BS_1770_4"

pattern Eac3AtmosMeteringMode_LEQ_A :: Eac3AtmosMeteringMode
pattern $bEac3AtmosMeteringMode_LEQ_A :: Eac3AtmosMeteringMode
$mEac3AtmosMeteringMode_LEQ_A :: forall r.
Eac3AtmosMeteringMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosMeteringMode_LEQ_A = Eac3AtmosMeteringMode' "LEQ_A"

{-# COMPLETE
  Eac3AtmosMeteringMode_ITU_BS_1770_1,
  Eac3AtmosMeteringMode_ITU_BS_1770_2,
  Eac3AtmosMeteringMode_ITU_BS_1770_3,
  Eac3AtmosMeteringMode_ITU_BS_1770_4,
  Eac3AtmosMeteringMode_LEQ_A,
  Eac3AtmosMeteringMode'
  #-}