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

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

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

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

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

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