{-# 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.DvbSubtitleApplyFontColor
-- 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.DvbSubtitleApplyFontColor
  ( DvbSubtitleApplyFontColor
      ( ..,
        DvbSubtitleApplyFontColor_ALL_TEXT,
        DvbSubtitleApplyFontColor_WHITE_TEXT_ONLY
      ),
  )
where

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

-- | Ignore this setting unless Style Passthrough (StylePassthrough) is set
-- to Enabled and Font color (FontColor) set to Black, Yellow, Red, Green,
-- Blue, or Hex. Use Apply font color (ApplyFontColor) for additional font
-- color controls. When you choose White text only (WHITE_TEXT_ONLY), or
-- leave blank, your font color setting only applies to white text in your
-- input captions. For example, if your font color setting is Yellow, and
-- your input captions have red and white text, your output captions will
-- have red and yellow text. When you choose ALL_TEXT, your font color
-- setting applies to all of your output captions text.
newtype DvbSubtitleApplyFontColor = DvbSubtitleApplyFontColor'
  { DvbSubtitleApplyFontColor -> Text
fromDvbSubtitleApplyFontColor ::
      Core.Text
  }
  deriving stock
    ( Int -> DvbSubtitleApplyFontColor -> ShowS
[DvbSubtitleApplyFontColor] -> ShowS
DvbSubtitleApplyFontColor -> String
(Int -> DvbSubtitleApplyFontColor -> ShowS)
-> (DvbSubtitleApplyFontColor -> String)
-> ([DvbSubtitleApplyFontColor] -> ShowS)
-> Show DvbSubtitleApplyFontColor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DvbSubtitleApplyFontColor] -> ShowS
$cshowList :: [DvbSubtitleApplyFontColor] -> ShowS
show :: DvbSubtitleApplyFontColor -> String
$cshow :: DvbSubtitleApplyFontColor -> String
showsPrec :: Int -> DvbSubtitleApplyFontColor -> ShowS
$cshowsPrec :: Int -> DvbSubtitleApplyFontColor -> ShowS
Prelude.Show,
      ReadPrec [DvbSubtitleApplyFontColor]
ReadPrec DvbSubtitleApplyFontColor
Int -> ReadS DvbSubtitleApplyFontColor
ReadS [DvbSubtitleApplyFontColor]
(Int -> ReadS DvbSubtitleApplyFontColor)
-> ReadS [DvbSubtitleApplyFontColor]
-> ReadPrec DvbSubtitleApplyFontColor
-> ReadPrec [DvbSubtitleApplyFontColor]
-> Read DvbSubtitleApplyFontColor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DvbSubtitleApplyFontColor]
$creadListPrec :: ReadPrec [DvbSubtitleApplyFontColor]
readPrec :: ReadPrec DvbSubtitleApplyFontColor
$creadPrec :: ReadPrec DvbSubtitleApplyFontColor
readList :: ReadS [DvbSubtitleApplyFontColor]
$creadList :: ReadS [DvbSubtitleApplyFontColor]
readsPrec :: Int -> ReadS DvbSubtitleApplyFontColor
$creadsPrec :: Int -> ReadS DvbSubtitleApplyFontColor
Prelude.Read,
      DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
(DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool)
-> (DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool)
-> Eq DvbSubtitleApplyFontColor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
$c/= :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
== :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
$c== :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
Prelude.Eq,
      Eq DvbSubtitleApplyFontColor
Eq DvbSubtitleApplyFontColor
-> (DvbSubtitleApplyFontColor
    -> DvbSubtitleApplyFontColor -> Ordering)
-> (DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool)
-> (DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool)
-> (DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool)
-> (DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool)
-> (DvbSubtitleApplyFontColor
    -> DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor)
-> (DvbSubtitleApplyFontColor
    -> DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor)
-> Ord DvbSubtitleApplyFontColor
DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Ordering
DvbSubtitleApplyFontColor
-> DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor
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 :: DvbSubtitleApplyFontColor
-> DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor
$cmin :: DvbSubtitleApplyFontColor
-> DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor
max :: DvbSubtitleApplyFontColor
-> DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor
$cmax :: DvbSubtitleApplyFontColor
-> DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor
>= :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
$c>= :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
> :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
$c> :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
<= :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
$c<= :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
< :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
$c< :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Bool
compare :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Ordering
$ccompare :: DvbSubtitleApplyFontColor -> DvbSubtitleApplyFontColor -> Ordering
$cp1Ord :: Eq DvbSubtitleApplyFontColor
Prelude.Ord,
      (forall x.
 DvbSubtitleApplyFontColor -> Rep DvbSubtitleApplyFontColor x)
