{-# 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.H264ScanType
-- 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.H264ScanType
  ( H264ScanType
      ( ..,
        H264ScanType_INTERLACED,
        H264ScanType_PROGRESSIVE
      ),
  )
where

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

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

pattern H264ScanType_INTERLACED :: H264ScanType
pattern $bH264ScanType_INTERLACED :: H264ScanType
$mH264ScanType_INTERLACED :: forall {r}. H264ScanType -> ((# #) -> r) -> ((# #) -> r) -> r
H264ScanType_INTERLACED = H264ScanType' "INTERLACED"

pattern H264ScanType_PROGRESSIVE :: H264ScanType
pattern $bH264ScanType_PROGRESSIVE :: H264ScanType
$mH264ScanType_PROGRESSIVE :: forall {r}. H264ScanType -> ((# #) -> r) -> ((# #) -> r) -> r
H264ScanType_PROGRESSIVE = H264ScanType' "PROGRESSIVE"

{-# COMPLETE
  H264ScanType_INTERLACED,
  H264ScanType_PROGRESSIVE,
  H264ScanType'
  #-}