{-# 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.MpdCaptionContainerType
-- 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.MpdCaptionContainerType
  ( MpdCaptionContainerType
      ( ..,
        MpdCaptionContainerType_FRAGMENTED_MP4,
        MpdCaptionContainerType_RAW
      ),
  )
where

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

-- | Use this setting only in DASH output groups that include sidecar TTML or
-- IMSC captions. You specify sidecar captions in a separate output from
-- your audio and video. Choose Raw (RAW) for captions in a single XML file
-- in a raw container. Choose Fragmented MPEG-4 (FRAGMENTED_MP4) for
-- captions in XML format contained within fragmented MP4 files. This set
-- of fragmented MP4 files is separate from your video and audio fragmented
-- MP4 files.
newtype MpdCaptionContainerType = MpdCaptionContainerType'
  { MpdCaptionContainerType -> Text
fromMpdCaptionContainerType ::
      Data.Text
  }
  deriving stock
    ( Int -> MpdCaptionContainerType -> ShowS
[MpdCaptionContainerType] -> ShowS
MpdCaptionContainerType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MpdCaptionContainerType] -> ShowS
$cshowList :: [MpdCaptionContainerType] -> ShowS
show :: MpdCaptionContainerType -> String
$cshow :: MpdCaptionContainerType -> String
showsPrec :: Int -> MpdCaptionContainerType -> ShowS
$cshowsPrec :: Int -> MpdCaptionContainerType -> ShowS
Prelude.Show,
      ReadPrec [MpdCaptionContainerType]
ReadPrec MpdCaptionContainerType
Int -> ReadS MpdCaptionContainerType
ReadS [MpdCaptionContainerType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MpdCaptionContainerType]
$creadListPrec :: ReadPrec [MpdCaptionContainerType]
readPrec :: ReadPrec MpdCaptionContainerType
$creadPrec :: ReadPrec MpdCaptionContainerType
readList :: ReadS [MpdCaptionContainerType]
$creadList :: ReadS [MpdCaptionContainerType]
readsPrec :: Int -> ReadS MpdCaptionContainerType
$creadsPrec :: Int -> ReadS MpdCaptionContainerType
Prelude.Read,
      MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
$c/= :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
== :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
$c== :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
Prelude.Eq,
      Eq MpdCaptionContainerType
MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
MpdCaptionContainerType -> MpdCaptionContainerType -> Ordering
MpdCaptionContainerType
-> MpdCaptionContainerType -> MpdCaptionContainerType
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 :: MpdCaptionContainerType
-> MpdCaptionContainerType -> MpdCaptionContainerType
$cmin :: MpdCaptionContainerType
-> MpdCaptionContainerType -> MpdCaptionContainerType
max :: MpdCaptionContainerType
-> MpdCaptionContainerType -> MpdCaptionContainerType
$cmax :: MpdCaptionContainerType
-> MpdCaptionContainerType -> MpdCaptionContainerType
>= :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
$c>= :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
> :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
$c> :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
<= :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
$c<= :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
< :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
$c< :: MpdCaptionContainerType -> MpdCaptionContainerType -> Bool
compare :: MpdCaptionContainerType -> MpdCaptionContainerType -> Ordering
$ccompare :: MpdCaptionContainerType -> MpdCaptionContainerType -> Ordering
Prelude.Ord,
      forall x. Rep MpdCaptionContainerType x -> MpdCaptionContainerType
forall x. MpdCaptionContainerType -> Rep MpdCaptionContainerType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MpdCaptionContainerType x -> MpdCaptionContainerType
$cfrom :: forall x. MpdCaptionContainerType -> Rep MpdCaptionContainerType x
Prelude.Generic
    )
  deriving newtype
    ( Eq MpdCaptionContainerType
Int -> MpdCaptionContainerType -> Int
MpdCaptionContainerType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MpdCaptionContainerType -> Int
$chash :: MpdCaptionContainerType -> Int
hashWithSalt :: Int -> MpdCaptionContainerType -> Int
$chashWithSalt :: Int -> MpdCaptionContainerType -> Int
Prelude.Hashable,
      MpdCaptionContainerType -> ()
forall a. (a -> ()) -> NFData a
rnf :: MpdCaptionContainerType -> ()
$crnf :: MpdCaptionContainerType -> ()
Prelude.NFData,
      Text -> Either String MpdCaptionContainerType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MpdCaptionContainerType
$cfromText :: Text -> Either String MpdCaptionContainerType
Data.FromText,
      MpdCaptionContainerType -> Text
forall a. (a -> Text) -> ToText a
toText :: MpdCaptionContainerType -> Text
$ctoText :: MpdCaptionContainerType -> Text
Data.ToText,
      MpdCaptionContainerType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MpdCaptionContainerType -> ByteString
$ctoBS :: MpdCaptionContainerType -> ByteString
Data.ToByteString,
      MpdCaptionContainerType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MpdCaptionContainerType -> ByteStringBuilder
$cbuild :: MpdCaptionContainerType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MpdCaptionContainerType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MpdCaptionContainerType -> [Header]
$ctoHeader :: HeaderName -> MpdCaptionContainerType -> [Header]
Data.ToHeader,
      MpdCaptionContainerType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MpdCaptionContainerType -> QueryString
$ctoQuery :: MpdCaptionContainerType -> QueryString
Data.ToQuery,
      Value -> Parser [MpdCaptionContainerType]
Value -> Parser MpdCaptionContainerType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MpdCaptionContainerType]
$cparseJSONList :: Value -> Parser [MpdCaptionContainerType]
parseJSON :: Value -> Parser MpdCaptionContainerType
$cparseJSON :: Value -> Parser MpdCaptionContainerType
Data.FromJSON,
      FromJSONKeyFunction [MpdCaptionContainerType]
