{-# 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-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.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.Prelude as Prelude

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

pattern H264Level_H264_LEVEL_1 :: H264Level
pattern $bH264Level_H264_LEVEL_1 :: H264Level
$mH264Level_H264_LEVEL_1 :: forall r. H264Level -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}