-> (forall x.
    Rep DvbSubtitleApplyFontColor x -> DvbSubtitleApplyFontColor)
-> Generic DvbSubtitleApplyFontColor
forall x.
Rep DvbSubtitleApplyFontColor x -> DvbSubtitleApplyFontColor
forall x.
DvbSubtitleApplyFontColor -> Rep DvbSubtitleApplyFontColor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DvbSubtitleApplyFontColor x -> DvbSubtitleApplyFontColor
$cfrom :: forall x.
DvbSubtitleApplyFontColor -> Rep DvbSubtitleApplyFontColor x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DvbSubtitleApplyFontColor -> Int
DvbSubtitleApplyFontColor -> Int
(Int -> DvbSubtitleApplyFontColor -> Int)
-> (DvbSubtitleApplyFontColor -> Int)
-> Hashable DvbSubtitleApplyFontColor
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DvbSubtitleApplyFontColor -> Int
$chash :: DvbSubtitleApplyFontColor -> Int
hashWithSalt :: Int -> DvbSubtitleApplyFontColor -> Int
$chashWithSalt :: Int -> DvbSubtitleApplyFontColor -> Int
Prelude.Hashable,
      DvbSubtitleApplyFontColor -> ()
(DvbSubtitleApplyFontColor -> ())
-> NFData DvbSubtitleApplyFontColor
forall a. (a -> ()) -> NFData a
rnf :: DvbSubtitleApplyFontColor -> ()
$crnf :: DvbSubtitleApplyFontColor -> ()
Prelude.NFData,
      Text -> Either String DvbSubtitleApplyFontColor
(Text -> Either String DvbSubtitleApplyFontColor)
-> FromText DvbSubtitleApplyFontColor
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DvbSubtitleApplyFontColor
$cfromText :: Text -> Either String DvbSubtitleApplyFontColor
Core.FromText,
      DvbSubtitleApplyFontColor -> Text
(DvbSubtitleApplyFontColor -> Text)
-> ToText DvbSubtitleApplyFontColor
forall a. (a -> Text) -> ToText a
toText :: DvbSubtitleApplyFontColor -> Text
$ctoText :: DvbSubtitleApplyFontColor -> Text
Core.ToText,
      DvbSubtitleApplyFontColor -> ByteString
(DvbSubtitleApplyFontColor -> ByteString)
-> ToByteString DvbSubtitleApplyFontColor
forall a. (a -> ByteString) -> ToByteString a
toBS :: DvbSubtitleApplyFontColor -> ByteString
$ctoBS :: DvbSubtitleApplyFontColor -> ByteString
Core.ToByteString,
      DvbSubtitleApplyFontColor -> ByteStringBuilder
(DvbSubtitleApplyFontColor -> ByteStringBuilder)
-> ToLog DvbSubtitleApplyFontColor
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DvbSubtitleApplyFontColor -> ByteStringBuilder
$cbuild :: DvbSubtitleApplyFontColor -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DvbSubtitleApplyFontColor -> [Header]
(HeaderName -> DvbSubtitleApplyFontColor -> [Header])
-> ToHeader DvbSubtitleApplyFontColor
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DvbSubtitleApplyFontColor -> [Header]
$ctoHeader :: HeaderName -> DvbSubtitleApplyFontColor -> [Header]
Core.ToHeader,
      DvbSubtitleApplyFontColor -> QueryString
(DvbSubtitleApplyFontColor -> QueryString)
-> ToQuery DvbSubtitleApplyFontColor
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DvbSubtitleApplyFontColor -> QueryString
$ctoQuery :: DvbSubtitleApplyFontColor -> QueryString
Core.ToQuery,
      Value -> Parser [DvbSubtitleApplyFontColor]
Value -> Parser DvbSubtitleApplyFontColor
(Value -> Parser DvbSubtitleApplyFontColor)
-> (Value -> Parser [DvbSubtitleApplyFontColor])
-> FromJSON DvbSubtitleApplyFontColor
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DvbSubtitleApplyFontColor]
$cparseJSONList :: Value -> Parser [DvbSubtitleApplyFontColor]
parseJSON :: Value -> Parser DvbSubtitleApplyFontColor
$cparseJSON :: Value -> Parser DvbSubtitleApplyFontColor
Core.FromJSON,
      FromJSONKeyFunction [DvbSubtitleApplyFontColor]
