{-# 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.H264CodecLevel
-- 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.H264CodecLevel
  ( H264CodecLevel
      ( ..,
        H264CodecLevel_AUTO,
        H264CodecLevel_LEVEL_1,
        H264CodecLevel_LEVEL_1_1,
        H264CodecLevel_LEVEL_1_2,
        H264CodecLevel_LEVEL_1_3,
        H264CodecLevel_LEVEL_2,
        H264CodecLevel_LEVEL_2_1,
        H264CodecLevel_LEVEL_2_2,
        H264CodecLevel_LEVEL_3,
        H264CodecLevel_LEVEL_3_1,
        H264CodecLevel_LEVEL_3_2,
        H264CodecLevel_LEVEL_4,
        H264CodecLevel_LEVEL_4_1,
        H264CodecLevel_LEVEL_4_2,
        H264CodecLevel_LEVEL_5,
        H264CodecLevel_LEVEL_5_1,
        H264CodecLevel_LEVEL_5_2
      ),
  )
where

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

-- | Specify an H.264 level that is consistent with your output video
-- settings. If you aren\'t sure what level to specify, choose Auto (AUTO).
newtype H264CodecLevel = H264CodecLevel'
  { H264CodecLevel -> Text
fromH264CodecLevel ::
      Core.Text
  }
  deriving stock
    ( Int -> H264CodecLevel -> ShowS
[H264CodecLevel] -> ShowS
H264CodecLevel -> String
(Int -> H264CodecLevel -> ShowS)
-> (H264CodecLevel -> String)
-> ([H264CodecLevel] -> ShowS)
-> Show H264CodecLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H264CodecLevel] -> ShowS
$cshowList :: [H264CodecLevel] -> ShowS
show :: H264CodecLevel -> String
$cshow :: H264CodecLevel -> String
showsPrec :: Int -> H264CodecLevel -> ShowS
$cshowsPrec :: Int -> H264CodecLevel -> ShowS
Prelude.Show,
      ReadPrec [H264CodecLevel]
ReadPrec H264CodecLevel
Int -> ReadS H264CodecLevel
ReadS [H264CodecLevel]
(Int -> ReadS H264CodecLevel)
-> ReadS [H264CodecLevel]
-> ReadPrec H264CodecLevel
-> ReadPrec [H264CodecLevel]
-> Read H264CodecLevel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H264CodecLevel]
$creadListPrec :: ReadPrec [H264CodecLevel]
readPrec :: ReadPrec H264CodecLevel
$creadPrec :: ReadPrec H264CodecLevel
readList :: ReadS [H264CodecLevel]
$creadList :: ReadS [H264CodecLevel]
readsPrec :: Int -> ReadS H264CodecLevel
$creadsPrec :: Int -> ReadS H264CodecLevel
Prelude.Read,
      H264CodecLevel -> H264CodecLevel -> Bool
(H264CodecLevel -> H264CodecLevel -> Bool)
-> (H264CodecLevel -> H264CodecLevel -> Bool) -> Eq H264CodecLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H264CodecLevel -> H264CodecLevel -> Bool
$c/= :: H264CodecLevel -> H264CodecLevel -> Bool
== :: H264CodecLevel -> H264CodecLevel -> Bool
$c== :: H264CodecLevel -> H264CodecLevel -> Bool
Prelude.Eq,
      Eq H264CodecLevel
