{-# 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.Scte35SpliceInsertWebDeliveryAllowedBehavior
-- 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.Scte35SpliceInsertWebDeliveryAllowedBehavior
  ( Scte35SpliceInsertWebDeliveryAllowedBehavior
      ( ..,
        Scte35SpliceInsertWebDeliveryAllowedBehavior_FOLLOW,
        Scte35SpliceInsertWebDeliveryAllowedBehavior_IGNORE
      ),
  )
where

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

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

pattern Scte35SpliceInsertWebDeliveryAllowedBehavior_FOLLOW :: Scte35SpliceInsertWebDeliveryAllowedBehavior
pattern $bScte35SpliceInsertWebDeliveryAllowedBehavior_FOLLOW :: Scte35SpliceInsertWebDeliveryAllowedBehavior
$mScte35SpliceInsertWebDeliveryAllowedBehavior_FOLLOW :: forall {r}.
Scte35SpliceInsertWebDeliveryAllowedBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
Scte35SpliceInsertWebDeliveryAllowedBehavior_FOLLOW = Scte35SpliceInsertWebDeliveryAllowedBehavior' "FOLLOW"

pattern Scte35SpliceInsertWebDeliveryAllowedBehavior_IGNORE :: Scte35SpliceInsertWebDeliveryAllowedBehavior
pattern $bScte35SpliceInsertWebDeliveryAllowedBehavior_IGNORE :: Scte35SpliceInsertWebDeliveryAllowedBehavior
$mScte35SpliceInsertWebDeliveryAllowedBehavior_IGNORE :: forall {r}.
Scte35SpliceInsertWebDeliveryAllowedBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
Scte35SpliceInsertWebDeliveryAllowedBehavior_IGNORE = Scte35SpliceInsertWebDeliveryAllowedBehavior' "IGNORE"

{-# COMPLETE
  Scte35SpliceInsertWebDeliveryAllowedBehavior_FOLLOW,
  Scte35SpliceInsertWebDeliveryAllowedBehavior_IGNORE,
  Scte35SpliceInsertWebDeliveryAllowedBehavior'
  #-}