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

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

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

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

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

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