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

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> MxfProfile -> ShowS
[MxfProfile] -> ShowS
MxfProfile -> String
(Int -> MxfProfile -> ShowS)
-> (MxfProfile -> String)
-> ([MxfProfile] -> ShowS)
-> Show MxfProfile
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]
(Int -> ReadS MxfProfile)
-> ReadS [MxfProfile]
-> ReadPrec MxfProfile
-> ReadPrec [MxfProfile]
-> Read 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
(MxfProfile -> MxfProfile -> Bool)
-> (MxfProfile -> MxfProfile -> Bool) -> Eq MxfProfile
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
Eq MxfProfile
-> (MxfProfile -> MxfProfile -> Ordering)
-> (MxfProfile -> MxfProfile -> Bool)
-> (MxfProfile -> MxfProfile -> Bool)
-> (MxfProfile -> MxfProfile -> Bool)
-> (MxfProfile -> MxfProfile -> Bool)
-> (MxfProfile -> MxfProfile -> MxfProfile)
-> (MxfProfile -> MxfProfile -> MxfProfile)
-> Ord 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
$cp1Ord :: Eq MxfProfile
Prelude.Ord,
      (forall x. MxfProfile -> Rep MxfProfile x)
-> (forall x. Rep MxfProfile x -> MxfProfile) -> Generic MxfProfile
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
    ( Int -> MxfProfile -> Int
MxfProfile -> Int
(Int -> MxfProfile -> Int)
-> (MxfProfile -> Int) -> Hashable MxfProfile
forall 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 -> ()
(MxfProfile -> ()) -> NFData MxfProfile
forall a. (a -> ()) -> NFData a
rnf :: MxfProfile -> ()
$crnf :: MxfProfile -> ()
Prelude.NFData,
      Text -> Either String MxfProfile
(Text -> Either String MxfProfile) -> FromText MxfProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MxfProfile
$cfromText :: Text -> Either String MxfProfile
Core.FromText,
      MxfProfile -> Text
(MxfProfile -> Text) -> ToText MxfProfile
forall a. (a -> Text) -> ToText a
toText :: MxfProfile -> Text
$ctoText :: MxfProfile -> Text
Core.ToText,
      MxfProfile -> ByteString
(MxfProfile -> ByteString) -> ToByteString MxfProfile
forall a. (a -> ByteString) -> ToByteString a
toBS :: MxfProfile -> ByteString
$ctoBS :: MxfProfile -> ByteString
Core.ToByteString,
      MxfProfile -> ByteStringBuilder
(MxfProfile -> ByteStringBuilder) -> ToLog MxfProfile
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MxfProfile -> ByteStringBuilder
$cbuild :: MxfProfile -> ByteStringBuilder
Core.ToLog,
      HeaderName -> MxfProfile -> [Header]
(HeaderName -> MxfProfile -> [Header]) -> ToHeader MxfProfile
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MxfProfile -> [Header]
$ctoHeader :: HeaderName -> MxfProfile -> [Header]
Core.ToHeader,
      MxfProfile -> QueryString
(MxfProfile -> QueryString) -> ToQuery MxfProfile
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MxfProfile -> QueryString
$ctoQuery :: MxfProfile -> QueryString
Core.ToQuery,
      Value -> Parser [MxfProfile]
Value -> Parser MxfProfile
(Value -> Parser MxfProfile)
-> (Value -> Parser [MxfProfile]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [MxfProfile]
FromJSONKeyFunction MxfProfile
FromJSONKeyFunction MxfProfile
-> FromJSONKeyFunction [MxfProfile] -> FromJSONKey MxfProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MxfProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [MxfProfile]
fromJSONKey :: FromJSONKeyFunction MxfProfile
$cfromJSONKey :: FromJSONKeyFunction MxfProfile
Core.FromJSONKey,
      [MxfProfile] -> Encoding
[MxfProfile] -> Value
MxfProfile -> Encoding
MxfProfile -> Value
(MxfProfile -> Value)
-> (MxfProfile -> Encoding)
-> ([MxfProfile] -> Value)
-> ([MxfProfile] -> Encoding)
-> ToJSON MxfProfile
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
Core.ToJSON,
      ToJSONKeyFunction [MxfProfile]
ToJSONKeyFunction MxfProfile
ToJSONKeyFunction MxfProfile
-> ToJSONKeyFunction [MxfProfile] -> ToJSONKey MxfProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MxfProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [MxfProfile]
toJSONKey :: ToJSONKeyFunction MxfProfile
$ctoJSONKey :: ToJSONKeyFunction MxfProfile
Core.ToJSONKey,
      [Node] -> Either String MxfProfile
([Node] -> Either String MxfProfile) -> FromXML MxfProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MxfProfile
$cparseXML :: [Node] -> Either String MxfProfile
Core.FromXML,
      MxfProfile -> XML
(MxfProfile -> XML) -> ToXML MxfProfile
forall a. (a -> XML) -> ToXML a
toXML :: MxfProfile -> XML
$ctoXML :: MxfProfile -> XML
Core.ToXML
    )

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

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

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

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

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