{-# 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.CmfcTimedMetadataBoxVersion
-- 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.CmfcTimedMetadataBoxVersion
  ( CmfcTimedMetadataBoxVersion
      ( ..,
        CmfcTimedMetadataBoxVersion_VERSION_0,
        CmfcTimedMetadataBoxVersion_VERSION_1
      ),
  )
where

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

-- | Specify the event message box (eMSG) version for ID3 timed metadata in
-- your output. For more information, see ISO\/IEC 23009-1:2022 section
-- 5.10.3.3.3 Syntax. Leave blank to use the default value Version 0. When
-- you specify Version 1, you must also set ID3 metadata (timedMetadata) to
-- Passthrough.
newtype CmfcTimedMetadataBoxVersion = CmfcTimedMetadataBoxVersion'
  { CmfcTimedMetadataBoxVersion -> Text
fromCmfcTimedMetadataBoxVersion ::
      Data.Text
  }
  deriving stock
    ( Int -> CmfcTimedMetadataBoxVersion -> ShowS
[CmfcTimedMetadataBoxVersion] -> ShowS
CmfcTimedMetadataBoxVersion -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CmfcTimedMetadataBoxVersion] -> ShowS
$cshowList :: [CmfcTimedMetadataBoxVersion] -> ShowS
show :: CmfcTimedMetadataBoxVersion -> String
$cshow :: CmfcTimedMetadataBoxVersion -> String
showsPrec :: Int -> CmfcTimedMetadataBoxVersion -> ShowS
$cshowsPrec :: Int -> CmfcTimedMetadataBoxVersion -> ShowS
Prelude.Show,
      ReadPrec [CmfcTimedMetadataBoxVersion]
ReadPrec CmfcTimedMetadataBoxVersion
Int -> ReadS CmfcTimedMetadataBoxVersion
ReadS [CmfcTimedMetadataBoxVersion]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CmfcTimedMetadataBoxVersion]
$creadListPrec :: ReadPrec [CmfcTimedMetadataBoxVersion]
readPrec :: ReadPrec CmfcTimedMetadataBoxVersion
$creadPrec :: ReadPrec CmfcTimedMetadataBoxVersion
readList :: ReadS [CmfcTimedMetadataBoxVersion]
$creadList :: ReadS [CmfcTimedMetadataBoxVersion]
readsPrec :: Int -> ReadS CmfcTimedMetadataBoxVersion
$creadsPrec :: Int -> ReadS CmfcTimedMetadataBoxVersion
Prelude.Read,
      CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
$c/= :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
== :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
$c== :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
Prelude.Eq,
      Eq CmfcTimedMetadataBoxVersion
CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> Ordering
CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion
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 :: CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion
$cmin :: CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion
max :: CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion
$cmax :: CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion
>= :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
$c>= :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
> :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
$c> :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
<= :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
$c<= :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
< :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
$c< :: CmfcTimedMetadataBoxVersion -> CmfcTimedMetadataBoxVersion -> Bool
compare :: CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> Ordering
$ccompare :: CmfcTimedMetadataBoxVersion
-> CmfcTimedMetadataBoxVersion -> Ordering
Prelude.Ord,
      forall x.
Rep CmfcTimedMetadataBoxVersion x -> CmfcTimedMetadataBoxVersion
forall x.
CmfcTimedMetadataBoxVersion -> Rep CmfcTimedMetadataBoxVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CmfcTimedMetadataBoxVersion x -> CmfcTimedMetadataBoxVersion
$cfrom :: forall x.
CmfcTimedMetadataBoxVersion -> Rep CmfcTimedMetadataBoxVersion x
Prelude.Generic
    )
  deriving newtype
    ( Eq CmfcTimedMetadataBoxVersion
Int -> CmfcTimedMetadataBoxVersion -> Int
CmfcTimedMetadataBoxVersion -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CmfcTimedMetadataBoxVersion -> Int
$chash :: CmfcTimedMetadataBoxVersion -> Int
hashWithSalt :: Int -> CmfcTimedMetadataBoxVersion -> Int
$chashWithSalt :: Int -> CmfcTimedMetadataBoxVersion -> Int
Prelude.Hashable,
      CmfcTimedMetadataBoxVersion -> ()
forall a. (a -> ()) -> NFData a
rnf :: CmfcTimedMetadataBoxVersion -> ()
$crnf :: CmfcTimedMetadataBoxVersion -> ()
Prelude.NFData,
      Text -> Either String CmfcTimedMetadataBoxVersion
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CmfcTimedMetadataBoxVersion
$cfromText :: Text -> Either String CmfcTimedMetadataBoxVersion
Data.FromText,
      CmfcTimedMetadataBoxVersion -> Text
forall a. (a -> Text) -> ToText a
toText :: CmfcTimedMetadataBoxVersion -> Text
$ctoText :: CmfcTimedMetadataBoxVersion -> Text
Data.ToText,
      CmfcTimedMetadataBoxVersion -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CmfcTimedMetadataBoxVersion -> ByteString
$ctoBS :: CmfcTimedMetadataBoxVersion -> ByteString
Data.ToByteString,
      CmfcTimedMetadataBoxVersion -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CmfcTimedMetadataBoxVersion -> ByteStringBuilder
$cbuild :: CmfcTimedMetadataBoxVersion -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CmfcTimedMetadataBoxVersion -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CmfcTimedMetadataBoxVersion -> [Header]
$ctoHeader :: HeaderName -> CmfcTimedMetadataBoxVersion -> [Header]
Data.ToHeader,
      CmfcTimedMetadataBoxVersion -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CmfcTimedMetadataBoxVersion -> QueryString
$ctoQuery :: CmfcTimedMetadataBoxVersion -> QueryString
Data.ToQuery,
      Value -> Parser [CmfcTimedMetadataBoxVersion]
Value -> Parser CmfcTimedMetadataBoxVersion
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CmfcTimedMetadataBoxVersion]
$cparseJSONList :: Value -> Parser [CmfcTimedMetadataBoxVersion]
parseJSON :: Value -> Parser CmfcTimedMetadataBoxVersion
$cparseJSON :: Value -> Parser CmfcTimedMetadataBoxVersion
Data.FromJSON,
      FromJSONKeyFunction [CmfcTimedMetadataBoxVersion]
