{-# 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.H264QualityLevel
-- 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.H264QualityLevel
  ( H264QualityLevel
      ( ..,
        H264QualityLevel_ENHANCED_QUALITY,
        H264QualityLevel_STANDARD_QUALITY
      ),
  )
where

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

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

pattern H264QualityLevel_ENHANCED_QUALITY :: H264QualityLevel
pattern $bH264QualityLevel_ENHANCED_QUALITY :: H264QualityLevel
$mH264QualityLevel_ENHANCED_QUALITY :: forall r. H264QualityLevel -> (Void# -> r) -> (Void# -> r) -> r
H264QualityLevel_ENHANCED_QUALITY = H264QualityLevel' "ENHANCED_QUALITY"

pattern H264QualityLevel_STANDARD_QUALITY :: H264QualityLevel
pattern $bH264QualityLevel_STANDARD_QUALITY :: H264QualityLevel
$mH264QualityLevel_STANDARD_QUALITY :: forall r. H264QualityLevel -> (Void# -> r) -> (Void# -> r) -> r
H264QualityLevel_STANDARD_QUALITY = H264QualityLevel' "STANDARD_QUALITY"

{-# COMPLETE
  H264QualityLevel_ENHANCED_QUALITY,
  H264QualityLevel_STANDARD_QUALITY,
  H264QualityLevel'
  #-}