FromJSONKeyFunction DvbSubtitleApplyFontColor
FromJSONKeyFunction DvbSubtitleApplyFontColor
-> FromJSONKeyFunction [DvbSubtitleApplyFontColor]
-> FromJSONKey DvbSubtitleApplyFontColor
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DvbSubtitleApplyFontColor]
$cfromJSONKeyList :: FromJSONKeyFunction [DvbSubtitleApplyFontColor]
fromJSONKey :: FromJSONKeyFunction DvbSubtitleApplyFontColor
$cfromJSONKey :: FromJSONKeyFunction DvbSubtitleApplyFontColor
Core.FromJSONKey,
      [DvbSubtitleApplyFontColor] -> Encoding
[DvbSubtitleApplyFontColor] -> Value
DvbSubtitleApplyFontColor -> Encoding
DvbSubtitleApplyFontColor -> Value
(DvbSubtitleApplyFontColor -> Value)
-> (DvbSubtitleApplyFontColor -> Encoding)
-> ([DvbSubtitleApplyFontColor] -> Value)
-> ([DvbSubtitleApplyFontColor] -> Encoding)
-> ToJSON DvbSubtitleApplyFontColor
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DvbSubtitleApplyFontColor] -> Encoding
$ctoEncodingList :: [DvbSubtitleApplyFontColor] -> Encoding
toJSONList :: [DvbSubtitleApplyFontColor] -> Value
$ctoJSONList :: [DvbSubtitleApplyFontColor] -> Value
toEncoding :: DvbSubtitleApplyFontColor -> Encoding
$ctoEncoding :: DvbSubtitleApplyFontColor -> Encoding
toJSON :: DvbSubtitleApplyFontColor -> Value
$ctoJSON :: DvbSubtitleApplyFontColor -> Value
Core.ToJSON,
      ToJSONKeyFunction [DvbSubtitleApplyFontColor]
ToJSONKeyFunction DvbSubtitleApplyFontColor
ToJSONKeyFunction DvbSubtitleApplyFontColor
-> ToJSONKeyFunction [DvbSubtitleApplyFontColor]
-> ToJSONKey DvbSubtitleApplyFontColor
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DvbSubtitleApplyFontColor]
$ctoJSONKeyList :: ToJSONKeyFunction [DvbSubtitleApplyFontColor]
toJSONKey :: ToJSONKeyFunction DvbSubtitleApplyFontColor
$ctoJSONKey :: ToJSONKeyFunction DvbSubtitleApplyFontColor
Core.ToJSONKey,
      [Node] -> Either String DvbSubtitleApplyFontColor
([Node] -> Either String DvbSubtitleApplyFontColor)
-> FromXML DvbSubtitleApplyFontColor
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DvbSubtitleApplyFontColor
$cparseXML :: [Node] -> Either String DvbSubtitleApplyFontColor
Core.FromXML,
      DvbSubtitleApplyFontColor -> XML
(DvbSubtitleApplyFontColor -> XML)
-> ToXML DvbSubtitleApplyFontColor
forall a. (a -> XML) -> ToXML a
toXML :: DvbSubtitleApplyFontColor -> XML
$ctoXML :: DvbSubtitleApplyFontColor -> XML
Core.ToXML
    )

pattern DvbSubtitleApplyFontColor_ALL_TEXT :: DvbSubtitleApplyFontColor
pattern $bDvbSubtitleApplyFontColor_ALL_TEXT :: DvbSubtitleApplyFontColor
$mDvbSubtitleApplyFontColor_ALL_TEXT :: forall r.
DvbSubtitleApplyFontColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleApplyFontColor_ALL_TEXT = DvbSubtitleApplyFontColor' "ALL_TEXT"

pattern DvbSubtitleApplyFontColor_WHITE_TEXT_ONLY :: DvbSubtitleApplyFontColor
pattern $bDvbSubtitleApplyFontColor_WHITE_TEXT_ONLY :: DvbSubtitleApplyFontColor
$mDvbSubtitleApplyFontColor_WHITE_TEXT_ONLY :: forall r.
DvbSubtitleApplyFontColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleApplyFontColor_WHITE_TEXT_ONLY = DvbSubtitleApplyFontColor' "WHITE_TEXT_ONLY"

{-# COMPLETE
  DvbSubtitleApplyFontColor_ALL_TEXT,
  DvbSubtitleApplyFontColor_WHITE_TEXT_ONLY,
  DvbSubtitleApplyFontColor'
  #-}