{-# 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.DvbSubtitleStylePassthrough
-- 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.DvbSubtitleStylePassthrough
  ( DvbSubtitleStylePassthrough
      ( ..,
        DvbSubtitleStylePassthrough_DISABLED,
        DvbSubtitleStylePassthrough_ENABLED
      ),
  )
where

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

-- | Set Style passthrough (StylePassthrough) to ENABLED to use the available
-- style, color, and position information from your input captions.
-- MediaConvert uses default settings for any missing style and position
-- information in your input captions. Set Style passthrough to DISABLED,
-- or leave blank, to ignore the style and position information from your
-- input captions and use default settings: white text with black
-- outlining, bottom-center positioning, and automatic sizing. Whether you
-- set Style passthrough to enabled or not, you can also choose to manually
-- override any of the individual style and position settings.
newtype DvbSubtitleStylePassthrough = DvbSubtitleStylePassthrough'
  { DvbSubtitleStylePassthrough -> Text
fromDvbSubtitleStylePassthrough ::
      Core.Text
  }
  deriving stock
    ( Int -> DvbSubtitleStylePassthrough -> ShowS
[DvbSubtitleStylePassthrough] -> ShowS
DvbSubtitleStylePassthrough -> String
(Int -> DvbSubtitleStylePassthrough -> ShowS)
-> (DvbSubtitleStylePassthrough -> String)
-> ([DvbSubtitleStylePassthrough] -> ShowS)
-> Show DvbSubtitleStylePassthrough
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DvbSubtitleStylePassthrough] -> ShowS
$cshowList :: [DvbSubtitleStylePassthrough] -> ShowS
show :: DvbSubtitleStylePassthrough -> String
$cshow :: DvbSubtitleStylePassthrough -> String
showsPrec :: Int -> DvbSubtitleStylePassthrough -> ShowS
$cshowsPrec :: Int -> DvbSubtitleStylePassthrough -> ShowS
Prelude.Show,
      ReadPrec [DvbSubtitleStylePassthrough]
ReadPrec DvbSubtitleStylePassthrough
Int -> ReadS DvbSubtitleStylePassthrough
ReadS [DvbSubtitleStylePassthrough]
(Int -> ReadS DvbSubtitleStylePassthrough)
-> ReadS [DvbSubtitleStylePassthrough]
-> ReadPrec DvbSubtitleStylePassthrough
-> ReadPrec [DvbSubtitleStylePassthrough]
-> Read DvbSubtitleStylePassthrough
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DvbSubtitleStylePassthrough]
$creadListPrec :: ReadPrec [DvbSubtitleStylePassthrough]
readPrec :: ReadPrec DvbSubtitleStylePassthrough
$creadPrec :: ReadPrec DvbSubtitleStylePassthrough
readList :: ReadS [DvbSubtitleStylePassthrough]
$creadList :: ReadS [DvbSubtitleStylePassthrough]
readsPrec :: Int -> ReadS DvbSubtitleStylePassthrough
$creadsPrec :: Int -> ReadS DvbSubtitleStylePassthrough
Prelude.Read,
      DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
(DvbSubtitleStylePassthrough
 -> DvbSubtitleStylePassthrough -> Bool)
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> Bool)
-> Eq DvbSubtitleStylePassthrough
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
$c/= :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
== :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
$c== :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
Prelude.Eq,
      Eq DvbSubtitleStylePassthrough
Eq DvbSubtitleStylePassthrough
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> Ordering)
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> Bool)
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> Bool)
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> Bool)
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> Bool)
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough)
-> (DvbSubtitleStylePassthrough
    -> DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough)
-> Ord DvbSubtitleStylePassthrough
DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> Ordering
DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough
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 :: DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough
$cmin :: DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough
max :: DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough
$cmax :: DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough
>= :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
$c>= :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
> :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
$c> :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
<= :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
$c<= :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
< :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
$c< :: DvbSubtitleStylePassthrough -> DvbSubtitleStylePassthrough -> Bool
compare :: DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> Ordering
$ccompare :: DvbSubtitleStylePassthrough
-> DvbSubtitleStylePassthrough -> Ordering
$cp1Ord :: Eq DvbSubtitleStylePassthrough
Prelude.Ord,
      (forall x.
 DvbSubtitleStylePassthrough -> Rep DvbSubtitleStylePassthrough x)
