{-# 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.DvbSubSubtitleFallbackFont
-- 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.DvbSubSubtitleFallbackFont
  ( DvbSubSubtitleFallbackFont
      ( ..,
        DvbSubSubtitleFallbackFont_BEST_MATCH,
        DvbSubSubtitleFallbackFont_MONOSPACED_SANSSERIF,
        DvbSubSubtitleFallbackFont_MONOSPACED_SERIF,
        DvbSubSubtitleFallbackFont_PROPORTIONAL_SANSSERIF,
        DvbSubSubtitleFallbackFont_PROPORTIONAL_SERIF
      ),
  )
where

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

-- | Specify the font that you want the service to use for your burn in
-- captions when your input captions specify a font that MediaConvert
-- doesn\'t support. When you set Fallback font (FallbackFont) to best
-- match (BEST_MATCH), or leave blank, MediaConvert uses a supported font
-- that most closely matches the font that your input captions specify.
-- When there are multiple unsupported fonts in your input captions,
-- MediaConvert matches each font with the supported font that matches
-- best. When you explicitly choose a replacement font, MediaConvert uses
-- that font to replace all unsupported fonts from your input.
newtype DvbSubSubtitleFallbackFont = DvbSubSubtitleFallbackFont'
  { DvbSubSubtitleFallbackFont -> Text
fromDvbSubSubtitleFallbackFont ::
      Core.Text
  }
  deriving stock
    ( Int -> DvbSubSubtitleFallbackFont -> ShowS
[DvbSubSubtitleFallbackFont] -> ShowS
DvbSubSubtitleFallbackFont -> String
(Int -> DvbSubSubtitleFallbackFont -> ShowS)
-> (DvbSubSubtitleFallbackFont -> String)
-> ([DvbSubSubtitleFallbackFont] -> ShowS)
-> Show DvbSubSubtitleFallbackFont
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DvbSubSubtitleFallbackFont] -> ShowS
$cshowList :: [DvbSubSubtitleFallbackFont] -> ShowS
show :: DvbSubSubtitleFallbackFont -> String
$cshow :: DvbSubSubtitleFallbackFont -> String
showsPrec :: Int -> DvbSubSubtitleFallbackFont -> ShowS
$cshowsPrec :: Int -> DvbSubSubtitleFallbackFont -> ShowS
Prelude.Show,
      ReadPrec [DvbSubSubtitleFallbackFont]
ReadPrec DvbSubSubtitleFallbackFont
Int -> ReadS DvbSubSubtitleFallbackFont
ReadS [DvbSubSubtitleFallbackFont]
(Int -> ReadS DvbSubSubtitleFallbackFont)
-> ReadS [DvbSubSubtitleFallbackFont]
-> ReadPrec DvbSubSubtitleFallbackFont
-> ReadPrec [DvbSubSubtitleFallbackFont]
-> Read DvbSubSubtitleFallbackFont
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DvbSubSubtitleFallbackFont]
$creadListPrec :: ReadPrec [DvbSubSubtitleFallbackFont]
readPrec :: ReadPrec DvbSubSubtitleFallbackFont
$creadPrec :: ReadPrec DvbSubSubtitleFallbackFont
readList :: ReadS [DvbSubSubtitleFallbackFont]
$creadList :: ReadS [DvbSubSubtitleFallbackFont]
readsPrec :: Int -> ReadS DvbSubSubtitleFallbackFont
$creadsPrec :: Int -> ReadS DvbSubSubtitleFallbackFont
Prelude.Read,
      DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
(DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool)
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> Bool)
-> Eq DvbSubSubtitleFallbackFont
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
$c/= :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
== :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
$c== :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
Prelude.Eq,
      Eq DvbSubSubtitleFallbackFont
Eq DvbSubSubtitleFallbackFont
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> Ordering)
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> Bool)
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> Bool)
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> Bool)
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> Bool)
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont)
-> (DvbSubSubtitleFallbackFont
    -> DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont)
