{-# 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.ImscStylePassthrough
-- 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.ImscStylePassthrough
  ( ImscStylePassthrough
      ( ..,
        ImscStylePassthrough_DISABLED,
        ImscStylePassthrough_ENABLED
      ),
  )
where

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

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

pattern ImscStylePassthrough_DISABLED :: ImscStylePassthrough
pattern $bImscStylePassthrough_DISABLED :: ImscStylePassthrough
$mImscStylePassthrough_DISABLED :: forall r. ImscStylePassthrough -> (Void# -> r) -> (Void# -> r) -> r
ImscStylePassthrough_DISABLED = ImscStylePassthrough' "DISABLED"

pattern ImscStylePassthrough_ENABLED :: ImscStylePassthrough
pattern $bImscStylePassthrough_ENABLED :: ImscStylePassthrough
$mImscStylePassthrough_ENABLED :: forall r. ImscStylePassthrough -> (Void# -> r) -> (Void# -> r) -> r
ImscStylePassthrough_ENABLED = ImscStylePassthrough' "ENABLED"

{-# COMPLETE
  ImscStylePassthrough_DISABLED,
  ImscStylePassthrough_ENABLED,
  ImscStylePassthrough'
  #-}