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

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

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

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

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

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