{-# 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.DvbSubtitleBackgroundColor
-- 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.DvbSubtitleBackgroundColor
  ( DvbSubtitleBackgroundColor
      ( ..,
        DvbSubtitleBackgroundColor_AUTO,
        DvbSubtitleBackgroundColor_BLACK,
        DvbSubtitleBackgroundColor_NONE,
        DvbSubtitleBackgroundColor_WHITE
      ),
  )
where

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

-- | Specify the color of the rectangle behind the captions. Leave background
-- color (BackgroundColor) blank and set Style passthrough
-- (StylePassthrough) to enabled to use the background color data from your
-- input captions, if present.
newtype DvbSubtitleBackgroundColor = DvbSubtitleBackgroundColor'
  { DvbSubtitleBackgroundColor -> Text
fromDvbSubtitleBackgroundColor ::
      Core.Text
  }
  deriving stock
    ( Int -> DvbSubtitleBackgroundColor -> ShowS
[DvbSubtitleBackgroundColor] -> ShowS
DvbSubtitleBackgroundColor -> String
(Int -> DvbSubtitleBackgroundColor -> ShowS)
-> (DvbSubtitleBackgroundColor -> String)
-> ([DvbSubtitleBackgroundColor] -> ShowS)
-> Show DvbSubtitleBackgroundColor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DvbSubtitleBackgroundColor] -> ShowS
$cshowList :: [DvbSubtitleBackgroundColor] -> ShowS
show :: DvbSubtitleBackgroundColor -> String
$cshow :: DvbSubtitleBackgroundColor -> String
showsPrec :: Int -> DvbSubtitleBackgroundColor -> ShowS
$cshowsPrec :: Int -> DvbSubtitleBackgroundColor -> ShowS
Prelude.Show,
      ReadPrec [DvbSubtitleBackgroundColor]
ReadPrec DvbSubtitleBackgroundColor
Int -> ReadS DvbSubtitleBackgroundColor
ReadS [DvbSubtitleBackgroundColor]
(Int -> ReadS DvbSubtitleBackgroundColor)
-> ReadS [DvbSubtitleBackgroundColor]
-> ReadPrec DvbSubtitleBackgroundColor
-> ReadPrec [DvbSubtitleBackgroundColor]
-> Read DvbSubtitleBackgroundColor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DvbSubtitleBackgroundColor]
$creadListPrec :: ReadPrec [DvbSubtitleBackgroundColor]
readPrec :: ReadPrec DvbSubtitleBackgroundColor
$creadPrec :: ReadPrec DvbSubtitleBackgroundColor
readList :: ReadS [DvbSubtitleBackgroundColor]
$creadList :: ReadS [DvbSubtitleBackgroundColor]
readsPrec :: Int -> ReadS DvbSubtitleBackgroundColor
$creadsPrec :: Int -> ReadS DvbSubtitleBackgroundColor
Prelude.Read,
      DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
(DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool)
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> Bool)
-> Eq DvbSubtitleBackgroundColor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
$c/= :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
== :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
$c== :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
Prelude.Eq,
      Eq DvbSubtitleBackgroundColor
Eq DvbSubtitleBackgroundColor
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> Ordering)
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> Bool)
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> Bool)
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> Bool)
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> Bool)
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor)
-> (DvbSubtitleBackgroundColor
    -> DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor)
-> Ord DvbSubtitleBackgroundColor
DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> Ordering
DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor
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 :: DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor
$cmin :: DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor
max :: DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor
$cmax :: DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor
>= :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
$c>= :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
> :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
$c> :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
<= :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
$c<= :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
< :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
$c< :: DvbSubtitleBackgroundColor -> DvbSubtitleBackgroundColor -> Bool
compare :: DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> Ordering
$ccompare :: DvbSubtitleBackgroundColor
-> DvbSubtitleBackgroundColor -> Ordering
$cp1Ord :: Eq DvbSubtitleBackgroundColor
Prelude.Ord,
      (forall x.
 DvbSubtitleBackgroundColor -> Rep DvbSubtitleBackgroundColor x)
-> (forall x.
    Rep DvbSubtitleBackgroundColor x -> DvbSubtitleBackgroundColor)
