{-# 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-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.Ac3MetadataControl
  ( Ac3MetadataControl
      ( ..,
        Ac3MetadataControl_FOLLOW_INPUT,
        Ac3MetadataControl_USE_CONFIGURED
      ),
  )
where

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> Ac3MetadataControl -> ShowS
[Ac3MetadataControl] -> ShowS
Ac3MetadataControl -> String
(Int -> Ac3MetadataControl -> ShowS)
-> (Ac3MetadataControl -> String)
-> ([Ac3MetadataControl] -> ShowS)
-> Show Ac3MetadataControl
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]
(Int -> ReadS Ac3MetadataControl)
-> ReadS [Ac3MetadataControl]
-> ReadPrec Ac3MetadataControl
-> ReadPrec [Ac3MetadataControl]
-> Read 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
(Ac3MetadataControl -> Ac3MetadataControl -> Bool)
-> (Ac3MetadataControl -> Ac3MetadataControl -> Bool)
-> Eq Ac3MetadataControl
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
Eq Ac3MetadataControl
-> (Ac3MetadataControl -> Ac3MetadataControl -> Ordering)
-> (Ac3MetadataControl -> Ac3MetadataControl -> Bool)
-> (Ac3MetadataControl -> Ac3MetadataControl -> Bool)
-> (Ac3MetadataControl -> Ac3MetadataControl -> Bool)
-> (Ac3MetadataControl -> Ac3MetadataControl -> Bool)
-> (Ac3MetadataControl -> Ac3MetadataControl -> Ac3MetadataControl)
-> (Ac3MetadataControl -> Ac3MetadataControl -> Ac3MetadataControl)
-> Ord 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
$cp1Ord :: Eq Ac3MetadataControl
Prelude.Ord,
      (forall x. Ac3MetadataControl -> Rep Ac3MetadataControl x)
-> (forall x. Rep Ac3MetadataControl x -> Ac3MetadataControl)
-> Generic Ac3MetadataControl
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
    ( Int -> Ac3MetadataControl -> Int
Ac3MetadataControl -> Int
(Int -> Ac3MetadataControl -> Int)
-> (Ac3MetadataControl -> Int) -> Hashable Ac3MetadataControl
forall 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 -> ()
(Ac3MetadataControl -> ()) -> NFData Ac3MetadataControl
forall a. (a -> ()) -> NFData a
rnf :: Ac3MetadataControl -> ()
$crnf :: Ac3MetadataControl -> ()
Prelude.NFData,
      Text -> Either String Ac3MetadataControl
(Text -> Either String Ac3MetadataControl)
-> FromText Ac3MetadataControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Ac3MetadataControl
$cfromText :: Text -> Either String Ac3MetadataControl
Core.FromText,
      Ac3MetadataControl -> Text
(Ac3MetadataControl -> Text) -> ToText Ac3MetadataControl
forall a. (a -> Text) -> ToText a
toText :: Ac3MetadataControl -> Text
$ctoText :: Ac3MetadataControl -> Text
Core.ToText,
      Ac3MetadataControl -> ByteString
(Ac3MetadataControl -> ByteString)
-> ToByteString Ac3MetadataControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: Ac3MetadataControl -> ByteString
$ctoBS :: Ac3MetadataControl -> ByteString
Core.ToByteString,
      Ac3MetadataControl -> ByteStringBuilder
(Ac3MetadataControl -> ByteStringBuilder)
-> ToLog Ac3MetadataControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Ac3MetadataControl -> ByteStringBuilder
$cbuild :: Ac3MetadataControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Ac3MetadataControl -> [Header]
(HeaderName -> Ac3MetadataControl -> [Header])
-> ToHeader Ac3MetadataControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Ac3MetadataControl -> [Header]
$ctoHeader :: HeaderName -> Ac3MetadataControl -> [Header]
Core.ToHeader,
      Ac3MetadataControl -> QueryString
(Ac3MetadataControl -> QueryString) -> ToQuery Ac3MetadataControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Ac3MetadataControl -> QueryString
$ctoQuery :: Ac3MetadataControl -> QueryString
Core.ToQuery,
      Value -> Parser [Ac3MetadataControl]
Value -> Parser Ac3MetadataControl
(Value -> Parser Ac3MetadataControl)
-> (Value -> Parser [Ac3MetadataControl])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Ac3MetadataControl]
FromJSONKeyFunction Ac3MetadataControl
FromJSONKeyFunction Ac3MetadataControl
-> FromJSONKeyFunction [Ac3MetadataControl]
-> FromJSONKey Ac3MetadataControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Ac3MetadataControl]
$cfromJSONKeyList :: FromJSONKeyFunction [Ac3MetadataControl]
fromJSONKey :: FromJSONKeyFunction Ac3MetadataControl
$cfromJSONKey :: FromJSONKeyFunction Ac3MetadataControl
Core.FromJSONKey,
      [Ac3MetadataControl] -> Encoding
[Ac3MetadataControl] -> Value
Ac3MetadataControl -> Encoding
Ac3MetadataControl -> Value
(Ac3MetadataControl -> Value)
-> (Ac3MetadataControl -> Encoding)
-> ([Ac3MetadataControl] -> Value)
-> ([Ac3MetadataControl] -> Encoding)
-> ToJSON Ac3MetadataControl
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
Core.ToJSON,
      ToJSONKeyFunction [Ac3MetadataControl]
ToJSONKeyFunction Ac3MetadataControl
ToJSONKeyFunction Ac3MetadataControl
-> ToJSONKeyFunction [Ac3MetadataControl]
-> ToJSONKey Ac3MetadataControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Ac3MetadataControl]
$ctoJSONKeyList :: ToJSONKeyFunction [Ac3MetadataControl]
toJSONKey :: ToJSONKeyFunction Ac3MetadataControl
$ctoJSONKey :: ToJSONKeyFunction Ac3MetadataControl
Core.ToJSONKey,
      [Node] -> Either String Ac3MetadataControl
([Node] -> Either String Ac3MetadataControl)
-> FromXML Ac3MetadataControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Ac3MetadataControl
$cparseXML :: [Node] -> Either String Ac3MetadataControl
Core.FromXML,
      Ac3MetadataControl -> XML
(Ac3MetadataControl -> XML) -> ToXML Ac3MetadataControl
forall a. (a -> XML) -> ToXML a
toXML :: Ac3MetadataControl -> XML
$ctoXML :: Ac3MetadataControl -> XML
Core.ToXML
    )

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

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

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