Eq H264CodecLevel
-> (H264CodecLevel -> H264CodecLevel -> Ordering)
-> (H264CodecLevel -> H264CodecLevel -> Bool)
-> (H264CodecLevel -> H264CodecLevel -> Bool)
-> (H264CodecLevel -> H264CodecLevel -> Bool)
-> (H264CodecLevel -> H264CodecLevel -> Bool)
-> (H264CodecLevel -> H264CodecLevel -> H264CodecLevel)
-> (H264CodecLevel -> H264CodecLevel -> H264CodecLevel)
-> Ord H264CodecLevel
H264CodecLevel -> H264CodecLevel -> Bool
H264CodecLevel -> H264CodecLevel -> Ordering
H264CodecLevel -> H264CodecLevel -> H264CodecLevel
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 :: H264CodecLevel -> H264CodecLevel -> H264CodecLevel
$cmin :: H264CodecLevel -> H264CodecLevel -> H264CodecLevel
max :: H264CodecLevel -> H264CodecLevel -> H264CodecLevel
$cmax :: H264CodecLevel -> H264CodecLevel -> H264CodecLevel
>= :: H264CodecLevel -> H264CodecLevel -> Bool
$c>= :: H264CodecLevel -> H264CodecLevel -> Bool
> :: H264CodecLevel -> H264CodecLevel -> Bool
$c> :: H264CodecLevel -> H264CodecLevel -> Bool
<= :: H264CodecLevel -> H264CodecLevel -> Bool
$c<= :: H264CodecLevel -> H264CodecLevel -> Bool
< :: H264CodecLevel -> H264CodecLevel -> Bool
$c< :: H264CodecLevel -> H264CodecLevel -> Bool
compare :: H264CodecLevel -> H264CodecLevel -> Ordering
$ccompare :: H264CodecLevel -> H264CodecLevel -> Ordering
$cp1Ord :: Eq H264CodecLevel
Prelude.Ord,
      (forall x. H264CodecLevel -> Rep H264CodecLevel x)
-> (forall x. Rep H264CodecLevel x -> H264CodecLevel)
-> Generic H264CodecLevel
forall x. Rep H264CodecLevel x -> H264CodecLevel
forall x. H264CodecLevel -> Rep H264CodecLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H264CodecLevel x -> H264CodecLevel
$cfrom :: forall x. H264CodecLevel -> Rep H264CodecLevel x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H264CodecLevel -> Int
H264CodecLevel -> Int
(Int -> H264CodecLevel -> Int)
-> (H264CodecLevel -> Int) -> Hashable H264CodecLevel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H264CodecLevel -> Int
$chash :: H264CodecLevel -> Int
hashWithSalt :: Int -> H264CodecLevel -> Int
$chashWithSalt :: Int -> H264CodecLevel -> Int
Prelude.Hashable,
      H264CodecLevel -> ()
(H264CodecLevel -> ()) -> NFData H264CodecLevel
forall a. (a -> ()) -> NFData a
rnf :: H264CodecLevel -> ()
$crnf :: H264CodecLevel -> ()
Prelude.NFData,
      Text -> Either String H264CodecLevel
(Text -> Either String H264CodecLevel) -> FromText H264CodecLevel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264CodecLevel
$cfromText :: Text -> Either String H264CodecLevel
Core.FromText,
      H264CodecLevel -> Text
(H264CodecLevel -> Text) -> ToText H264CodecLevel
forall a. (a -> Text) -> ToText a
toText :: H264CodecLevel -> Text
$ctoText :: H264CodecLevel -> Text
Core.ToText,
      H264CodecLevel -> ByteString
(H264CodecLevel -> ByteString) -> ToByteString H264CodecLevel
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264CodecLevel -> ByteString
$ctoBS :: H264CodecLevel -> ByteString
Core.ToByteString,
      H264CodecLevel -> ByteStringBuilder
(H264CodecLevel -> ByteStringBuilder) -> ToLog H264CodecLevel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264CodecLevel -> ByteStringBuilder
$cbuild :: H264CodecLevel -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H264CodecLevel -> [Header]
(HeaderName -> H264CodecLevel -> [Header])
-> ToHeader H264CodecLevel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264CodecLevel -> [Header]
$ctoHeader :: HeaderName -> H264CodecLevel -> [Header]
Core.ToHeader,
      H264CodecLevel -> QueryString
