{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaConvert.Types.CaptionSourceType
( CaptionSourceType
( ..,
CaptionSourceType_ANCILLARY,
CaptionSourceType_DVB_SUB,
CaptionSourceType_EMBEDDED,
CaptionSourceType_IMSC,
CaptionSourceType_NULL_SOURCE,
CaptionSourceType_SCC,
CaptionSourceType_SCTE20,
CaptionSourceType_SMI,
CaptionSourceType_SMPTE_TT,
CaptionSourceType_SRT,
CaptionSourceType_STL,
CaptionSourceType_TELETEXT,
CaptionSourceType_TTML,
CaptionSourceType_WEBVTT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype CaptionSourceType = CaptionSourceType'
{ CaptionSourceType -> Text
fromCaptionSourceType ::
Core.Text
}
deriving stock
( Int -> CaptionSourceType -> ShowS
[CaptionSourceType] -> ShowS
CaptionSourceType -> String
(Int -> CaptionSourceType -> ShowS)
-> (CaptionSourceType -> String)
-> ([CaptionSourceType] -> ShowS)
-> Show CaptionSourceType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CaptionSourceType] -> ShowS
$cshowList :: [CaptionSourceType] -> ShowS
show :: CaptionSourceType -> String
$cshow :: CaptionSourceType -> String
showsPrec :: Int -> CaptionSourceType -> ShowS
$cshowsPrec :: Int -> CaptionSourceType -> ShowS
Prelude.Show,
ReadPrec [CaptionSourceType]
ReadPrec CaptionSourceType
Int -> ReadS CaptionSourceType
ReadS [CaptionSourceType]
(Int -> ReadS CaptionSourceType)
-> ReadS [CaptionSourceType]
-> ReadPrec CaptionSourceType
-> ReadPrec [CaptionSourceType]
-> Read CaptionSourceType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CaptionSourceType]
$creadListPrec :: ReadPrec [CaptionSourceType]
readPrec :: ReadPrec CaptionSourceType
$creadPrec :: ReadPrec CaptionSourceType
readList :: ReadS [CaptionSourceType]
$creadList :: ReadS [CaptionSourceType]
readsPrec :: Int -> ReadS CaptionSourceType
$creadsPrec :: Int -> ReadS CaptionSourceType
Prelude.Read,
CaptionSourceType -> CaptionSourceType -> Bool
(CaptionSourceType -> CaptionSourceType -> Bool)
-> (CaptionSourceType -> CaptionSourceType -> Bool)
-> Eq CaptionSourceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CaptionSourceType -> CaptionSourceType -> Bool
$c/= :: CaptionSourceType -> CaptionSourceType -> Bool
== :: CaptionSourceType -> CaptionSourceType -> Bool
$c== :: CaptionSourceType -> CaptionSourceType -> Bool
Prelude.Eq,
Eq CaptionSourceType
Eq CaptionSourceType
-> (CaptionSourceType -> CaptionSourceType -> Ordering)
-> (CaptionSourceType -> CaptionSourceType -> Bool)
-> (CaptionSourceType -> CaptionSourceType -> Bool)
-> (CaptionSourceType -> CaptionSourceType -> Bool)
-> (CaptionSourceType -> CaptionSourceType -> Bool)
-> (CaptionSourceType -> CaptionSourceType -> CaptionSourceType)
-> (CaptionSourceType -> CaptionSourceType -> CaptionSourceType)
-> Ord CaptionSourceType
CaptionSourceType -> CaptionSourceType -> Bool
CaptionSourceType -> CaptionSourceType -> Ordering
CaptionSourceType -> CaptionSourceType -> CaptionSourceType
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 :: CaptionSourceType -> CaptionSourceType -> CaptionSourceType
$cmin :: CaptionSourceType -> CaptionSourceType -> CaptionSourceType
max :: CaptionSourceType -> CaptionSourceType -> CaptionSourceType
$cmax :: CaptionSourceType -> CaptionSourceType -> CaptionSourceType
>= :: CaptionSourceType -> CaptionSourceType -> Bool
$c>= :: CaptionSourceType -> CaptionSourceType -> Bool
> :: CaptionSourceType -> CaptionSourceType -> Bool
$c> :: CaptionSourceType -> CaptionSourceType -> Bool
<= :: CaptionSourceType -> CaptionSourceType -> Bool
$c<= :: CaptionSourceType -> CaptionSourceType -> Bool
< :: CaptionSourceType -> CaptionSourceType -> Bool
$c< :: CaptionSourceType -> CaptionSourceType -> Bool
compare :: CaptionSourceType -> CaptionSourceType -> Ordering
$ccompare :: CaptionSourceType -> CaptionSourceType -> Ordering
$cp1Ord :: Eq CaptionSourceType
Prelude.Ord,
(forall x. CaptionSourceType -> Rep CaptionSourceType x)
-> (forall x. Rep CaptionSourceType x -> CaptionSourceType)
-> Generic CaptionSourceType
forall x. Rep CaptionSourceType x -> CaptionSourceType
forall x. CaptionSourceType -> Rep CaptionSourceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CaptionSourceType x -> CaptionSourceType
$cfrom :: forall x. CaptionSourceType -> Rep CaptionSourceType x
Prelude.Generic
)
deriving newtype
( Int -> CaptionSourceType -> Int
CaptionSourceType -> Int
(Int -> CaptionSourceType -> Int)
-> (CaptionSourceType -> Int) -> Hashable CaptionSourceType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CaptionSourceType -> Int
$chash :: CaptionSourceType -> Int
hashWithSalt :: Int -> CaptionSourceType -> Int
$chashWithSalt :: Int -> CaptionSourceType -> Int
Prelude.Hashable,
CaptionSourceType -> ()
(CaptionSourceType -> ()) -> NFData CaptionSourceType
forall a. (a -> ()) -> NFData a
rnf :: CaptionSourceType -> ()
$crnf :: CaptionSourceType -> ()
Prelude.NFData,
Text -> Either String CaptionSourceType
(Text -> Either String CaptionSourceType)
-> FromText CaptionSourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CaptionSourceType
$cfromText :: Text -> Either String CaptionSourceType
Core.FromText,
CaptionSourceType -> Text
(CaptionSourceType -> Text) -> ToText CaptionSourceType
forall a. (a -> Text) -> ToText a
toText :: CaptionSourceType -> Text
$ctoText :: CaptionSourceType -> Text
Core.ToText,
CaptionSourceType -> ByteString
(CaptionSourceType -> ByteString) -> ToByteString CaptionSourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: CaptionSourceType -> ByteString
$ctoBS :: CaptionSourceType -> ByteString
Core.ToByteString,
CaptionSourceType -> ByteStringBuilder
(CaptionSourceType -> ByteStringBuilder) -> ToLog CaptionSourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CaptionSourceType -> ByteStringBuilder
$cbuild :: CaptionSourceType -> ByteStringBuilder
Core.ToLog,
HeaderName -> CaptionSourceType -> [Header]
(HeaderName -> CaptionSourceType -> [Header])
-> ToHeader CaptionSourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CaptionSourceType -> [Header]
$ctoHeader :: HeaderName -> CaptionSourceType -> [Header]
Core.ToHeader,
CaptionSourceType -> QueryString
(CaptionSourceType -> QueryString) -> ToQuery CaptionSourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CaptionSourceType -> QueryString
$ctoQuery :: CaptionSourceType -> QueryString
Core.ToQuery,
Value -> Parser [CaptionSourceType]
Value -> Parser CaptionSourceType
(Value -> Parser CaptionSourceType)
-> (Value -> Parser [CaptionSourceType])
-> FromJSON CaptionSourceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CaptionSourceType]
$cparseJSONList :: Value -> Parser [CaptionSourceType]
parseJSON :: Value -> Parser CaptionSourceType
$cparseJSON :: Value -> Parser CaptionSourceType
Core.FromJSON,
FromJSONKeyFunction [CaptionSourceType]
FromJSONKeyFunction CaptionSourceType
FromJSONKeyFunction CaptionSourceType
-> FromJSONKeyFunction [CaptionSourceType]
-> FromJSONKey CaptionSourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CaptionSourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [CaptionSourceType]
fromJSONKey :: FromJSONKeyFunction CaptionSourceType
$cfromJSONKey :: FromJSONKeyFunction CaptionSourceType
Core.FromJSONKey,
[CaptionSourceType] -> Encoding
[CaptionSourceType] -> Value
CaptionSourceType -> Encoding
CaptionSourceType -> Value
(CaptionSourceType -> Value)
-> (CaptionSourceType -> Encoding)
-> ([CaptionSourceType] -> Value)
-> ([CaptionSourceType] -> Encoding)
-> ToJSON CaptionSourceType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CaptionSourceType] -> Encoding
$ctoEncodingList :: [CaptionSourceType] -> Encoding
toJSONList :: [CaptionSourceType] -> Value
$ctoJSONList :: [CaptionSourceType] -> Value
toEncoding :: CaptionSourceType -> Encoding
$ctoEncoding :: CaptionSourceType -> Encoding
toJSON :: CaptionSourceType -> Value
$ctoJSON :: CaptionSourceType -> Value
Core.ToJSON,
ToJSONKeyFunction [CaptionSourceType]
ToJSONKeyFunction CaptionSourceType
ToJSONKeyFunction CaptionSourceType
-> ToJSONKeyFunction [CaptionSourceType]
-> ToJSONKey CaptionSourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CaptionSourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [CaptionSourceType]
toJSONKey :: ToJSONKeyFunction CaptionSourceType
$ctoJSONKey :: ToJSONKeyFunction CaptionSourceType
Core.ToJSONKey,
[Node] -> Either String CaptionSourceType
([Node] -> Either String CaptionSourceType)
-> FromXML CaptionSourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CaptionSourceType
$cparseXML :: [Node] -> Either String CaptionSourceType
Core.FromXML,
CaptionSourceType -> XML
(CaptionSourceType -> XML) -> ToXML CaptionSourceType
forall a. (a -> XML) -> ToXML a
toXML :: CaptionSourceType -> XML
$ctoXML :: CaptionSourceType -> XML
Core.ToXML
)
pattern CaptionSourceType_ANCILLARY :: CaptionSourceType
pattern $bCaptionSourceType_ANCILLARY :: CaptionSourceType
$mCaptionSourceType_ANCILLARY :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_ANCILLARY = CaptionSourceType' "ANCILLARY"
pattern CaptionSourceType_DVB_SUB :: CaptionSourceType
pattern $bCaptionSourceType_DVB_SUB :: CaptionSourceType
$mCaptionSourceType_DVB_SUB :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_DVB_SUB = CaptionSourceType' "DVB_SUB"
pattern CaptionSourceType_EMBEDDED :: CaptionSourceType
pattern $bCaptionSourceType_EMBEDDED :: CaptionSourceType
$mCaptionSourceType_EMBEDDED :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_EMBEDDED = CaptionSourceType' "EMBEDDED"
pattern CaptionSourceType_IMSC :: CaptionSourceType
pattern $bCaptionSourceType_IMSC :: CaptionSourceType
$mCaptionSourceType_IMSC :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_IMSC = CaptionSourceType' "IMSC"
pattern CaptionSourceType_NULL_SOURCE :: CaptionSourceType
pattern $bCaptionSourceType_NULL_SOURCE :: CaptionSourceType
$mCaptionSourceType_NULL_SOURCE :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_NULL_SOURCE = CaptionSourceType' "NULL_SOURCE"
pattern CaptionSourceType_SCC :: CaptionSourceType
pattern $bCaptionSourceType_SCC :: CaptionSourceType
$mCaptionSourceType_SCC :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_SCC = CaptionSourceType' "SCC"
pattern CaptionSourceType_SCTE20 :: CaptionSourceType
pattern $bCaptionSourceType_SCTE20 :: CaptionSourceType
$mCaptionSourceType_SCTE20 :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_SCTE20 = CaptionSourceType' "SCTE20"
pattern CaptionSourceType_SMI :: CaptionSourceType
pattern $bCaptionSourceType_SMI :: CaptionSourceType
$mCaptionSourceType_SMI :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_SMI = CaptionSourceType' "SMI"
pattern CaptionSourceType_SMPTE_TT :: CaptionSourceType
pattern $bCaptionSourceType_SMPTE_TT :: CaptionSourceType
$mCaptionSourceType_SMPTE_TT :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_SMPTE_TT = CaptionSourceType' "SMPTE_TT"
pattern CaptionSourceType_SRT :: CaptionSourceType
pattern $bCaptionSourceType_SRT :: CaptionSourceType
$mCaptionSourceType_SRT :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_SRT = CaptionSourceType' "SRT"
pattern CaptionSourceType_STL :: CaptionSourceType
pattern $bCaptionSourceType_STL :: CaptionSourceType
$mCaptionSourceType_STL :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_STL = CaptionSourceType' "STL"
pattern CaptionSourceType_TELETEXT :: CaptionSourceType
pattern $bCaptionSourceType_TELETEXT :: CaptionSourceType
$mCaptionSourceType_TELETEXT :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_TELETEXT = CaptionSourceType' "TELETEXT"
pattern CaptionSourceType_TTML :: CaptionSourceType
pattern $bCaptionSourceType_TTML :: CaptionSourceType
$mCaptionSourceType_TTML :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_TTML = CaptionSourceType' "TTML"
pattern CaptionSourceType_WEBVTT :: CaptionSourceType
pattern $bCaptionSourceType_WEBVTT :: CaptionSourceType
$mCaptionSourceType_WEBVTT :: forall r. CaptionSourceType -> (Void# -> r) -> (Void# -> r) -> r
CaptionSourceType_WEBVTT = CaptionSourceType' "WEBVTT"
{-# COMPLETE
CaptionSourceType_ANCILLARY,
CaptionSourceType_DVB_SUB,
CaptionSourceType_EMBEDDED,
CaptionSourceType_IMSC,
CaptionSourceType_NULL_SOURCE,
CaptionSourceType_SCC,
CaptionSourceType_SCTE20,
CaptionSourceType_SMI,
CaptionSourceType_SMPTE_TT,
CaptionSourceType_SRT,
CaptionSourceType_STL,
CaptionSourceType_TELETEXT,
CaptionSourceType_TTML,
CaptionSourceType_WEBVTT,
CaptionSourceType'
#-}