-> Generic DvbSubtitleBackgroundColor
forall x.
Rep DvbSubtitleBackgroundColor x -> DvbSubtitleBackgroundColor
forall x.
DvbSubtitleBackgroundColor -> Rep DvbSubtitleBackgroundColor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DvbSubtitleBackgroundColor x -> DvbSubtitleBackgroundColor
$cfrom :: forall x.
DvbSubtitleBackgroundColor -> Rep DvbSubtitleBackgroundColor x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DvbSubtitleBackgroundColor -> Int
DvbSubtitleBackgroundColor -> Int
(Int -> DvbSubtitleBackgroundColor -> Int)
-> (DvbSubtitleBackgroundColor -> Int)
-> Hashable DvbSubtitleBackgroundColor
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DvbSubtitleBackgroundColor -> Int
$chash :: DvbSubtitleBackgroundColor -> Int
hashWithSalt :: Int -> DvbSubtitleBackgroundColor -> Int
$chashWithSalt :: Int -> DvbSubtitleBackgroundColor -> Int
Prelude.Hashable,
      DvbSubtitleBackgroundColor -> ()
(DvbSubtitleBackgroundColor -> ())
-> NFData DvbSubtitleBackgroundColor
forall a. (a -> ()) -> NFData a
rnf :: DvbSubtitleBackgroundColor -> ()
$crnf :: DvbSubtitleBackgroundColor -> ()
Prelude.NFData,
      Text -> Either String DvbSubtitleBackgroundColor
(Text -> Either String DvbSubtitleBackgroundColor)
-> FromText DvbSubtitleBackgroundColor
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DvbSubtitleBackgroundColor
$cfromText :: Text -> Either String DvbSubtitleBackgroundColor
Core.FromText,
      DvbSubtitleBackgroundColor -> Text
(DvbSubtitleBackgroundColor -> Text)
-> ToText DvbSubtitleBackgroundColor
forall a. (a -> Text) -> ToText a
toText :: DvbSubtitleBackgroundColor -> Text
$ctoText :: DvbSubtitleBackgroundColor -> Text
Core.ToText,
      DvbSubtitleBackgroundColor -> ByteString
(DvbSubtitleBackgroundColor -> ByteString)
-> ToByteString DvbSubtitleBackgroundColor
forall a. (a -> ByteString) -> ToByteString a
toBS :: DvbSubtitleBackgroundColor -> ByteString
$ctoBS :: DvbSubtitleBackgroundColor -> ByteString
Core.ToByteString,
      DvbSubtitleBackgroundColor -> ByteStringBuilder
(DvbSubtitleBackgroundColor -> ByteStringBuilder)
-> ToLog DvbSubtitleBackgroundColor
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DvbSubtitleBackgroundColor -> ByteStringBuilder
$cbuild :: DvbSubtitleBackgroundColor -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DvbSubtitleBackgroundColor -> [Header]
(HeaderName -> DvbSubtitleBackgroundColor -> [Header])
-> ToHeader DvbSubtitleBackgroundColor
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DvbSubtitleBackgroundColor -> [Header]
$ctoHeader :: HeaderName -> DvbSubtitleBackgroundColor -> [Header]
Core.ToHeader,
      DvbSubtitleBackgroundColor -> QueryString
(DvbSubtitleBackgroundColor -> QueryString)
-> ToQuery DvbSubtitleBackgroundColor
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DvbSubtitleBackgroundColor -> QueryString
$ctoQuery :: DvbSubtitleBackgroundColor -> QueryString
Core.ToQuery,
      Value -> Parser [DvbSubtitleBackgroundColor]
Value -> Parser DvbSubtitleBackgroundColor
(Value -> Parser DvbSubtitleBackgroundColor)
-> (Value -> Parser [DvbSubtitleBackgroundColor])
-> FromJSON DvbSubtitleBackgroundColor
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DvbSubtitleBackgroundColor]
$cparseJSONList :: Value -> Parser [DvbSubtitleBackgroundColor]
parseJSON :: Value -> Parser DvbSubtitleBackgroundColor
$cparseJSON :: Value -> Parser DvbSubtitleBackgroundColor
Core.FromJSON,
      FromJSONKeyFunction [DvbSubtitleBackgroundColor]
FromJSONKeyFunction DvbSubtitleBackgroundColor
FromJSONKeyFunction DvbSubtitleBackgroundColor
-> FromJSONKeyFunction [DvbSubtitleBackgroundColor]
-> FromJSONKey DvbSubtitleBackgroundColor
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DvbSubtitleBackgroundColor]
$cfromJSONKeyList :: FromJSONKeyFunction [DvbSubtitleBackgroundColor]
fromJSONKey :: FromJSONKeyFunction DvbSubtitleBackgroundColor
$cfromJSONKey :: FromJSONKeyFunction DvbSubtitleBackgroundColor
Core.FromJSONKey,
      [DvbSubtitleBackgroundColor] -> Encoding
