{-# 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.FileSourceConvert608To708
-- 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.FileSourceConvert608To708
  ( FileSourceConvert608To708
      ( ..,
        FileSourceConvert608To708_DISABLED,
        FileSourceConvert608To708_UPCONVERT
      ),
  )
where

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

-- | Specify whether this set of input captions appears in your outputs in
-- both 608 and 708 format. If you choose Upconvert (UPCONVERT),
-- MediaConvert includes the captions data in two ways: it passes the 608
-- data through using the 608 compatibility bytes fields of the 708
-- wrapper, and it also translates the 608 data into 708.
newtype FileSourceConvert608To708 = FileSourceConvert608To708'
  { FileSourceConvert608To708 -> Text
fromFileSourceConvert608To708 ::
      Core.Text
  }
  deriving stock
    ( Int -> FileSourceConvert608To708 -> ShowS
[FileSourceConvert608To708] -> ShowS
FileSourceConvert608To708 -> String
(Int -> FileSourceConvert608To708 -> ShowS)
-> (FileSourceConvert608To708 -> String)
-> ([FileSourceConvert608To708] -> ShowS)
-> Show FileSourceConvert608To708
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileSourceConvert608To708] -> ShowS
$cshowList :: [FileSourceConvert608To708] -> ShowS
show :: FileSourceConvert608To708 -> String
$cshow :: FileSourceConvert608To708 -> String
showsPrec :: Int -> FileSourceConvert608To708 -> ShowS
$cshowsPrec :: Int -> FileSourceConvert608To708 -> ShowS
Prelude.Show,
      ReadPrec [FileSourceConvert608To708]
ReadPrec FileSourceConvert608To708
Int -> ReadS FileSourceConvert608To708
ReadS [FileSourceConvert608To708]
(Int -> ReadS FileSourceConvert608To708)
-> ReadS [FileSourceConvert608To708]
-> ReadPrec FileSourceConvert608To708
-> ReadPrec [FileSourceConvert608To708]
-> Read FileSourceConvert608To708
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FileSourceConvert608To708]
$creadListPrec :: ReadPrec [FileSourceConvert608To708]
readPrec :: ReadPrec FileSourceConvert608To708
$creadPrec :: ReadPrec FileSourceConvert608To708
readList :: ReadS [FileSourceConvert608To708]
$creadList :: ReadS [FileSourceConvert608To708]
readsPrec :: Int -> ReadS FileSourceConvert608To708
$creadsPrec :: Int -> ReadS FileSourceConvert608To708
Prelude.Read,
      FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
(FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool)
-> (FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool)
-> Eq FileSourceConvert608To708
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
$c/= :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
== :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
$c== :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
Prelude.Eq,
      Eq FileSourceConvert608To708
Eq FileSourceConvert608To708
-> (FileSourceConvert608To708
    -> FileSourceConvert608To708 -> Ordering)
-> (FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool)
-> (FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool)
-> (FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool)
-> (FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool)
-> (FileSourceConvert608To708
    -> FileSourceConvert608To708 -> FileSourceConvert608To708)
-> (FileSourceConvert608To708
    -> FileSourceConvert608To708 -> FileSourceConvert608To708)
-> Ord FileSourceConvert608To708
FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
FileSourceConvert608To708 -> FileSourceConvert608To708 -> Ordering
FileSourceConvert608To708
-> FileSourceConvert608To708 -> FileSourceConvert608To708
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 :: FileSourceConvert608To708
-> FileSourceConvert608To708 -> FileSourceConvert608To708
$cmin :: FileSourceConvert608To708
-> FileSourceConvert608To708 -> FileSourceConvert608To708
max :: FileSourceConvert608To708
-> FileSourceConvert608To708 -> FileSourceConvert608To708
$cmax :: FileSourceConvert608To708
-> FileSourceConvert608To708 -> FileSourceConvert608To708
>= :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
$c>= :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
> :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
$c> :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
<= :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
$c<= :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
< :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
$c< :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Bool
compare :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Ordering
$ccompare :: FileSourceConvert608To708 -> FileSourceConvert608To708 -> Ordering
$cp1Ord :: Eq FileSourceConvert608To708
Prelude.Ord,
      (forall x.
 FileSourceConvert608To708 -> Rep FileSourceConvert608To708 x)
