{-# 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.Ac3MetadataControl
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.Ac3MetadataControl
  ( Ac3MetadataControl
      ( ..,
        Ac3MetadataControl_FOLLOW_INPUT,
        Ac3MetadataControl_USE_CONFIGURED
      ),
  )
where

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

-- | When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD,
-- DD+, or DolbyE decoder that supplied this audio data. If audio was not
-- supplied from one of these streams, then the static metadata settings
-- will be used.
newtype Ac3MetadataControl = Ac3MetadataControl'
  { Ac3MetadataControl -> Text
fromAc3MetadataControl ::
      Data.Text
  }
  deriving stock
    ( Int -> Ac3MetadataControl -> ShowS
[Ac3MetadataControl] -> ShowS
Ac3MetadataControl -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Ac3MetadataControl] -> ShowS
$cshowList :: [Ac3MetadataControl] -> ShowS
show :: Ac3MetadataControl -> String
$cshow :: Ac3MetadataControl -> String
showsPrec :: Int -> Ac3MetadataControl -> ShowS
$cshowsPrec :: Int -> Ac3MetadataControl -> ShowS
Prelude.Show,
      ReadPrec [Ac3MetadataControl]
ReadPrec Ac3MetadataControl
Int -> ReadS Ac3MetadataControl
ReadS [Ac3MetadataControl]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Ac3MetadataControl]
$creadListPrec :: ReadPrec [Ac3MetadataControl]
readPrec :: ReadPrec Ac3MetadataControl
$creadPrec :: ReadPrec Ac3MetadataControl
readList :: ReadS [Ac3MetadataControl]
$creadList :: ReadS [Ac3MetadataControl]
readsPrec :: Int -> ReadS Ac3MetadataControl
$creadsPrec :: Int -> ReadS Ac3MetadataControl
Prelude.Read,
      Ac3MetadataControl -> Ac3MetadataControl -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
$c/= :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
== :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
$c== :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
Prelude.Eq,
      Eq Ac3MetadataControl
Ac3MetadataControl -> Ac3MetadataControl -> Bool
Ac3MetadataControl -> Ac3MetadataControl -> Ordering
Ac3MetadataControl -> Ac3MetadataControl -> Ac3MetadataControl
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 :: Ac3MetadataControl -> Ac3MetadataControl -> Ac3MetadataControl
$cmin :: Ac3MetadataControl -> Ac3MetadataControl -> Ac3MetadataControl
max :: Ac3MetadataControl -> Ac3MetadataControl -> Ac3MetadataControl
$cmax :: Ac3MetadataControl -> Ac3MetadataControl -> Ac3MetadataControl
>= :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
$c>= :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
> :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
$c> :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
<= :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
$c<= :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
< :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
$c< :: Ac3MetadataControl -> Ac3MetadataControl -> Bool
compare :: Ac3MetadataControl -> Ac3MetadataControl -> Ordering
$ccompare :: Ac3MetadataControl -> Ac3MetadataControl -> Ordering
Prelude.Ord,
      forall x. Rep Ac3MetadataControl x -> Ac3MetadataControl
