{-# 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.ProresCodecProfile
-- 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.ProresCodecProfile
  ( ProresCodecProfile
      ( ..,
        ProresCodecProfile_APPLE_PRORES_422,
        ProresCodecProfile_APPLE_PRORES_422_HQ,
        ProresCodecProfile_APPLE_PRORES_422_LT,
        ProresCodecProfile_APPLE_PRORES_422_PROXY,
        ProresCodecProfile_APPLE_PRORES_4444,
        ProresCodecProfile_APPLE_PRORES_4444_XQ
      ),
  )
where

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

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

pattern ProresCodecProfile_APPLE_PRORES_422 :: ProresCodecProfile
pattern $bProresCodecProfile_APPLE_PRORES_422 :: ProresCodecProfile
$mProresCodecProfile_APPLE_PRORES_422 :: forall r. ProresCodecProfile -> (Void# -> r) -> (Void# -> r) -> r
ProresCodecProfile_APPLE_PRORES_422 = ProresCodecProfile' "APPLE_PRORES_422"

pattern ProresCodecProfile_APPLE_PRORES_422_HQ :: ProresCodecProfile
pattern $bProresCodecProfile_APPLE_PRORES_422_HQ :: ProresCodecProfile
$mProresCodecProfile_APPLE_PRORES_422_HQ :: forall r. ProresCodecProfile -> (Void# -> r) -> (Void# -> r) -> r
ProresCodecProfile_APPLE_PRORES_422_HQ = ProresCodecProfile' "APPLE_PRORES_422_HQ"

pattern ProresCodecProfile_APPLE_PRORES_422_LT :: ProresCodecProfile
pattern $bProresCodecProfile_APPLE_PRORES_422_LT :: ProresCodecProfile
$mProresCodecProfile_APPLE_PRORES_422_LT :: forall r. ProresCodecProfile -> (Void# -> r) -> (Void# -> r) -> r
ProresCodecProfile_APPLE_PRORES_422_LT = ProresCodecProfile' "APPLE_PRORES_422_LT"

pattern ProresCodecProfile_APPLE_PRORES_422_PROXY :: ProresCodecProfile
pattern $bProresCodecProfile_APPLE_PRORES_422_PROXY :: ProresCodecProfile
$mProresCodecProfile_APPLE_PRORES_422_PROXY :: forall r. ProresCodecProfile -> (Void# -> r) -> (Void# -> r) -> r
ProresCodecProfile_APPLE_PRORES_422_PROXY = ProresCodecProfile' "APPLE_PRORES_422_PROXY"

pattern ProresCodecProfile_APPLE_PRORES_4444 :: ProresCodecProfile
pattern $bProresCodecProfile_APPLE_PRORES_4444 :: ProresCodecProfile
$mProresCodecProfile_APPLE_PRORES_4444 :: forall r. ProresCodecProfile -> (Void# -> r) -> (Void# -> r) -> r
ProresCodecProfile_APPLE_PRORES_4444 = ProresCodecProfile' "APPLE_PRORES_4444"

pattern ProresCodecProfile_APPLE_PRORES_4444_XQ :: ProresCodecProfile
pattern $bProresCodecProfile_APPLE_PRORES_4444_XQ :: ProresCodecProfile
$mProresCodecProfile_APPLE_PRORES_4444_XQ :: forall r. ProresCodecProfile -> (Void# -> r) -> (Void# -> r) -> r
ProresCodecProfile_APPLE_PRORES_4444_XQ = ProresCodecProfile' "APPLE_PRORES_4444_XQ"

{-# COMPLETE
  ProresCodecProfile_APPLE_PRORES_422,
  ProresCodecProfile_APPLE_PRORES_422_HQ,
  ProresCodecProfile_APPLE_PRORES_422_LT,
  ProresCodecProfile_APPLE_PRORES_422_PROXY,
  ProresCodecProfile_APPLE_PRORES_4444,
  ProresCodecProfile_APPLE_PRORES_4444_XQ,
  ProresCodecProfile'
  #-}