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

pattern WebvttStylePassthrough_DISABLED :: WebvttStylePassthrough
pattern $bWebvttStylePassthrough_DISABLED :: WebvttStylePassthrough
$mWebvttStylePassthrough_DISABLED :: forall r.
WebvttStylePassthrough -> (Void# -> r) -> (Void# -> r) -> r
WebvttStylePassthrough_DISABLED = WebvttStylePassthrough' "DISABLED"

pattern WebvttStylePassthrough_ENABLED :: WebvttStylePassthrough
pattern $bWebvttStylePassthrough_ENABLED :: WebvttStylePassthrough
$mWebvttStylePassthrough_ENABLED :: forall r.
WebvttStylePassthrough -> (Void# -> r) -> (Void# -> r) -> r
WebvttStylePassthrough_ENABLED = WebvttStylePassthrough' "ENABLED"

{-# COMPLETE
  WebvttStylePassthrough_DISABLED,
  WebvttStylePassthrough_ENABLED,
  WebvttStylePassthrough'
  #-}