-> Ord DvbSubSubtitleFallbackFont
DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> Ordering
DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont
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 :: DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont
$cmin :: DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont
max :: DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont
$cmax :: DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont
>= :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
$c>= :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
> :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
$c> :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
<= :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
$c<= :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
< :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
$c< :: DvbSubSubtitleFallbackFont -> DvbSubSubtitleFallbackFont -> Bool
compare :: DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> Ordering
$ccompare :: DvbSubSubtitleFallbackFont
-> DvbSubSubtitleFallbackFont -> Ordering
$cp1Ord :: Eq DvbSubSubtitleFallbackFont
Prelude.Ord,
      (forall x.
 DvbSubSubtitleFallbackFont -> Rep DvbSubSubtitleFallbackFont x)
-> (forall x.
    Rep DvbSubSubtitleFallbackFont x -> DvbSubSubtitleFallbackFont)
-> Generic DvbSubSubtitleFallbackFont
forall x.
Rep DvbSubSubtitleFallbackFont x -> DvbSubSubtitleFallbackFont
forall x.
DvbSubSubtitleFallbackFont -> Rep DvbSubSubtitleFallbackFont x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DvbSubSubtitleFallbackFont x -> DvbSubSubtitleFallbackFont
$cfrom :: forall x.
DvbSubSubtitleFallbackFont -> Rep DvbSubSubtitleFallbackFont x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DvbSubSubtitleFallbackFont -> Int
DvbSubSubtitleFallbackFont -> Int
(Int -> DvbSubSubtitleFallbackFont -> Int)
-> (DvbSubSubtitleFallbackFont -> Int)
-> Hashable DvbSubSubtitleFallbackFont
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DvbSubSubtitleFallbackFont -> Int
$chash :: DvbSubSubtitleFallbackFont -> Int
hashWithSalt :: Int -> DvbSubSubtitleFallbackFont -> Int
$chashWithSalt :: Int -> DvbSubSubtitleFallbackFont -> Int
Prelude.Hashable,
      DvbSubSubtitleFallbackFont -> ()
(DvbSubSubtitleFallbackFont -> ())
-> NFData DvbSubSubtitleFallbackFont
forall a. (a -> ()) -> NFData a
rnf :: DvbSubSubtitleFallbackFont -> ()
$crnf :: DvbSubSubtitleFallbackFont -> ()
Prelude.NFData,
      Text -> Either String DvbSubSubtitleFallbackFont
(Text -> Either String DvbSubSubtitleFallbackFont)
-> FromText DvbSubSubtitleFallbackFont
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DvbSubSubtitleFallbackFont
$cfromText :: Text -> Either String DvbSubSubtitleFallbackFont
Core.FromText,
      DvbSubSubtitleFallbackFont -> Text
(DvbSubSubtitleFallbackFont -> Text)
-> ToText DvbSubSubtitleFallbackFont
forall a. (a -> Text) -> ToText a
toText :: DvbSubSubtitleFallbackFont -> Text
$ctoText :: DvbSubSubtitleFallbackFont -> Text
Core.ToText,
      DvbSubSubtitleFallbackFont -> ByteString
(DvbSubSubtitleFallbackFont -> ByteString)
-> ToByteString DvbSubSubtitleFallbackFont
forall a. (a -> ByteString) -> ToByteString a
toBS :: DvbSubSubtitleFallbackFont -> ByteString
$ctoBS :: DvbSubSubtitleFallbackFont -> ByteString
Core.ToByteString,
      DvbSubSubtitleFallbackFont -> ByteStringBuilder
(DvbSubSubtitleFallbackFont -> ByteStringBuilder)
-> ToLog DvbSubSubtitleFallbackFont
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DvbSubSubtitleFallbackFont -> ByteStringBuilder
$cbuild :: DvbSubSubtitleFallbackFont -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DvbSubSubtitleFallbackFont -> [Header]
(HeaderName -> DvbSubSubtitleFallbackFont -> [Header])
-> ToHeader DvbSubSubtitleFallbackFont
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DvbSubSubtitleFallbackFont -> [Header]
$ctoHeader :: HeaderName -> DvbSubSubtitleFallbackFont -> [Header]
Core.ToHeader,
      DvbSubSubtitleFallbackFont -> QueryString
