{-# 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.MxfProfile
-- 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.MxfProfile
  ( MxfProfile
      ( ..,
        MxfProfile_D_10,
        MxfProfile_OP1A,
        MxfProfile_XAVC,
        MxfProfile_XDCAM
      ),
  )
where

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

-- | Specify the MXF profile, also called shim, for this output. When you
-- choose Auto, MediaConvert chooses a profile based on the video codec and
-- resolution. For a list of codecs supported with each MXF profile, see
-- https:\/\/docs.aws.amazon.com\/mediaconvert\/latest\/ug\/codecs-supported-with-each-mxf-profile.html.
-- For more information about the automatic selection behavior, see
-- https:\/\/docs.aws.amazon.com\/mediaconvert\/latest\/ug\/default-automatic-selection-of-mxf-profiles.html.
newtype MxfProfile = MxfProfile'
  { MxfProfile -> Text
fromMxfProfile ::
      Data.Text
  }
  deriving stock
    ( Int -> MxfProfile -> ShowS
[MxfProfile] -> ShowS
MxfProfile -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MxfProfile] -> ShowS
$cshowList :: [MxfProfile] -> ShowS
show :: MxfProfile -> String
$cshow :: MxfProfile -> String
showsPrec :: Int -> MxfProfile -> ShowS
$cshowsPrec :: Int -> MxfProfile -> ShowS
Prelude.Show,
      ReadPrec [MxfProfile]
ReadPrec MxfProfile
Int -> ReadS MxfProfile
ReadS [MxfProfile]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MxfProfile]
$creadListPrec :: ReadPrec [MxfProfile]
readPrec :: ReadPrec MxfProfile
$creadPrec :: ReadPrec MxfProfile
readList :: ReadS [MxfProfile]
$creadList :: ReadS [MxfProfile]
readsPrec :: Int -> ReadS MxfProfile
$creadsPrec :: Int -> ReadS MxfProfile
Prelude.Read,
      MxfProfile -> MxfProfile -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MxfProfile -> MxfProfile -> Bool
$c/= :: MxfProfile -> MxfProfile -> Bool
== :: MxfProfile -> MxfProfile -> Bool
$c== :: MxfProfile -> MxfProfile -> Bool
Prelude.Eq,
      Eq MxfProfile
MxfProfile -> MxfProfile -> Bool
MxfProfile -> MxfProfile -> Ordering
MxfProfile -> MxfProfile -> MxfProfile
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 :: MxfProfile -> MxfProfile -> MxfProfile
$cmin :: MxfProfile -> MxfProfile -> MxfProfile
max :: MxfProfile -> MxfProfile -> MxfProfile
$cmax :: MxfProfile -> MxfProfile -> MxfProfile
>= :: MxfProfile -> MxfProfile -> Bool
$c>= :: MxfProfile -> MxfProfile -> Bool
> :: MxfProfile -> MxfProfile -> Bool
$c> :: MxfProfile -> MxfProfile -> Bool
<= :: MxfProfile -> MxfProfile -> Bool
$c<= :: MxfProfile -> MxfProfile -> Bool
< :: MxfProfile -> MxfProfile -> Bool
$c< :: MxfProfile -> MxfProfile -> Bool
compare :: MxfProfile -> MxfProfile -> Ordering
$ccompare :: MxfProfile -> MxfProfile -> Ordering
Prelude.Ord,
      forall x. Rep MxfProfile x -> MxfProfile
