{-# 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.MediaLive.Types.H264Level
-- 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.MediaLive.Types.H264Level
  ( H264Level
      ( ..,
        H264Level_H264_LEVEL_1,
        H264Level_H264_LEVEL_1_1,
        H264Level_H264_LEVEL_1_2,
        H264Level_H264_LEVEL_1_3,
        H264Level_H264_LEVEL_2,
        H264Level_H264_LEVEL_2_1,
        H264Level_H264_LEVEL_2_2,
        H264Level_H264_LEVEL_3,
        H264Level_H264_LEVEL_3_1,
        H264Level_H264_LEVEL_3_2,
        H264Level_H264_LEVEL_4,
        H264Level_H264_LEVEL_4_1,
        H264Level_H264_LEVEL_4_2,
        H264Level_H264_LEVEL_5,
        H264Level_H264_LEVEL_5_1,
        H264Level_H264_LEVEL_5_2,
        H264Level_H264_LEVEL_AUTO
      ),
  )
where

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

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

pattern H264Level_H264_LEVEL_1 :: H264Level
pattern $bH264Level_H264_LEVEL_1 :: H264Level
$mH264Level_H264_LEVEL_1 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_1 = H264Level' "H264_LEVEL_1"

pattern H264Level_H264_LEVEL_1_1 :: H264Level
pattern $bH264Level_H264_LEVEL_1_1 :: H264Level
$mH264Level_H264_LEVEL_1_1 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_1_1 = H264Level' "H264_LEVEL_1_1"

pattern H264Level_H264_LEVEL_1_2 :: H264Level
pattern $bH264Level_H264_LEVEL_1_2 :: H264Level
$mH264Level_H264_LEVEL_1_2 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_1_2 = H264Level' "H264_LEVEL_1_2"

pattern H264Level_H264_LEVEL_1_3 :: H264Level
pattern $bH264Level_H264_LEVEL_1_3 :: H264Level
$mH264Level_H264_LEVEL_1_3 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_1_3 = H264Level' "H264_LEVEL_1_3"

pattern H264Level_H264_LEVEL_2 :: H264Level
pattern $bH264Level_H264_LEVEL_2 :: H264Level
$mH264Level_H264_LEVEL_2 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_2 = H264Level' "H264_LEVEL_2"

pattern H264Level_H264_LEVEL_2_1 :: H264Level
pattern $bH264Level_H264_LEVEL_2_1 :: H264Level
$mH264Level_H264_LEVEL_2_1 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_2_1 = H264Level' "H264_LEVEL_2_1"

pattern H264Level_H264_LEVEL_2_2 :: H264Level
pattern $bH264Level_H264_LEVEL_2_2 :: H264Level
$mH264Level_H264_LEVEL_2_2 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_2_2 = H264Level' "H264_LEVEL_2_2"

pattern H264Level_H264_LEVEL_3 :: H264Level
pattern $bH264Level_H264_LEVEL_3 :: H264Level
$mH264Level_H264_LEVEL_3 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_3 = H264Level' "H264_LEVEL_3"

pattern H264Level_H264_LEVEL_3_1 :: H264Level
pattern $bH264Level_H264_LEVEL_3_1 :: H264Level
$mH264Level_H264_LEVEL_3_1 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_3_1 = H264Level' "H264_LEVEL_3_1"

pattern H264Level_H264_LEVEL_3_2 :: H264Level
pattern $bH264Level_H264_LEVEL_3_2 :: H264Level
$mH264Level_H264_LEVEL_3_2 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_3_2 = H264Level' "H264_LEVEL_3_2"

pattern H264Level_H264_LEVEL_4 :: H264Level
pattern $bH264Level_H264_LEVEL_4 :: H264Level
$mH264Level_H264_LEVEL_4 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_4 = H264Level' "H264_LEVEL_4"

pattern H264Level_H264_LEVEL_4_1 :: H264Level
pattern $bH264Level_H264_LEVEL_4_1 :: H264Level
$mH264Level_H264_LEVEL_4_1 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_4_1 = H264Level' "H264_LEVEL_4_1"

pattern H264Level_H264_LEVEL_4_2 :: H264Level
pattern $bH264Level_H264_LEVEL_4_2 :: H264Level
$mH264Level_H264_LEVEL_4_2 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_4_2 = H264Level' "H264_LEVEL_4_2"

pattern H264Level_H264_LEVEL_5 :: H264Level
pattern $bH264Level_H264_LEVEL_5 :: H264Level
$mH264Level_H264_LEVEL_5 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_5 = H264Level' "H264_LEVEL_5"

pattern H264Level_H264_LEVEL_5_1 :: H264Level
pattern $bH264Level_H264_LEVEL_5_1 :: H264Level
$mH264Level_H264_LEVEL_5_1 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_5_1 = H264Level' "H264_LEVEL_5_1"

pattern H264Level_H264_LEVEL_5_2 :: H264Level
pattern $bH264Level_H264_LEVEL_5_2 :: H264Level
$mH264Level_H264_LEVEL_5_2 :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_5_2 = H264Level' "H264_LEVEL_5_2"

pattern H264Level_H264_LEVEL_AUTO :: H264Level
pattern $bH264Level_H264_LEVEL_AUTO :: H264Level
$mH264Level_H264_LEVEL_AUTO :: forall {r}. H264Level -> ((# #) -> r) -> ((# #) -> r) -> r
H264Level_H264_LEVEL_AUTO = H264Level' "H264_LEVEL_AUTO"

{-# COMPLETE
  H264Level_H264_LEVEL_1,
  H264Level_H264_LEVEL_1_1,
  H264Level_H264_LEVEL_1_2,
  H264Level_H264_LEVEL_1_3,
  H264Level_H264_LEVEL_2,
  H264Level_H264_LEVEL_2_1,
  H264Level_H264_LEVEL_2_2,
  H264Level_H264_LEVEL_3,
  H264Level_H264_LEVEL_3_1,
  H264Level_H264_LEVEL_3_2,
  H264Level_H264_LEVEL_4,
  H264Level_H264_LEVEL_4_1,
  H264Level_H264_LEVEL_4_2,
  H264Level_H264_LEVEL_5,
  H264Level_H264_LEVEL_5_1,
  H264Level_H264_LEVEL_5_2,
  H264Level_H264_LEVEL_AUTO,
  H264Level'
  #-}