(DvbSubSubtitleFallbackFont -> QueryString)
-> ToQuery DvbSubSubtitleFallbackFont
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DvbSubSubtitleFallbackFont -> QueryString
$ctoQuery :: DvbSubSubtitleFallbackFont -> QueryString
Core.ToQuery,
      Value -> Parser [DvbSubSubtitleFallbackFont]
Value -> Parser DvbSubSubtitleFallbackFont
(Value -> Parser DvbSubSubtitleFallbackFont)
-> (Value -> Parser [DvbSubSubtitleFallbackFont])
-> FromJSON DvbSubSubtitleFallbackFont
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DvbSubSubtitleFallbackFont]
$cparseJSONList :: Value -> Parser [DvbSubSubtitleFallbackFont]
parseJSON :: Value -> Parser DvbSubSubtitleFallbackFont
$cparseJSON :: Value -> Parser DvbSubSubtitleFallbackFont
Core.FromJSON,
      FromJSONKeyFunction [DvbSubSubtitleFallbackFont]
FromJSONKeyFunction DvbSubSubtitleFallbackFont
FromJSONKeyFunction DvbSubSubtitleFallbackFont
-> FromJSONKeyFunction [DvbSubSubtitleFallbackFont]
-> FromJSONKey DvbSubSubtitleFallbackFont
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DvbSubSubtitleFallbackFont]
$cfromJSONKeyList :: FromJSONKeyFunction [DvbSubSubtitleFallbackFont]
fromJSONKey :: FromJSONKeyFunction DvbSubSubtitleFallbackFont
$cfromJSONKey :: FromJSONKeyFunction DvbSubSubtitleFallbackFont
Core.FromJSONKey,
      [DvbSubSubtitleFallbackFont] -> Encoding
[DvbSubSubtitleFallbackFont] -> Value
DvbSubSubtitleFallbackFont -> Encoding
DvbSubSubtitleFallbackFont -> Value
(DvbSubSubtitleFallbackFont -> Value)
-> (DvbSubSubtitleFallbackFont -> Encoding)
-> ([DvbSubSubtitleFallbackFont] -> Value)
-> ([DvbSubSubtitleFallbackFont] -> Encoding)
-> ToJSON DvbSubSubtitleFallbackFont
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DvbSubSubtitleFallbackFont] -> Encoding
$ctoEncodingList :: [DvbSubSubtitleFallbackFont] -> Encoding
toJSONList :: [DvbSubSubtitleFallbackFont] -> Value
$ctoJSONList :: [DvbSubSubtitleFallbackFont] -> Value
toEncoding :: DvbSubSubtitleFallbackFont -> Encoding
$ctoEncoding :: DvbSubSubtitleFallbackFont -> Encoding
toJSON :: DvbSubSubtitleFallbackFont -> Value
$ctoJSON :: DvbSubSubtitleFallbackFont -> Value
Core.ToJSON,
      ToJSONKeyFunction [DvbSubSubtitleFallbackFont]
ToJSONKeyFunction DvbSubSubtitleFallbackFont
ToJSONKeyFunction DvbSubSubtitleFallbackFont
-> ToJSONKeyFunction [DvbSubSubtitleFallbackFont]
-> ToJSONKey DvbSubSubtitleFallbackFont
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DvbSubSubtitleFallbackFont]
$ctoJSONKeyList :: ToJSONKeyFunction [DvbSubSubtitleFallbackFont]
toJSONKey :: ToJSONKeyFunction DvbSubSubtitleFallbackFont
$ctoJSONKey :: ToJSONKeyFunction DvbSubSubtitleFallbackFont
Core.ToJSONKey,
      [Node] -> Either String DvbSubSubtitleFallbackFont
([Node] -> Either String DvbSubSubtitleFallbackFont)
-> FromXML DvbSubSubtitleFallbackFont
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DvbSubSubtitleFallbackFont
$cparseXML :: [Node] -> Either String DvbSubSubtitleFallbackFont
Core.FromXML,
      DvbSubSubtitleFallbackFont -> XML
