{-# 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.H265Level
-- 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.H265Level
  ( H265Level
      ( ..,
        H265Level_H265_LEVEL_1,
        H265Level_H265_LEVEL_2,
        H265Level_H265_LEVEL_2_1,
        H265Level_H265_LEVEL_3,
        H265Level_H265_LEVEL_3_1,
        H265Level_H265_LEVEL_4,
        H265Level_H265_LEVEL_4_1,
        H265Level_H265_LEVEL_5,
        H265Level_H265_LEVEL_5_1,
        H265Level_H265_LEVEL_5_2,
        H265Level_H265_LEVEL_6,
        H265Level_H265_LEVEL_6_1,
        H265Level_H265_LEVEL_6_2,
        H265Level_H265_LEVEL_AUTO
      ),
  )
where

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

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

pattern H265Level_H265_LEVEL_1 :: H265Level
pattern $bH265Level_H265_LEVEL_1 :: H265Level
$mH265Level_H265_LEVEL_1 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_1 = H265Level' "H265_LEVEL_1"

pattern H265Level_H265_LEVEL_2 :: H265Level
pattern $bH265Level_H265_LEVEL_2 :: H265Level
$mH265Level_H265_LEVEL_2 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_2 = H265Level' "H265_LEVEL_2"

pattern H265Level_H265_LEVEL_2_1 :: H265Level
pattern $bH265Level_H265_LEVEL_2_1 :: H265Level
$mH265Level_H265_LEVEL_2_1 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_2_1 = H265Level' "H265_LEVEL_2_1"

pattern H265Level_H265_LEVEL_3 :: H265Level
pattern $bH265Level_H265_LEVEL_3 :: H265Level
$mH265Level_H265_LEVEL_3 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_3 = H265Level' "H265_LEVEL_3"

pattern H265Level_H265_LEVEL_3_1 :: H265Level
pattern $bH265Level_H265_LEVEL_3_1 :: H265Level
$mH265Level_H265_LEVEL_3_1 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_3_1 = H265Level' "H265_LEVEL_3_1"

pattern H265Level_H265_LEVEL_4 :: H265Level
pattern $bH265Level_H265_LEVEL_4 :: H265Level
$mH265Level_H265_LEVEL_4 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_4 = H265Level' "H265_LEVEL_4"

pattern H265Level_H265_LEVEL_4_1 :: H265Level
pattern $bH265Level_H265_LEVEL_4_1 :: H265Level
$mH265Level_H265_LEVEL_4_1 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_4_1 = H265Level' "H265_LEVEL_4_1"

pattern H265Level_H265_LEVEL_5 :: H265Level
pattern $bH265Level_H265_LEVEL_5 :: H265Level
$mH265Level_H265_LEVEL_5 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_5 = H265Level' "H265_LEVEL_5"

pattern H265Level_H265_LEVEL_5_1 :: H265Level
pattern $bH265Level_H265_LEVEL_5_1 :: H265Level
$mH265Level_H265_LEVEL_5_1 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_5_1 = H265Level' "H265_LEVEL_5_1"

pattern H265Level_H265_LEVEL_5_2 :: H265Level
pattern $bH265Level_H265_LEVEL_5_2 :: H265Level
$mH265Level_H265_LEVEL_5_2 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_5_2 = H265Level' "H265_LEVEL_5_2"

pattern H265Level_H265_LEVEL_6 :: H265Level
pattern $bH265Level_H265_LEVEL_6 :: H265Level
$mH265Level_H265_LEVEL_6 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_6 = H265Level' "H265_LEVEL_6"

pattern H265Level_H265_LEVEL_6_1 :: H265Level
pattern $bH265Level_H265_LEVEL_6_1 :: H265Level
$mH265Level_H265_LEVEL_6_1 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_6_1 = H265Level' "H265_LEVEL_6_1"

pattern H265Level_H265_LEVEL_6_2 :: H265Level
pattern $bH265Level_H265_LEVEL_6_2 :: H265Level
$mH265Level_H265_LEVEL_6_2 :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_6_2 = H265Level' "H265_LEVEL_6_2"

pattern H265Level_H265_LEVEL_AUTO :: H265Level
pattern $bH265Level_H265_LEVEL_AUTO :: H265Level
$mH265Level_H265_LEVEL_AUTO :: forall r. H265Level -> (Void# -> r) -> (Void# -> r) -> r
H265Level_H265_LEVEL_AUTO = H265Level' "H265_LEVEL_AUTO"

{-# COMPLETE
  H265Level_H265_LEVEL_1,
  H265Level_H265_LEVEL_2,
  H265Level_H265_LEVEL_2_1,
  H265Level_H265_LEVEL_3,
  H265Level_H265_LEVEL_3_1,
  H265Level_H265_LEVEL_4,
  H265Level_H265_LEVEL_4_1,
  H265Level_H265_LEVEL_5,
  H265Level_H265_LEVEL_5_1,
  H265Level_H265_LEVEL_5_2,
  H265Level_H265_LEVEL_6,
  H265Level_H265_LEVEL_6_1,
  H265Level_H265_LEVEL_6_2,
  H265Level_H265_LEVEL_AUTO,
  H265Level'
  #-}