{-# 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.H265ScanType
-- 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.H265ScanType
  ( H265ScanType
      ( ..,
        H265ScanType_INTERLACED,
        H265ScanType_PROGRESSIVE
      ),
  )
where

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

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

pattern H265ScanType_INTERLACED :: H265ScanType
pattern $bH265ScanType_INTERLACED :: H265ScanType
$mH265ScanType_INTERLACED :: forall {r}. H265ScanType -> ((# #) -> r) -> ((# #) -> r) -> r
H265ScanType_INTERLACED = H265ScanType' "INTERLACED"

pattern H265ScanType_PROGRESSIVE :: H265ScanType
pattern $bH265ScanType_PROGRESSIVE :: H265ScanType
$mH265ScanType_PROGRESSIVE :: forall {r}. H265ScanType -> ((# #) -> r) -> ((# #) -> r) -> r
H265ScanType_PROGRESSIVE = H265ScanType' "PROGRESSIVE"

{-# COMPLETE
  H265ScanType_INTERLACED,
  H265ScanType_PROGRESSIVE,
  H265ScanType'
  #-}