forall x. Ac3MetadataControl -> Rep Ac3MetadataControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Ac3MetadataControl x -> Ac3MetadataControl
$cfrom :: forall x. Ac3MetadataControl -> Rep Ac3MetadataControl x
Prelude.Generic
    )
  deriving newtype
    ( Eq Ac3MetadataControl
Int -> Ac3MetadataControl -> Int
Ac3MetadataControl -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Ac3MetadataControl -> Int
$chash :: Ac3MetadataControl -> Int
hashWithSalt :: Int -> Ac3MetadataControl -> Int
$chashWithSalt :: Int -> Ac3MetadataControl -> Int
Prelude.Hashable,
      Ac3MetadataControl -> ()
forall a. (a -> ()) -> NFData a
rnf :: Ac3MetadataControl -> ()
$crnf :: Ac3MetadataControl -> ()
Prelude.NFData,
      Text -> Either String Ac3MetadataControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Ac3MetadataControl
$cfromText :: Text -> Either String Ac3MetadataControl
Data.FromText,
      Ac3MetadataControl -> Text
forall a. (a -> Text) -> ToText a
toText :: Ac3MetadataControl -> Text
$ctoText :: Ac3MetadataControl -> Text
Data.ToText,
      Ac3MetadataControl -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Ac3MetadataControl -> ByteString
$ctoBS :: Ac3MetadataControl -> ByteString
Data.ToByteString,
      Ac3MetadataControl -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Ac3MetadataControl -> ByteStringBuilder
$cbuild :: Ac3MetadataControl -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Ac3MetadataControl -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Ac3MetadataControl -> [Header]
$ctoHeader :: HeaderName -> Ac3MetadataControl -> [Header]
Data.ToHeader,
      Ac3MetadataControl -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Ac3MetadataControl -> QueryString
$ctoQuery :: Ac3MetadataControl -> QueryString
Data.ToQuery,
      Value -> Parser [Ac3MetadataControl]
Value -> Parser Ac3MetadataControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Ac3MetadataControl]
$cparseJSONList :: Value -> Parser [Ac3MetadataControl]
parseJSON :: Value -> Parser Ac3MetadataControl
$cparseJSON :: Value -> Parser Ac3MetadataControl
Data.FromJSON,
      FromJSONKeyFunction [Ac3MetadataControl]
FromJSONKeyFunction Ac3MetadataControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Ac3MetadataControl]
$cfromJSONKeyList :: FromJSONKeyFunction [Ac3MetadataControl]
fromJSONKey :: FromJSONKeyFunction Ac3MetadataControl
$cfromJSONKey :: FromJSONKeyFunction Ac3MetadataControl
Data.FromJSONKey,
      [Ac3MetadataControl] -> Encoding
[Ac3MetadataControl] -> Value
Ac3MetadataControl -> Encoding
Ac3MetadataControl -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Ac3MetadataControl] -> Encoding
$ctoEncodingList :: [Ac3MetadataControl] -> Encoding
toJSONList :: [Ac3MetadataControl] -> Value
$ctoJSONList :: [Ac3MetadataControl] -> Value
toEncoding :: Ac3MetadataControl -> Encoding
$ctoEncoding :: Ac3MetadataControl -> Encoding
toJSON :: Ac3MetadataControl -> Value
$ctoJSON :: Ac3MetadataControl -> Value
Data.ToJSON,
      ToJSONKeyFunction [Ac3MetadataControl]
ToJSONKeyFunction Ac3MetadataControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Ac3MetadataControl]
$ctoJSONKeyList :: ToJSONKeyFunction [Ac3MetadataControl]
toJSONKey :: ToJSONKeyFunction Ac3MetadataControl
$ctoJSONKey :: ToJSONKeyFunction Ac3MetadataControl
Data.ToJSONKey,
      [Node] -> Either String Ac3MetadataControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Ac3MetadataControl
$cparseXML :: [Node] -> Either String Ac3MetadataControl
Data.FromXML,
      Ac3MetadataControl -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Ac3MetadataControl -> XML
$ctoXML :: Ac3MetadataControl -> XML
Data.ToXML
    )

pattern Ac3MetadataControl_FOLLOW_INPUT :: Ac3MetadataControl
pattern $bAc3MetadataControl_FOLLOW_INPUT :: Ac3MetadataControl
$mAc3MetadataControl_FOLLOW_INPUT :: forall {r}. Ac3MetadataControl -> ((# #) -> r) -> ((# #) -> r) -> r
Ac3MetadataControl_FOLLOW_INPUT = Ac3MetadataControl' "FOLLOW_INPUT"

pattern Ac3MetadataControl_USE_CONFIGURED :: Ac3MetadataControl
pattern $bAc3MetadataControl_USE_CONFIGURED :: Ac3MetadataControl
$mAc3MetadataControl_USE_CONFIGURED :: forall {r}. Ac3MetadataControl -> ((# #) -> r) -> ((# #) -> r) -> r
Ac3MetadataControl_USE_CONFIGURED = Ac3MetadataControl' "USE_CONFIGURED"

{-# COMPLETE
  Ac3MetadataControl_FOLLOW_INPUT,
  Ac3MetadataControl_USE_CONFIGURED,
  Ac3MetadataControl'
  #-}