{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.WebvttStylePassthrough
  ( WebvttStylePassthrough
      ( ..,
        WebvttStylePassthrough_DISABLED,
        WebvttStylePassthrough_ENABLED,
        WebvttStylePassthrough_STRICT
      ),
  )
where

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

-- | To use the available style, color, and position information from your
-- input captions: Set Style passthrough (stylePassthrough) to Enabled
-- (ENABLED). MediaConvert uses default settings when style and position
-- information is missing from your input captions. To recreate the input
-- captions exactly: Set Style passthrough to Strict (STRICT). MediaConvert
-- automatically applies timing adjustments, including adjustments for
-- frame rate conversion, ad avails, and input clipping. Your input
-- captions format must be WebVTT. To ignore the style and position
-- information from your input captions and use simplified output captions:
-- Set Style passthrough to Disabled (DISABLED), or leave blank.
newtype WebvttStylePassthrough = WebvttStylePassthrough'
  { WebvttStylePassthrough -> Text
fromWebvttStylePassthrough ::
      Data.Text
  }
  deriving stock
    ( Int -> WebvttStylePassthrough -> ShowS
[WebvttStylePassthrough] -> ShowS
WebvttStylePassthrough -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq WebvttStylePassthrough
Int -> WebvttStylePassthrough -> Int
WebvttStylePassthrough -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: WebvttStylePassthrough -> ()
$crnf :: WebvttStylePassthrough -> ()
Prelude.NFData,
      Text -> Either String WebvttStylePassthrough
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WebvttStylePassthrough
$cfromText :: Text -> Either String WebvttStylePassthrough
Data.FromText,
      WebvttStylePassthrough -> Text
forall a. (a -> Text) -> ToText a
toText :: WebvttStylePassthrough -> Text
$ctoText :: WebvttStylePassthrough -> Text
Data.ToText,
      WebvttStylePassthrough -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: WebvttStylePassthrough -> ByteString
$ctoBS :: WebvttStylePassthrough -> ByteString
Data.ToByteString,
      WebvttStylePassthrough -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WebvttStylePassthrough -> ByteStringBuilder
$cbuild :: WebvttStylePassthrough -> ByteStringBuilder
Data.ToLog,
      HeaderName -> WebvttStylePassthrough -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WebvttStylePassthrough -> [Header]
$ctoHeader :: HeaderName -> WebvttStylePassthrough -> [Header]
Data.ToHeader,
      WebvttStylePassthrough -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WebvttStylePassthrough -> QueryString
$ctoQuery :: WebvttStylePassthrough -> QueryString
Data.ToQuery,
      Value -> Parser [WebvttStylePassthrough]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [WebvttStylePassthrough]
FromJSONKeyFunction WebvttStylePassthrough
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WebvttStylePassthrough]
$cfromJSONKeyList :: FromJSONKeyFunction [WebvttStylePassthrough]
fromJSONKey :: FromJSONKeyFunction WebvttStylePassthrough
$cfromJSONKey :: FromJSONKeyFunction WebvttStylePassthrough
Data.FromJSONKey,
      [WebvttStylePassthrough] -> Encoding
[WebvttStylePassthrough] -> Value
WebvttStylePassthrough -> Encoding
WebvttStylePassthrough -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [WebvttStylePassthrough]
ToJSONKeyFunction WebvttStylePassthrough
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WebvttStylePassthrough]
$ctoJSONKeyList :: ToJSONKeyFunction [WebvttStylePassthrough]
toJSONKey :: ToJSONKeyFunction WebvttStylePassthrough
$ctoJSONKey :: ToJSONKeyFunction WebvttStylePassthrough
Data.ToJSONKey,
      [Node] -> Either String WebvttStylePassthrough
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WebvttStylePassthrough
$cparseXML :: [Node] -> Either String WebvttStylePassthrough
Data.FromXML,
      WebvttStylePassthrough -> XML
forall a. (a -> XML) -> ToXML a
toXML :: WebvttStylePassthrough -> XML
$ctoXML :: WebvttStylePassthrough -> XML
Data.ToXML
    )

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

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

pattern WebvttStylePassthrough_STRICT :: WebvttStylePassthrough
pattern $bWebvttStylePassthrough_STRICT :: WebvttStylePassthrough
$mWebvttStylePassthrough_STRICT :: forall {r}.
WebvttStylePassthrough -> ((# #) -> r) -> ((# #) -> r) -> r
WebvttStylePassthrough_STRICT = WebvttStylePassthrough' "STRICT"

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