-> (forall x.
    Rep DvbSubtitleStylePassthrough x -> DvbSubtitleStylePassthrough)
-> Generic DvbSubtitleStylePassthrough
forall x.
Rep DvbSubtitleStylePassthrough x -> DvbSubtitleStylePassthrough
forall x.
DvbSubtitleStylePassthrough -> Rep DvbSubtitleStylePassthrough x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DvbSubtitleStylePassthrough x -> DvbSubtitleStylePassthrough
$cfrom :: forall x.
DvbSubtitleStylePassthrough -> Rep DvbSubtitleStylePassthrough x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DvbSubtitleStylePassthrough -> Int
DvbSubtitleStylePassthrough -> Int
(Int -> DvbSubtitleStylePassthrough -> Int)
-> (DvbSubtitleStylePassthrough -> Int)
-> Hashable DvbSubtitleStylePassthrough
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DvbSubtitleStylePassthrough -> Int
$chash :: DvbSubtitleStylePassthrough -> Int
hashWithSalt :: Int -> DvbSubtitleStylePassthrough -> Int
$chashWithSalt :: Int -> DvbSubtitleStylePassthrough -> Int
Prelude.Hashable,
      DvbSubtitleStylePassthrough -> ()
(DvbSubtitleStylePassthrough -> ())
-> NFData DvbSubtitleStylePassthrough
forall a. (a -> ()) -> NFData a
rnf :: DvbSubtitleStylePassthrough -> ()
$crnf :: DvbSubtitleStylePassthrough -> ()
Prelude.NFData,
      Text -> Either String DvbSubtitleStylePassthrough
(Text -> Either String DvbSubtitleStylePassthrough)
-> FromText DvbSubtitleStylePassthrough
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DvbSubtitleStylePassthrough
$cfromText :: Text -> Either String DvbSubtitleStylePassthrough
Core.FromText,
      DvbSubtitleStylePassthrough -> Text
(DvbSubtitleStylePassthrough -> Text)
-> ToText DvbSubtitleStylePassthrough
forall a. (a -> Text) -> ToText a
toText :: DvbSubtitleStylePassthrough -> Text
$ctoText :: DvbSubtitleStylePassthrough -> Text
Core.ToText,
      DvbSubtitleStylePassthrough -> ByteString
(DvbSubtitleStylePassthrough -> ByteString)
-> ToByteString DvbSubtitleStylePassthrough
forall a. (a -> ByteString) -> ToByteString a
toBS :: DvbSubtitleStylePassthrough -> ByteString
$ctoBS :: DvbSubtitleStylePassthrough -> ByteString
Core.ToByteString,
      DvbSubtitleStylePassthrough -> ByteStringBuilder
(DvbSubtitleStylePassthrough -> ByteStringBuilder)
-> ToLog DvbSubtitleStylePassthrough
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DvbSubtitleStylePassthrough -> ByteStringBuilder
$cbuild :: DvbSubtitleStylePassthrough -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DvbSubtitleStylePassthrough -> [Header]
(HeaderName -> DvbSubtitleStylePassthrough -> [Header])
-> ToHeader DvbSubtitleStylePassthrough
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DvbSubtitleStylePassthrough -> [Header]
$ctoHeader :: HeaderName -> DvbSubtitleStylePassthrough -> [Header]
Core.ToHeader,
      DvbSubtitleStylePassthrough -> QueryString
(DvbSubtitleStylePassthrough -> QueryString)
-> ToQuery DvbSubtitleStylePassthrough
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DvbSubtitleStylePassthrough -> QueryString
$ctoQuery :: DvbSubtitleStylePassthrough -> QueryString
Core.ToQuery,
      Value -> Parser [DvbSubtitleStylePassthrough]
Value -> Parser DvbSubtitleStylePassthrough
(Value -> Parser DvbSubtitleStylePassthrough)
-> (Value -> Parser [DvbSubtitleStylePassthrough])
-> FromJSON DvbSubtitleStylePassthrough
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DvbSubtitleStylePassthrough]
$cparseJSONList :: Value -> Parser [DvbSubtitleStylePassthrough]
parseJSON :: Value -> Parser DvbSubtitleStylePassthrough
$cparseJSON :: Value -> Parser DvbSubtitleStylePassthrough
Core.FromJSON,
      FromJSONKeyFunction [DvbSubtitleStylePassthrough]