(H264CodecLevel -> QueryString) -> ToQuery H264CodecLevel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264CodecLevel -> QueryString
$ctoQuery :: H264CodecLevel -> QueryString
Core.ToQuery,
      Value -> Parser [H264CodecLevel]
Value -> Parser H264CodecLevel
(Value -> Parser H264CodecLevel)
-> (Value -> Parser [H264CodecLevel]) -> FromJSON H264CodecLevel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H264CodecLevel]
$cparseJSONList :: Value -> Parser [H264CodecLevel]
parseJSON :: Value -> Parser H264CodecLevel
$cparseJSON :: Value -> Parser H264CodecLevel
Core.FromJSON,
      FromJSONKeyFunction [H264CodecLevel]
FromJSONKeyFunction H264CodecLevel
FromJSONKeyFunction H264CodecLevel
-> FromJSONKeyFunction [H264CodecLevel]
-> FromJSONKey H264CodecLevel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264CodecLevel]
$cfromJSONKeyList :: FromJSONKeyFunction [H264CodecLevel]
fromJSONKey :: FromJSONKeyFunction H264CodecLevel
$cfromJSONKey :: FromJSONKeyFunction H264CodecLevel
Core.FromJSONKey,
      [H264CodecLevel] -> Encoding
[H264CodecLevel] -> Value
H264CodecLevel -> Encoding
H264CodecLevel -> Value
(H264CodecLevel -> Value)
-> (H264CodecLevel -> Encoding)
-> ([H264CodecLevel] -> Value)
-> ([H264CodecLevel] -> Encoding)
-> ToJSON H264CodecLevel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H264CodecLevel] -> Encoding
$ctoEncodingList :: [H264CodecLevel] -> Encoding
toJSONList :: [H264CodecLevel] -> Value
$ctoJSONList :: [H264CodecLevel] -> Value
toEncoding :: H264CodecLevel -> Encoding
$ctoEncoding :: H264CodecLevel -> Encoding
toJSON :: H264CodecLevel -> Value
$ctoJSON :: H264CodecLevel -> Value
Core.ToJSON,
      ToJSONKeyFunction [H264CodecLevel]
ToJSONKeyFunction H264CodecLevel
ToJSONKeyFunction H264CodecLevel
-> ToJSONKeyFunction [H264CodecLevel] -> ToJSONKey H264CodecLevel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264CodecLevel]
$ctoJSONKeyList :: ToJSONKeyFunction [H264CodecLevel]
toJSONKey :: ToJSONKeyFunction H264CodecLevel
$ctoJSONKey :: ToJSONKeyFunction H264CodecLevel
Core.ToJSONKey,
      [Node] -> Either String H264CodecLevel
([Node] -> Either String H264CodecLevel) -> FromXML H264CodecLevel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264CodecLevel
$cparseXML :: [Node] -> Either String H264CodecLevel
Core.FromXML,
      H264CodecLevel -> XML
(H264CodecLevel -> XML) -> ToXML H264CodecLevel
forall a. (a -> XML) -> ToXML a
toXML :: H264CodecLevel -> XML
$ctoXML :: H264CodecLevel -> XML
Core.ToXML
    )

pattern H264CodecLevel_AUTO :: H264CodecLevel
pattern $bH264CodecLevel_AUTO :: H264CodecLevel
$mH264CodecLevel_AUTO :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_AUTO = H264CodecLevel' "AUTO"

pattern H264CodecLevel_LEVEL_1 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_1 :: H264CodecLevel
$mH264CodecLevel_LEVEL_1 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_1 = H264CodecLevel' "LEVEL_1"

pattern H264CodecLevel_LEVEL_1_1 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_1_1 :: H264CodecLevel
$mH264CodecLevel_LEVEL_1_1 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_1_1 = H264CodecLevel' "LEVEL_1_1"

pattern H264CodecLevel_LEVEL_1_2 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_1_2 :: H264CodecLevel
$mH264CodecLevel_LEVEL_1_2 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_1_2 = H264CodecLevel' "LEVEL_1_2"