[DvbSubtitleBackgroundColor] -> Value
DvbSubtitleBackgroundColor -> Encoding
DvbSubtitleBackgroundColor -> Value
(DvbSubtitleBackgroundColor -> Value)
-> (DvbSubtitleBackgroundColor -> Encoding)
-> ([DvbSubtitleBackgroundColor] -> Value)
-> ([DvbSubtitleBackgroundColor] -> Encoding)
-> ToJSON DvbSubtitleBackgroundColor
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DvbSubtitleBackgroundColor] -> Encoding
$ctoEncodingList :: [DvbSubtitleBackgroundColor] -> Encoding
toJSONList :: [DvbSubtitleBackgroundColor] -> Value
$ctoJSONList :: [DvbSubtitleBackgroundColor] -> Value
toEncoding :: DvbSubtitleBackgroundColor -> Encoding
$ctoEncoding :: DvbSubtitleBackgroundColor -> Encoding
toJSON :: DvbSubtitleBackgroundColor -> Value
$ctoJSON :: DvbSubtitleBackgroundColor -> Value
Core.ToJSON,
      ToJSONKeyFunction [DvbSubtitleBackgroundColor]
ToJSONKeyFunction DvbSubtitleBackgroundColor
ToJSONKeyFunction DvbSubtitleBackgroundColor
-> ToJSONKeyFunction [DvbSubtitleBackgroundColor]
-> ToJSONKey DvbSubtitleBackgroundColor
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DvbSubtitleBackgroundColor]
$ctoJSONKeyList :: ToJSONKeyFunction [DvbSubtitleBackgroundColor]
toJSONKey :: ToJSONKeyFunction DvbSubtitleBackgroundColor
$ctoJSONKey :: ToJSONKeyFunction DvbSubtitleBackgroundColor
Core.ToJSONKey,
      [Node] -> Either String DvbSubtitleBackgroundColor
([Node] -> Either String DvbSubtitleBackgroundColor)
-> FromXML DvbSubtitleBackgroundColor
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DvbSubtitleBackgroundColor
$cparseXML :: [Node] -> Either String DvbSubtitleBackgroundColor
Core.FromXML,
      DvbSubtitleBackgroundColor -> XML
(DvbSubtitleBackgroundColor -> XML)
-> ToXML DvbSubtitleBackgroundColor
forall a. (a -> XML) -> ToXML a
toXML :: DvbSubtitleBackgroundColor -> XML
$ctoXML :: DvbSubtitleBackgroundColor -> XML
Core.ToXML
    )

pattern DvbSubtitleBackgroundColor_AUTO :: DvbSubtitleBackgroundColor
pattern $bDvbSubtitleBackgroundColor_AUTO :: DvbSubtitleBackgroundColor
$mDvbSubtitleBackgroundColor_AUTO :: forall r.
DvbSubtitleBackgroundColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleBackgroundColor_AUTO = DvbSubtitleBackgroundColor' "AUTO"

pattern DvbSubtitleBackgroundColor_BLACK :: DvbSubtitleBackgroundColor
pattern $bDvbSubtitleBackgroundColor_BLACK :: DvbSubtitleBackgroundColor
$mDvbSubtitleBackgroundColor_BLACK :: forall r.
DvbSubtitleBackgroundColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleBackgroundColor_BLACK = DvbSubtitleBackgroundColor' "BLACK"

pattern DvbSubtitleBackgroundColor_NONE :: DvbSubtitleBackgroundColor
pattern $bDvbSubtitleBackgroundColor_NONE :: DvbSubtitleBackgroundColor
$mDvbSubtitleBackgroundColor_NONE :: forall r.
DvbSubtitleBackgroundColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleBackgroundColor_NONE = DvbSubtitleBackgroundColor' "NONE"

pattern DvbSubtitleBackgroundColor_WHITE :: DvbSubtitleBackgroundColor
pattern $bDvbSubtitleBackgroundColor_WHITE :: DvbSubtitleBackgroundColor
$mDvbSubtitleBackgroundColor_WHITE :: forall r.
DvbSubtitleBackgroundColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleBackgroundColor_WHITE = DvbSubtitleBackgroundColor' "WHITE"

{-# COMPLETE
  DvbSubtitleBackgroundColor_AUTO,
  DvbSubtitleBackgroundColor_BLACK,
  DvbSubtitleBackgroundColor_NONE,
  DvbSubtitleBackgroundColor_WHITE,
  DvbSubtitleBackgroundColor'
  #-}