FromJSONKeyFunction MpdCaptionContainerType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MpdCaptionContainerType]
$cfromJSONKeyList :: FromJSONKeyFunction [MpdCaptionContainerType]
fromJSONKey :: FromJSONKeyFunction MpdCaptionContainerType
$cfromJSONKey :: FromJSONKeyFunction MpdCaptionContainerType
Data.FromJSONKey,
      [MpdCaptionContainerType] -> Encoding
[MpdCaptionContainerType] -> Value
MpdCaptionContainerType -> Encoding
MpdCaptionContainerType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MpdCaptionContainerType] -> Encoding
$ctoEncodingList :: [MpdCaptionContainerType] -> Encoding
toJSONList :: [MpdCaptionContainerType] -> Value
$ctoJSONList :: [MpdCaptionContainerType] -> Value
toEncoding :: MpdCaptionContainerType -> Encoding
$ctoEncoding :: MpdCaptionContainerType -> Encoding
toJSON :: MpdCaptionContainerType -> Value
$ctoJSON :: MpdCaptionContainerType -> Value
Data.ToJSON,
      ToJSONKeyFunction [MpdCaptionContainerType]
ToJSONKeyFunction MpdCaptionContainerType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MpdCaptionContainerType]
$ctoJSONKeyList :: ToJSONKeyFunction [MpdCaptionContainerType]
toJSONKey :: ToJSONKeyFunction MpdCaptionContainerType
$ctoJSONKey :: ToJSONKeyFunction MpdCaptionContainerType
Data.ToJSONKey,
      [Node] -> Either String MpdCaptionContainerType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MpdCaptionContainerType
$cparseXML :: [Node] -> Either String MpdCaptionContainerType
Data.FromXML,
      MpdCaptionContainerType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MpdCaptionContainerType -> XML
$ctoXML :: MpdCaptionContainerType -> XML
Data.ToXML
    )

pattern MpdCaptionContainerType_FRAGMENTED_MP4 :: MpdCaptionContainerType
pattern $bMpdCaptionContainerType_FRAGMENTED_MP4 :: MpdCaptionContainerType
$mMpdCaptionContainerType_FRAGMENTED_MP4 :: forall {r}.
MpdCaptionContainerType -> ((# #) -> r) -> ((# #) -> r) -> r
MpdCaptionContainerType_FRAGMENTED_MP4 = MpdCaptionContainerType' "FRAGMENTED_MP4"

pattern MpdCaptionContainerType_RAW :: MpdCaptionContainerType
pattern $bMpdCaptionContainerType_RAW :: MpdCaptionContainerType
$mMpdCaptionContainerType_RAW :: forall {r}.
MpdCaptionContainerType -> ((# #) -> r) -> ((# #) -> r) -> r
MpdCaptionContainerType_RAW = MpdCaptionContainerType' "RAW"

{-# COMPLETE
  MpdCaptionContainerType_FRAGMENTED_MP4,
  MpdCaptionContainerType_RAW,
  MpdCaptionContainerType'
  #-}