-> (forall x.
    Rep FileSourceConvert608To708 x -> FileSourceConvert608To708)
-> Generic FileSourceConvert608To708
forall x.
Rep FileSourceConvert608To708 x -> FileSourceConvert608To708
forall x.
FileSourceConvert608To708 -> Rep FileSourceConvert608To708 x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FileSourceConvert608To708 x -> FileSourceConvert608To708
$cfrom :: forall x.
FileSourceConvert608To708 -> Rep FileSourceConvert608To708 x
Prelude.Generic
    )
  deriving newtype
    ( Int -> FileSourceConvert608To708 -> Int
FileSourceConvert608To708 -> Int
(Int -> FileSourceConvert608To708 -> Int)
-> (FileSourceConvert608To708 -> Int)
-> Hashable FileSourceConvert608To708
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FileSourceConvert608To708 -> Int
$chash :: FileSourceConvert608To708 -> Int
hashWithSalt :: Int -> FileSourceConvert608To708 -> Int
$chashWithSalt :: Int -> FileSourceConvert608To708 -> Int
Prelude.Hashable,
      FileSourceConvert608To708 -> ()
(FileSourceConvert608To708 -> ())
-> NFData FileSourceConvert608To708
forall a. (a -> ()) -> NFData a
rnf :: FileSourceConvert608To708 -> ()
$crnf :: FileSourceConvert608To708 -> ()
Prelude.NFData,
      Text -> Either String FileSourceConvert608To708
(Text -> Either String FileSourceConvert608To708)
-> FromText FileSourceConvert608To708
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FileSourceConvert608To708
$cfromText :: Text -> Either String FileSourceConvert608To708
Core.FromText,
      FileSourceConvert608To708 -> Text
(FileSourceConvert608To708 -> Text)
-> ToText FileSourceConvert608To708
forall a. (a -> Text) -> ToText a
toText :: FileSourceConvert608To708 -> Text
$ctoText :: FileSourceConvert608To708 -> Text
Core.ToText,
      FileSourceConvert608To708 -> ByteString
(FileSourceConvert608To708 -> ByteString)
-> ToByteString FileSourceConvert608To708
forall a. (a -> ByteString) -> ToByteString a
toBS :: FileSourceConvert608To708 -> ByteString
$ctoBS :: FileSourceConvert608To708 -> ByteString
Core.ToByteString,
      FileSourceConvert608To708 -> ByteStringBuilder
(FileSourceConvert608To708 -> ByteStringBuilder)
-> ToLog FileSourceConvert608To708
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FileSourceConvert608To708 -> ByteStringBuilder
$cbuild :: FileSourceConvert608To708 -> ByteStringBuilder
Core.ToLog,
      HeaderName -> FileSourceConvert608To708 -> [Header]
(HeaderName -> FileSourceConvert608To708 -> [Header])
-> ToHeader FileSourceConvert608To708
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FileSourceConvert608To708 -> [Header]
$ctoHeader :: HeaderName -> FileSourceConvert608To708 -> [Header]
Core.ToHeader,
      FileSourceConvert608To708 -> QueryString
(FileSourceConvert608To708 -> QueryString)
-> ToQuery FileSourceConvert608To708
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FileSourceConvert608To708 -> QueryString
$ctoQuery :: FileSourceConvert608To708 -> QueryString
Core.ToQuery,
      Value -> Parser [FileSourceConvert608To708]
Value -> Parser FileSourceConvert608To708
(Value -> Parser FileSourceConvert608To708)
-> (Value -> Parser [FileSourceConvert608To708])
-> FromJSON FileSourceConvert608To708
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FileSourceConvert608To708]
$cparseJSONList :: Value -> Parser [FileSourceConvert608To708]
parseJSON :: Value -> Parser FileSourceConvert608To708
$cparseJSON :: Value -> Parser FileSourceConvert608To708
Core.FromJSON,
      FromJSONKeyFunction [FileSourceConvert608To708]
