{-# 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.M2tsScte35Control
-- 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.M2tsScte35Control
  ( M2tsScte35Control
      ( ..,
        M2tsScte35Control_NONE,
        M2tsScte35Control_PASSTHROUGH
      ),
  )
where

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

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

pattern M2tsScte35Control_NONE :: M2tsScte35Control
pattern $bM2tsScte35Control_NONE :: M2tsScte35Control
$mM2tsScte35Control_NONE :: forall {r}. M2tsScte35Control -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsScte35Control_NONE = M2tsScte35Control' "NONE"

pattern M2tsScte35Control_PASSTHROUGH :: M2tsScte35Control
pattern $bM2tsScte35Control_PASSTHROUGH :: M2tsScte35Control
$mM2tsScte35Control_PASSTHROUGH :: forall {r}. M2tsScte35Control -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsScte35Control_PASSTHROUGH = M2tsScte35Control' "PASSTHROUGH"

{-# COMPLETE
  M2tsScte35Control_NONE,
  M2tsScte35Control_PASSTHROUGH,
  M2tsScte35Control'
  #-}