pattern H264CodecLevel_LEVEL_1_3 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_1_3 :: H264CodecLevel
$mH264CodecLevel_LEVEL_1_3 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_1_3 = H264CodecLevel' "LEVEL_1_3"

pattern H264CodecLevel_LEVEL_2 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_2 :: H264CodecLevel
$mH264CodecLevel_LEVEL_2 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_2 = H264CodecLevel' "LEVEL_2"

pattern H264CodecLevel_LEVEL_2_1 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_2_1 :: H264CodecLevel
$mH264CodecLevel_LEVEL_2_1 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_2_1 = H264CodecLevel' "LEVEL_2_1"

pattern H264CodecLevel_LEVEL_2_2 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_2_2 :: H264CodecLevel
$mH264CodecLevel_LEVEL_2_2 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_2_2 = H264CodecLevel' "LEVEL_2_2"

pattern H264CodecLevel_LEVEL_3 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_3 :: H264CodecLevel
$mH264CodecLevel_LEVEL_3 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_3 = H264CodecLevel' "LEVEL_3"

pattern H264CodecLevel_LEVEL_3_1 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_3_1 :: H264CodecLevel
$mH264CodecLevel_LEVEL_3_1 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_3_1 = H264CodecLevel' "LEVEL_3_1"

pattern H264CodecLevel_LEVEL_3_2 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_3_2 :: H264CodecLevel
$mH264CodecLevel_LEVEL_3_2 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_3_2 = H264CodecLevel' "LEVEL_3_2"

pattern H264CodecLevel_LEVEL_4 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_4 :: H264CodecLevel
$mH264CodecLevel_LEVEL_4 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_4 = H264CodecLevel' "LEVEL_4"

pattern H264CodecLevel_LEVEL_4_1 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_4_1 :: H264CodecLevel
$mH264CodecLevel_LEVEL_4_1 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_4_1 = H264CodecLevel' "LEVEL_4_1"

pattern H264CodecLevel_LEVEL_4_2 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_4_2 :: H264CodecLevel
$mH264CodecLevel_LEVEL_4_2 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_4_2 = H264CodecLevel' "LEVEL_4_2"

pattern H264CodecLevel_LEVEL_5 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_5 :: H264CodecLevel
$mH264CodecLevel_LEVEL_5 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_5 = H264CodecLevel' "LEVEL_5"

pattern H264CodecLevel_LEVEL_5_1 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_5_1 :: H264CodecLevel
$mH264CodecLevel_LEVEL_5_1 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_5_1 = H264CodecLevel' "LEVEL_5_1"

pattern H264CodecLevel_LEVEL_5_2 :: H264CodecLevel
pattern $bH264CodecLevel_LEVEL_5_2 :: H264CodecLevel
$mH264CodecLevel_LEVEL_5_2 :: forall r. H264CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
H264CodecLevel_LEVEL_5_2 = H264CodecLevel' "LEVEL_5_2"

{-# COMPLETE
  H264CodecLevel_AUTO,
  H264CodecLevel_LEVEL_1,
  H264CodecLevel_LEVEL_1_1,
  H264CodecLevel_LEVEL_1_2,
  H264CodecLevel_LEVEL_1_3,
  H264CodecLevel_LEVEL_2,
  H264CodecLevel_LEVEL_2_1,
  H264CodecLevel_LEVEL_2_2,
  H264CodecLevel_LEVEL_3,
  H264CodecLevel_LEVEL_3_1,
  H264CodecLevel_LEVEL_3_2,
  H264CodecLevel_LEVEL_4,
  H264CodecLevel_LEVEL_4_1,
  H264CodecLevel_LEVEL_4_2,
  H264CodecLevel_LEVEL_5,
  H264CodecLevel_LEVEL_5_1,
  H264CodecLevel_LEVEL_5_2,
  H264CodecLevel'
  #-}