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

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

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

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

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

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