{-# 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.Eac3MetadataControl
-- 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.MediaLive.Types.Eac3MetadataControl
  ( Eac3MetadataControl
      ( ..,
        Eac3MetadataControl_FOLLOW_INPUT,
        Eac3MetadataControl_USE_CONFIGURED
      ),
  )
where

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

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

pattern Eac3MetadataControl_FOLLOW_INPUT :: Eac3MetadataControl
pattern $bEac3MetadataControl_FOLLOW_INPUT :: Eac3MetadataControl
$mEac3MetadataControl_FOLLOW_INPUT :: forall {r}.
Eac3MetadataControl -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3MetadataControl_FOLLOW_INPUT = Eac3MetadataControl' "FOLLOW_INPUT"

pattern Eac3MetadataControl_USE_CONFIGURED :: Eac3MetadataControl
pattern $bEac3MetadataControl_USE_CONFIGURED :: Eac3MetadataControl
$mEac3MetadataControl_USE_CONFIGURED :: forall {r}.
Eac3MetadataControl -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3MetadataControl_USE_CONFIGURED = Eac3MetadataControl' "USE_CONFIGURED"

{-# COMPLETE
  Eac3MetadataControl_FOLLOW_INPUT,
  Eac3MetadataControl_USE_CONFIGURED,
  Eac3MetadataControl'
  #-}