(DvbSubSubtitleFallbackFont -> XML)
-> ToXML DvbSubSubtitleFallbackFont
forall a. (a -> XML) -> ToXML a
toXML :: DvbSubSubtitleFallbackFont -> XML
$ctoXML :: DvbSubSubtitleFallbackFont -> XML
Core.ToXML
    )

pattern DvbSubSubtitleFallbackFont_BEST_MATCH :: DvbSubSubtitleFallbackFont
pattern $bDvbSubSubtitleFallbackFont_BEST_MATCH :: DvbSubSubtitleFallbackFont
$mDvbSubSubtitleFallbackFont_BEST_MATCH :: forall r.
DvbSubSubtitleFallbackFont -> (Void# -> r) -> (Void# -> r) -> r
DvbSubSubtitleFallbackFont_BEST_MATCH = DvbSubSubtitleFallbackFont' "BEST_MATCH"

pattern DvbSubSubtitleFallbackFont_MONOSPACED_SANSSERIF :: DvbSubSubtitleFallbackFont
pattern $bDvbSubSubtitleFallbackFont_MONOSPACED_SANSSERIF :: DvbSubSubtitleFallbackFont
$mDvbSubSubtitleFallbackFont_MONOSPACED_SANSSERIF :: forall r.
DvbSubSubtitleFallbackFont -> (Void# -> r) -> (Void# -> r) -> r
DvbSubSubtitleFallbackFont_MONOSPACED_SANSSERIF = DvbSubSubtitleFallbackFont' "MONOSPACED_SANSSERIF"

pattern DvbSubSubtitleFallbackFont_MONOSPACED_SERIF :: DvbSubSubtitleFallbackFont
pattern $bDvbSubSubtitleFallbackFont_MONOSPACED_SERIF :: DvbSubSubtitleFallbackFont
$mDvbSubSubtitleFallbackFont_MONOSPACED_SERIF :: forall r.
DvbSubSubtitleFallbackFont -> (Void# -> r) -> (Void# -> r) -> r
DvbSubSubtitleFallbackFont_MONOSPACED_SERIF = DvbSubSubtitleFallbackFont' "MONOSPACED_SERIF"

pattern DvbSubSubtitleFallbackFont_PROPORTIONAL_SANSSERIF :: DvbSubSubtitleFallbackFont
pattern $bDvbSubSubtitleFallbackFont_PROPORTIONAL_SANSSERIF :: DvbSubSubtitleFallbackFont
$mDvbSubSubtitleFallbackFont_PROPORTIONAL_SANSSERIF :: forall r.
DvbSubSubtitleFallbackFont -> (Void# -> r) -> (Void# -> r) -> r
DvbSubSubtitleFallbackFont_PROPORTIONAL_SANSSERIF = DvbSubSubtitleFallbackFont' "PROPORTIONAL_SANSSERIF"

pattern DvbSubSubtitleFallbackFont_PROPORTIONAL_SERIF :: DvbSubSubtitleFallbackFont
pattern $bDvbSubSubtitleFallbackFont_PROPORTIONAL_SERIF :: DvbSubSubtitleFallbackFont
$mDvbSubSubtitleFallbackFont_PROPORTIONAL_SERIF :: forall r.
DvbSubSubtitleFallbackFont -> (Void# -> r) -> (Void# -> r) -> r
DvbSubSubtitleFallbackFont_PROPORTIONAL_SERIF = DvbSubSubtitleFallbackFont' "PROPORTIONAL_SERIF"

{-# COMPLETE
  DvbSubSubtitleFallbackFont_BEST_MATCH,
  DvbSubSubtitleFallbackFont_MONOSPACED_SANSSERIF,
  DvbSubSubtitleFallbackFont_MONOSPACED_SERIF,
  DvbSubSubtitleFallbackFont_PROPORTIONAL_SANSSERIF,
  DvbSubSubtitleFallbackFont_PROPORTIONAL_SERIF,
  DvbSubSubtitleFallbackFont'
  #-}