FromJSONKeyFunction CmfcTimedMetadataBoxVersion
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CmfcTimedMetadataBoxVersion]
$cfromJSONKeyList :: FromJSONKeyFunction [CmfcTimedMetadataBoxVersion]
fromJSONKey :: FromJSONKeyFunction CmfcTimedMetadataBoxVersion
$cfromJSONKey :: FromJSONKeyFunction CmfcTimedMetadataBoxVersion
Data.FromJSONKey,
      [CmfcTimedMetadataBoxVersion] -> Encoding
[CmfcTimedMetadataBoxVersion] -> Value
CmfcTimedMetadataBoxVersion -> Encoding
CmfcTimedMetadataBoxVersion -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CmfcTimedMetadataBoxVersion] -> Encoding
$ctoEncodingList :: [CmfcTimedMetadataBoxVersion] -> Encoding
toJSONList :: [CmfcTimedMetadataBoxVersion] -> Value
$ctoJSONList :: [CmfcTimedMetadataBoxVersion] -> Value
toEncoding :: CmfcTimedMetadataBoxVersion -> Encoding
$ctoEncoding :: CmfcTimedMetadataBoxVersion -> Encoding
toJSON :: CmfcTimedMetadataBoxVersion -> Value
$ctoJSON :: CmfcTimedMetadataBoxVersion -> Value
Data.ToJSON,
      ToJSONKeyFunction [CmfcTimedMetadataBoxVersion]
ToJSONKeyFunction CmfcTimedMetadataBoxVersion
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CmfcTimedMetadataBoxVersion]
$ctoJSONKeyList :: ToJSONKeyFunction [CmfcTimedMetadataBoxVersion]
toJSONKey :: ToJSONKeyFunction CmfcTimedMetadataBoxVersion
$ctoJSONKey :: ToJSONKeyFunction CmfcTimedMetadataBoxVersion
Data.ToJSONKey,
      [Node] -> Either String CmfcTimedMetadataBoxVersion
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CmfcTimedMetadataBoxVersion
$cparseXML :: [Node] -> Either String CmfcTimedMetadataBoxVersion
Data.FromXML,
      CmfcTimedMetadataBoxVersion -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CmfcTimedMetadataBoxVersion -> XML
$ctoXML :: CmfcTimedMetadataBoxVersion -> XML
Data.ToXML
    )

pattern CmfcTimedMetadataBoxVersion_VERSION_0 :: CmfcTimedMetadataBoxVersion
pattern $bCmfcTimedMetadataBoxVersion_VERSION_0 :: CmfcTimedMetadataBoxVersion
$mCmfcTimedMetadataBoxVersion_VERSION_0 :: forall {r}.
CmfcTimedMetadataBoxVersion -> ((# #) -> r) -> ((# #) -> r) -> r
CmfcTimedMetadataBoxVersion_VERSION_0 = CmfcTimedMetadataBoxVersion' "VERSION_0"

pattern CmfcTimedMetadataBoxVersion_VERSION_1 :: CmfcTimedMetadataBoxVersion
pattern $bCmfcTimedMetadataBoxVersion_VERSION_1 :: CmfcTimedMetadataBoxVersion
$mCmfcTimedMetadataBoxVersion_VERSION_1 :: forall {r}.
CmfcTimedMetadataBoxVersion -> ((# #) -> r) -> ((# #) -> r) -> r
CmfcTimedMetadataBoxVersion_VERSION_1 = CmfcTimedMetadataBoxVersion' "VERSION_1"

{-# COMPLETE
  CmfcTimedMetadataBoxVersion_VERSION_0,
  CmfcTimedMetadataBoxVersion_VERSION_1,
  CmfcTimedMetadataBoxVersion'
  #-}