FromJSONKeyFunction FileSourceConvert608To708
FromJSONKeyFunction FileSourceConvert608To708
-> FromJSONKeyFunction [FileSourceConvert608To708]
-> FromJSONKey FileSourceConvert608To708
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FileSourceConvert608To708]
$cfromJSONKeyList :: FromJSONKeyFunction [FileSourceConvert608To708]
fromJSONKey :: FromJSONKeyFunction FileSourceConvert608To708
$cfromJSONKey :: FromJSONKeyFunction FileSourceConvert608To708
Core.FromJSONKey,
      [FileSourceConvert608To708] -> Encoding
[FileSourceConvert608To708] -> Value
FileSourceConvert608To708 -> Encoding
FileSourceConvert608To708 -> Value
(FileSourceConvert608To708 -> Value)
-> (FileSourceConvert608To708 -> Encoding)
-> ([FileSourceConvert608To708] -> Value)
-> ([FileSourceConvert608To708] -> Encoding)
-> ToJSON FileSourceConvert608To708
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FileSourceConvert608To708] -> Encoding
$ctoEncodingList :: [FileSourceConvert608To708] -> Encoding
toJSONList :: [FileSourceConvert608To708] -> Value
$ctoJSONList :: [FileSourceConvert608To708] -> Value
toEncoding :: FileSourceConvert608To708 -> Encoding
$ctoEncoding :: FileSourceConvert608To708 -> Encoding
toJSON :: FileSourceConvert608To708 -> Value
$ctoJSON :: FileSourceConvert608To708 -> Value
Core.ToJSON,
      ToJSONKeyFunction [FileSourceConvert608To708]
ToJSONKeyFunction FileSourceConvert608To708
ToJSONKeyFunction FileSourceConvert608To708
-> ToJSONKeyFunction [FileSourceConvert608To708]
-> ToJSONKey FileSourceConvert608To708
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FileSourceConvert608To708]
$ctoJSONKeyList :: ToJSONKeyFunction [FileSourceConvert608To708]
toJSONKey :: ToJSONKeyFunction FileSourceConvert608To708
$ctoJSONKey :: ToJSONKeyFunction FileSourceConvert608To708
Core.ToJSONKey,
      [Node] -> Either String FileSourceConvert608To708
([Node] -> Either String FileSourceConvert608To708)
-> FromXML FileSourceConvert608To708
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FileSourceConvert608To708
$cparseXML :: [Node] -> Either String FileSourceConvert608To708
Core.FromXML,
      FileSourceConvert608To708 -> XML
(FileSourceConvert608To708 -> XML)
-> ToXML FileSourceConvert608To708
forall a. (a -> XML) -> ToXML a
toXML :: FileSourceConvert608To708 -> XML
$ctoXML :: FileSourceConvert608To708 -> XML
Core.ToXML
    )

pattern FileSourceConvert608To708_DISABLED :: FileSourceConvert608To708
pattern $bFileSourceConvert608To708_DISABLED :: FileSourceConvert608To708
$mFileSourceConvert608To708_DISABLED :: forall r.
FileSourceConvert608To708 -> (Void# -> r) -> (Void# -> r) -> r
FileSourceConvert608To708_DISABLED = FileSourceConvert608To708' "DISABLED"

pattern FileSourceConvert608To708_UPCONVERT :: FileSourceConvert608To708
pattern $bFileSourceConvert608To708_UPCONVERT :: FileSourceConvert608To708
$mFileSourceConvert608To708_UPCONVERT :: forall r.
FileSourceConvert608To708 -> (Void# -> r) -> (Void# -> r) -> r
FileSourceConvert608To708_UPCONVERT = FileSourceConvert608To708' "UPCONVERT"

{-# COMPLETE
  FileSourceConvert608To708_DISABLED,
  FileSourceConvert608To708_UPCONVERT,
  FileSourceConvert608To708'
  #-}