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

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

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

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

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