FromJSONKeyFunction DvbSubtitleStylePassthrough
FromJSONKeyFunction DvbSubtitleStylePassthrough
-> FromJSONKeyFunction [DvbSubtitleStylePassthrough]
-> FromJSONKey DvbSubtitleStylePassthrough
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DvbSubtitleStylePassthrough]
$cfromJSONKeyList :: FromJSONKeyFunction [DvbSubtitleStylePassthrough]
fromJSONKey :: FromJSONKeyFunction DvbSubtitleStylePassthrough
$cfromJSONKey :: FromJSONKeyFunction DvbSubtitleStylePassthrough
Core.FromJSONKey,
      [DvbSubtitleStylePassthrough] -> Encoding
[DvbSubtitleStylePassthrough] -> Value
DvbSubtitleStylePassthrough -> Encoding
DvbSubtitleStylePassthrough -> Value
(DvbSubtitleStylePassthrough -> Value)
-> (DvbSubtitleStylePassthrough -> Encoding)
-> ([DvbSubtitleStylePassthrough] -> Value)
-> ([DvbSubtitleStylePassthrough] -> Encoding)
-> ToJSON DvbSubtitleStylePassthrough
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DvbSubtitleStylePassthrough] -> Encoding
$ctoEncodingList :: [DvbSubtitleStylePassthrough] -> Encoding
toJSONList :: [DvbSubtitleStylePassthrough] -> Value
$ctoJSONList :: [DvbSubtitleStylePassthrough] -> Value
toEncoding :: DvbSubtitleStylePassthrough -> Encoding
$ctoEncoding :: DvbSubtitleStylePassthrough -> Encoding
toJSON :: DvbSubtitleStylePassthrough -> Value
$ctoJSON :: DvbSubtitleStylePassthrough -> Value
Core.ToJSON,
      ToJSONKeyFunction [DvbSubtitleStylePassthrough]
ToJSONKeyFunction DvbSubtitleStylePassthrough
ToJSONKeyFunction DvbSubtitleStylePassthrough
-> ToJSONKeyFunction [DvbSubtitleStylePassthrough]
-> ToJSONKey DvbSubtitleStylePassthrough
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DvbSubtitleStylePassthrough]
$ctoJSONKeyList :: ToJSONKeyFunction [DvbSubtitleStylePassthrough]
toJSONKey :: ToJSONKeyFunction DvbSubtitleStylePassthrough
$ctoJSONKey :: ToJSONKeyFunction DvbSubtitleStylePassthrough
Core.ToJSONKey,
      [Node] -> Either String DvbSubtitleStylePassthrough
([Node] -> Either String DvbSubtitleStylePassthrough)
-> FromXML DvbSubtitleStylePassthrough
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DvbSubtitleStylePassthrough
$cparseXML :: [Node] -> Either String DvbSubtitleStylePassthrough
Core.FromXML,
      DvbSubtitleStylePassthrough -> XML
(DvbSubtitleStylePassthrough -> XML)
-> ToXML DvbSubtitleStylePassthrough
forall a. (a -> XML) -> ToXML a
toXML :: DvbSubtitleStylePassthrough -> XML
$ctoXML :: DvbSubtitleStylePassthrough -> XML
Core.ToXML
    )

pattern DvbSubtitleStylePassthrough_DISABLED :: DvbSubtitleStylePassthrough
pattern $bDvbSubtitleStylePassthrough_DISABLED :: DvbSubtitleStylePassthrough
$mDvbSubtitleStylePassthrough_DISABLED :: forall r.
DvbSubtitleStylePassthrough -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleStylePassthrough_DISABLED = DvbSubtitleStylePassthrough' "DISABLED"

pattern DvbSubtitleStylePassthrough_ENABLED :: DvbSubtitleStylePassthrough
pattern $bDvbSubtitleStylePassthrough_ENABLED :: DvbSubtitleStylePassthrough
$mDvbSubtitleStylePassthrough_ENABLED :: forall r.
DvbSubtitleStylePassthrough -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitleStylePassthrough_ENABLED = DvbSubtitleStylePassthrough' "ENABLED"

{-# COMPLETE
  DvbSubtitleStylePassthrough_DISABLED,
  DvbSubtitleStylePassthrough_ENABLED,
  DvbSubtitleStylePassthrough'
  #-}