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

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

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

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

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