{-# 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.TtmlStylePassthrough
-- 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.TtmlStylePassthrough
  ( TtmlStylePassthrough
      ( ..,
        TtmlStylePassthrough_DISABLED,
        TtmlStylePassthrough_ENABLED
      ),
  )
where

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

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

pattern TtmlStylePassthrough_DISABLED :: TtmlStylePassthrough
pattern $bTtmlStylePassthrough_DISABLED :: TtmlStylePassthrough
$mTtmlStylePassthrough_DISABLED :: forall {r}.
TtmlStylePassthrough -> ((# #) -> r) -> ((# #) -> r) -> r
TtmlStylePassthrough_DISABLED = TtmlStylePassthrough' "DISABLED"

pattern TtmlStylePassthrough_ENABLED :: TtmlStylePassthrough
pattern $bTtmlStylePassthrough_ENABLED :: TtmlStylePassthrough
$mTtmlStylePassthrough_ENABLED :: forall {r}.
TtmlStylePassthrough -> ((# #) -> r) -> ((# #) -> r) -> r
TtmlStylePassthrough_ENABLED = TtmlStylePassthrough' "ENABLED"

{-# COMPLETE
  TtmlStylePassthrough_DISABLED,
  TtmlStylePassthrough_ENABLED,
  TtmlStylePassthrough'
  #-}