{-# 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.H265SceneChangeDetect
-- 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.H265SceneChangeDetect
  ( H265SceneChangeDetect
      ( ..,
        H265SceneChangeDetect_DISABLED,
        H265SceneChangeDetect_ENABLED
      ),
  )
where

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

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

pattern H265SceneChangeDetect_DISABLED :: H265SceneChangeDetect
pattern $bH265SceneChangeDetect_DISABLED :: H265SceneChangeDetect
$mH265SceneChangeDetect_DISABLED :: forall {r}.
H265SceneChangeDetect -> ((# #) -> r) -> ((# #) -> r) -> r
H265SceneChangeDetect_DISABLED = H265SceneChangeDetect' "DISABLED"

pattern H265SceneChangeDetect_ENABLED :: H265SceneChangeDetect
pattern $bH265SceneChangeDetect_ENABLED :: H265SceneChangeDetect
$mH265SceneChangeDetect_ENABLED :: forall {r}.
H265SceneChangeDetect -> ((# #) -> r) -> ((# #) -> r) -> r
H265SceneChangeDetect_ENABLED = H265SceneChangeDetect' "ENABLED"

{-# COMPLETE
  H265SceneChangeDetect_DISABLED,
  H265SceneChangeDetect_ENABLED,
  H265SceneChangeDetect'
  #-}