{-# 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.H264SpatialAq
-- 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.H264SpatialAq
  ( H264SpatialAq
      ( ..,
        H264SpatialAq_DISABLED,
        H264SpatialAq_ENABLED
      ),
  )
where

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

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

pattern H264SpatialAq_DISABLED :: H264SpatialAq
pattern $bH264SpatialAq_DISABLED :: H264SpatialAq
$mH264SpatialAq_DISABLED :: forall {r}. H264SpatialAq -> ((# #) -> r) -> ((# #) -> r) -> r
H264SpatialAq_DISABLED = H264SpatialAq' "DISABLED"

pattern H264SpatialAq_ENABLED :: H264SpatialAq
pattern $bH264SpatialAq_ENABLED :: H264SpatialAq
$mH264SpatialAq_ENABLED :: forall {r}. H264SpatialAq -> ((# #) -> r) -> ((# #) -> r) -> r
H264SpatialAq_ENABLED = H264SpatialAq' "ENABLED"

{-# COMPLETE
  H264SpatialAq_DISABLED,
  H264SpatialAq_ENABLED,
  H264SpatialAq'
  #-}