{-# 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.M3u8Scte35Behavior
-- 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.M3u8Scte35Behavior
  ( M3u8Scte35Behavior
      ( ..,
        M3u8Scte35Behavior_NO_PASSTHROUGH,
        M3u8Scte35Behavior_PASSTHROUGH
      ),
  )
where

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

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

pattern M3u8Scte35Behavior_NO_PASSTHROUGH :: M3u8Scte35Behavior
pattern $bM3u8Scte35Behavior_NO_PASSTHROUGH :: M3u8Scte35Behavior
$mM3u8Scte35Behavior_NO_PASSTHROUGH :: forall {r}. M3u8Scte35Behavior -> ((# #) -> r) -> ((# #) -> r) -> r
M3u8Scte35Behavior_NO_PASSTHROUGH = M3u8Scte35Behavior' "NO_PASSTHROUGH"

pattern M3u8Scte35Behavior_PASSTHROUGH :: M3u8Scte35Behavior
pattern $bM3u8Scte35Behavior_PASSTHROUGH :: M3u8Scte35Behavior
$mM3u8Scte35Behavior_PASSTHROUGH :: forall {r}. M3u8Scte35Behavior -> ((# #) -> r) -> ((# #) -> r) -> r
M3u8Scte35Behavior_PASSTHROUGH = M3u8Scte35Behavior' "PASSTHROUGH"

{-# COMPLETE
  M3u8Scte35Behavior_NO_PASSTHROUGH,
  M3u8Scte35Behavior_PASSTHROUGH,
  M3u8Scte35Behavior'
  #-}