forall x. MxfProfile -> Rep MxfProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MxfProfile x -> MxfProfile
$cfrom :: forall x. MxfProfile -> Rep MxfProfile x
Prelude.Generic
    )
  deriving newtype
    ( Eq MxfProfile
Int -> MxfProfile -> Int
MxfProfile -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MxfProfile -> Int
$chash :: MxfProfile -> Int
hashWithSalt :: Int -> MxfProfile -> Int
$chashWithSalt :: Int -> MxfProfile -> Int
Prelude.Hashable,
      MxfProfile -> ()
forall a. (a -> ()) -> NFData a
rnf :: MxfProfile -> ()
$crnf :: MxfProfile -> ()
Prelude.NFData,
      Text -> Either String MxfProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MxfProfile
$cfromText :: Text -> Either String MxfProfile
Data.FromText,
      MxfProfile -> Text
forall a. (a -> Text) -> ToText a
toText :: MxfProfile -> Text
$ctoText :: MxfProfile -> Text
Data.ToText,
      MxfProfile -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MxfProfile -> ByteString
$ctoBS :: MxfProfile -> ByteString
Data.ToByteString,
      MxfProfile -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MxfProfile -> ByteStringBuilder
$cbuild :: MxfProfile -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MxfProfile -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MxfProfile -> [Header]
$ctoHeader :: HeaderName -> MxfProfile -> [Header]
Data.ToHeader,
      MxfProfile -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MxfProfile -> QueryString
$ctoQuery :: MxfProfile -> QueryString
Data.ToQuery,
      Value -> Parser [MxfProfile]
Value -> Parser MxfProfile
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MxfProfile]
$cparseJSONList :: Value -> Parser [MxfProfile]
parseJSON :: Value -> Parser MxfProfile
$cparseJSON :: Value -> Parser MxfProfile
Data.FromJSON,
      FromJSONKeyFunction [MxfProfile]
FromJSONKeyFunction MxfProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MxfProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [MxfProfile]
fromJSONKey :: FromJSONKeyFunction MxfProfile
$cfromJSONKey :: FromJSONKeyFunction MxfProfile
Data.FromJSONKey,
      [MxfProfile] -> Encoding
[MxfProfile] -> Value
MxfProfile -> Encoding
MxfProfile -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MxfProfile] -> Encoding
$ctoEncodingList :: [MxfProfile] -> Encoding
toJSONList :: [MxfProfile] -> Value
$ctoJSONList :: [MxfProfile] -> Value
toEncoding :: MxfProfile -> Encoding
$ctoEncoding :: MxfProfile -> Encoding
toJSON :: MxfProfile -> Value
$ctoJSON :: MxfProfile -> Value
Data.ToJSON,
      ToJSONKeyFunction [MxfProfile]
ToJSONKeyFunction MxfProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MxfProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [MxfProfile]
toJSONKey :: ToJSONKeyFunction MxfProfile
$ctoJSONKey :: ToJSONKeyFunction MxfProfile
Data.ToJSONKey,
      [Node] -> Either String MxfProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MxfProfile
$cparseXML :: [Node] -> Either String MxfProfile
Data.FromXML,
      MxfProfile -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MxfProfile -> XML
$ctoXML :: MxfProfile -> XML
Data.ToXML
    )

pattern MxfProfile_D_10 :: MxfProfile
pattern $bMxfProfile_D_10 :: MxfProfile
$mMxfProfile_D_10 :: forall {r}. MxfProfile -> ((# #) -> r) -> ((# #) -> r) -> r
MxfProfile_D_10 = MxfProfile' "D_10"

pattern MxfProfile_OP1A :: MxfProfile
pattern $bMxfProfile_OP1A :: MxfProfile
$mMxfProfile_OP1A :: forall {r}. MxfProfile -> ((# #) -> r) -> ((# #) -> r) -> r
MxfProfile_OP1A = MxfProfile' "OP1A"

pattern MxfProfile_XAVC :: MxfProfile
pattern $bMxfProfile_XAVC :: MxfProfile
$mMxfProfile_XAVC :: forall {r}. MxfProfile -> ((# #) -> r) -> ((# #) -> r) -> r
MxfProfile_XAVC = MxfProfile' "XAVC"

pattern MxfProfile_XDCAM :: MxfProfile
pattern $bMxfProfile_XDCAM :: MxfProfile
$mMxfProfile_XDCAM :: forall {r}. MxfProfile -> ((# #) -> r) -> ((# #) -> r) -> r
MxfProfile_XDCAM = MxfProfile' "XDCAM"

{-# COMPLETE
  MxfProfile_D_10,
  MxfProfile_OP1A,
  MxfProfile_XAVC,
  MxfProfile_XDCAM,
  MxfProfile'
  #-}