{-# 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.Scte35AposWebDeliveryAllowedBehavior
-- 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.Scte35AposWebDeliveryAllowedBehavior
  ( Scte35AposWebDeliveryAllowedBehavior
      ( ..,
        Scte35AposWebDeliveryAllowedBehavior_FOLLOW,
        Scte35AposWebDeliveryAllowedBehavior_IGNORE
      ),
  )
where

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

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

pattern Scte35AposWebDeliveryAllowedBehavior_FOLLOW :: Scte35AposWebDeliveryAllowedBehavior
pattern $bScte35AposWebDeliveryAllowedBehavior_FOLLOW :: Scte35AposWebDeliveryAllowedBehavior
$mScte35AposWebDeliveryAllowedBehavior_FOLLOW :: forall {r}.
Scte35AposWebDeliveryAllowedBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
Scte35AposWebDeliveryAllowedBehavior_FOLLOW = Scte35AposWebDeliveryAllowedBehavior' "FOLLOW"

pattern Scte35AposWebDeliveryAllowedBehavior_IGNORE :: Scte35AposWebDeliveryAllowedBehavior
pattern $bScte35AposWebDeliveryAllowedBehavior_IGNORE :: Scte35AposWebDeliveryAllowedBehavior
$mScte35AposWebDeliveryAllowedBehavior_IGNORE :: forall {r}.
Scte35AposWebDeliveryAllowedBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
Scte35AposWebDeliveryAllowedBehavior_IGNORE = Scte35AposWebDeliveryAllowedBehavior' "IGNORE"

{-# COMPLETE
  Scte35AposWebDeliveryAllowedBehavior_FOLLOW,
  Scte35AposWebDeliveryAllowedBehavior_IGNORE,
  Scte35AposWebDeliveryAllowedBehavior'
  #-}