{-# 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.EmbeddedScte20Detection
-- 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.EmbeddedScte20Detection
  ( EmbeddedScte20Detection
      ( ..,
        EmbeddedScte20Detection_AUTO,
        EmbeddedScte20Detection_OFF
      ),
  )
where

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

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

pattern EmbeddedScte20Detection_AUTO :: EmbeddedScte20Detection
pattern $bEmbeddedScte20Detection_AUTO :: EmbeddedScte20Detection
$mEmbeddedScte20Detection_AUTO :: forall {r}.
EmbeddedScte20Detection -> ((# #) -> r) -> ((# #) -> r) -> r
EmbeddedScte20Detection_AUTO = EmbeddedScte20Detection' "AUTO"

pattern EmbeddedScte20Detection_OFF :: EmbeddedScte20Detection
pattern $bEmbeddedScte20Detection_OFF :: EmbeddedScte20Detection
$mEmbeddedScte20Detection_OFF :: forall {r}.
EmbeddedScte20Detection -> ((# #) -> r) -> ((# #) -> r) -> r
EmbeddedScte20Detection_OFF = EmbeddedScte20Detection' "OFF"

{-# COMPLETE
  EmbeddedScte20Detection_AUTO,
  EmbeddedScte20Detection_OFF,
  EmbeddedScte20Detection'
  #-}