{-# 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.Scte35WebDeliveryAllowedFlag
-- 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.Scte35WebDeliveryAllowedFlag
  ( Scte35WebDeliveryAllowedFlag
      ( ..,
        Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_ALLOWED,
        Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_NOT_ALLOWED
      ),
  )
where

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

-- | Corresponds to the web_delivery_allowed_flag parameter. A value of
-- WEB_DELIVERY_NOT_ALLOWED corresponds to 0 (false) in the SCTE-35
-- specification. If you include one of the \"restriction\" flags then you
-- must include all four of them.
newtype Scte35WebDeliveryAllowedFlag = Scte35WebDeliveryAllowedFlag'
  { Scte35WebDeliveryAllowedFlag -> Text
fromScte35WebDeliveryAllowedFlag ::
      Core.Text
  }
  deriving stock
    ( Int -> Scte35WebDeliveryAllowedFlag -> ShowS
[Scte35WebDeliveryAllowedFlag] -> ShowS
Scte35WebDeliveryAllowedFlag -> String
(Int -> Scte35WebDeliveryAllowedFlag -> ShowS)
-> (Scte35WebDeliveryAllowedFlag -> String)
-> ([Scte35WebDeliveryAllowedFlag] -> ShowS)
-> Show Scte35WebDeliveryAllowedFlag
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Scte35WebDeliveryAllowedFlag] -> ShowS
$cshowList :: [Scte35WebDeliveryAllowedFlag] -> ShowS
show :: Scte35WebDeliveryAllowedFlag -> String
$cshow :: Scte35WebDeliveryAllowedFlag -> String
showsPrec :: Int -> Scte35WebDeliveryAllowedFlag -> ShowS
$cshowsPrec :: Int -> Scte35WebDeliveryAllowedFlag -> ShowS
Prelude.Show,
      ReadPrec [Scte35WebDeliveryAllowedFlag]
ReadPrec Scte35WebDeliveryAllowedFlag
Int -> ReadS Scte35WebDeliveryAllowedFlag
ReadS [Scte35WebDeliveryAllowedFlag]
(Int -> ReadS Scte35WebDeliveryAllowedFlag)
-> ReadS [Scte35WebDeliveryAllowedFlag]
-> ReadPrec Scte35WebDeliveryAllowedFlag
-> ReadPrec [Scte35WebDeliveryAllowedFlag]
-> Read Scte35WebDeliveryAllowedFlag
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Scte35WebDeliveryAllowedFlag]
$creadListPrec :: ReadPrec [Scte35WebDeliveryAllowedFlag]
readPrec :: ReadPrec Scte35WebDeliveryAllowedFlag
$creadPrec :: ReadPrec Scte35WebDeliveryAllowedFlag
readList :: ReadS [Scte35WebDeliveryAllowedFlag]
$creadList :: ReadS [Scte35WebDeliveryAllowedFlag]
readsPrec :: Int -> ReadS Scte35WebDeliveryAllowedFlag
$creadsPrec :: Int -> ReadS Scte35WebDeliveryAllowedFlag
Prelude.Read,
      Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
(Scte35WebDeliveryAllowedFlag
 -> Scte35WebDeliveryAllowedFlag -> Bool)
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Bool)
-> Eq Scte35WebDeliveryAllowedFlag
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
$c/= :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
== :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
$c== :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
Prelude.Eq,
      Eq Scte35WebDeliveryAllowedFlag
Eq Scte35WebDeliveryAllowedFlag
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Ordering)
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Bool)
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Bool)
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Bool)
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Bool)
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Scte35WebDeliveryAllowedFlag)
-> (Scte35WebDeliveryAllowedFlag
    -> Scte35WebDeliveryAllowedFlag -> Scte35WebDeliveryAllowedFlag)
-> Ord Scte35WebDeliveryAllowedFlag
Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Ordering
Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Scte35WebDeliveryAllowedFlag
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 :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Scte35WebDeliveryAllowedFlag
$cmin :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Scte35WebDeliveryAllowedFlag
max :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Scte35WebDeliveryAllowedFlag
$cmax :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Scte35WebDeliveryAllowedFlag
>= :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
$c>= :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
> :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
$c> :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
<= :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
$c<= :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
< :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
$c< :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Bool
compare :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Ordering
$ccompare :: Scte35WebDeliveryAllowedFlag
-> Scte35WebDeliveryAllowedFlag -> Ordering
$cp1Ord :: Eq Scte35WebDeliveryAllowedFlag
Prelude.Ord,
      (forall x.
 Scte35WebDeliveryAllowedFlag -> Rep Scte35WebDeliveryAllowedFlag x)
-> (forall x.
    Rep Scte35WebDeliveryAllowedFlag x -> Scte35WebDeliveryAllowedFlag)
-> Generic Scte35WebDeliveryAllowedFlag
forall x.
Rep Scte35WebDeliveryAllowedFlag x -> Scte35WebDeliveryAllowedFlag
forall x.
Scte35WebDeliveryAllowedFlag -> Rep Scte35WebDeliveryAllowedFlag x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Scte35WebDeliveryAllowedFlag x -> Scte35WebDeliveryAllowedFlag
$cfrom :: forall x.
Scte35WebDeliveryAllowedFlag -> Rep Scte35WebDeliveryAllowedFlag x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Scte35WebDeliveryAllowedFlag -> Int
Scte35WebDeliveryAllowedFlag -> Int
(Int -> Scte35WebDeliveryAllowedFlag -> Int)
-> (Scte35WebDeliveryAllowedFlag -> Int)
-> Hashable Scte35WebDeliveryAllowedFlag
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Scte35WebDeliveryAllowedFlag -> Int
$chash :: Scte35WebDeliveryAllowedFlag -> Int
hashWithSalt :: Int -> Scte35WebDeliveryAllowedFlag -> Int
$chashWithSalt :: Int -> Scte35WebDeliveryAllowedFlag -> Int
Prelude.Hashable,
      Scte35WebDeliveryAllowedFlag -> ()
(Scte35WebDeliveryAllowedFlag -> ())
-> NFData Scte35WebDeliveryAllowedFlag
forall a. (a -> ()) -> NFData a
rnf :: Scte35WebDeliveryAllowedFlag -> ()
$crnf :: Scte35WebDeliveryAllowedFlag -> ()
Prelude.NFData,
      Text -> Either String Scte35WebDeliveryAllowedFlag
(Text -> Either String Scte35WebDeliveryAllowedFlag)
-> FromText Scte35WebDeliveryAllowedFlag
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Scte35WebDeliveryAllowedFlag
$cfromText :: Text -> Either String Scte35WebDeliveryAllowedFlag
Core.FromText,
      Scte35WebDeliveryAllowedFlag -> Text
(Scte35WebDeliveryAllowedFlag -> Text)
-> ToText Scte35WebDeliveryAllowedFlag
forall a. (a -> Text) -> ToText a
toText :: Scte35WebDeliveryAllowedFlag -> Text
$ctoText :: Scte35WebDeliveryAllowedFlag -> Text
Core.ToText,
      Scte35WebDeliveryAllowedFlag -> ByteString
(Scte35WebDeliveryAllowedFlag -> ByteString)
-> ToByteString Scte35WebDeliveryAllowedFlag
forall a. (a -> ByteString) -> ToByteString a
toBS :: Scte35WebDeliveryAllowedFlag -> ByteString
$ctoBS :: Scte35WebDeliveryAllowedFlag -> ByteString
Core.ToByteString,
      Scte35WebDeliveryAllowedFlag -> ByteStringBuilder
(Scte35WebDeliveryAllowedFlag -> ByteStringBuilder)
-> ToLog Scte35WebDeliveryAllowedFlag
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Scte35WebDeliveryAllowedFlag -> ByteStringBuilder
$cbuild :: Scte35WebDeliveryAllowedFlag -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Scte35WebDeliveryAllowedFlag -> [Header]
(HeaderName -> Scte35WebDeliveryAllowedFlag -> [Header])
-> ToHeader Scte35WebDeliveryAllowedFlag
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Scte35WebDeliveryAllowedFlag -> [Header]
$ctoHeader :: HeaderName -> Scte35WebDeliveryAllowedFlag -> [Header]
Core.ToHeader,
      Scte35WebDeliveryAllowedFlag -> QueryString
(Scte35WebDeliveryAllowedFlag -> QueryString)
-> ToQuery Scte35WebDeliveryAllowedFlag
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Scte35WebDeliveryAllowedFlag -> QueryString
$ctoQuery :: Scte35WebDeliveryAllowedFlag -> QueryString
Core.ToQuery,
      Value -> Parser [Scte35WebDeliveryAllowedFlag]
Value -> Parser Scte35WebDeliveryAllowedFlag
(Value -> Parser Scte35WebDeliveryAllowedFlag)
-> (Value -> Parser [Scte35WebDeliveryAllowedFlag])
-> FromJSON Scte35WebDeliveryAllowedFlag
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Scte35WebDeliveryAllowedFlag]
$cparseJSONList :: Value -> Parser [Scte35WebDeliveryAllowedFlag]
parseJSON :: Value -> Parser Scte35WebDeliveryAllowedFlag
$cparseJSON :: Value -> Parser Scte35WebDeliveryAllowedFlag
Core.FromJSON,
      FromJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
FromJSONKeyFunction Scte35WebDeliveryAllowedFlag
FromJSONKeyFunction Scte35WebDeliveryAllowedFlag
-> FromJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
-> FromJSONKey Scte35WebDeliveryAllowedFlag
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
$cfromJSONKeyList :: FromJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
fromJSONKey :: FromJSONKeyFunction Scte35WebDeliveryAllowedFlag
$cfromJSONKey :: FromJSONKeyFunction Scte35WebDeliveryAllowedFlag
Core.FromJSONKey,
      [Scte35WebDeliveryAllowedFlag] -> Encoding
[Scte35WebDeliveryAllowedFlag] -> Value
Scte35WebDeliveryAllowedFlag -> Encoding
Scte35WebDeliveryAllowedFlag -> Value
(Scte35WebDeliveryAllowedFlag -> Value)
-> (Scte35WebDeliveryAllowedFlag -> Encoding)
-> ([Scte35WebDeliveryAllowedFlag] -> Value)
-> ([Scte35WebDeliveryAllowedFlag] -> Encoding)
-> ToJSON Scte35WebDeliveryAllowedFlag
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Scte35WebDeliveryAllowedFlag] -> Encoding
$ctoEncodingList :: [Scte35WebDeliveryAllowedFlag] -> Encoding
toJSONList :: [Scte35WebDeliveryAllowedFlag] -> Value
$ctoJSONList :: [Scte35WebDeliveryAllowedFlag] -> Value
toEncoding :: Scte35WebDeliveryAllowedFlag -> Encoding
$ctoEncoding :: Scte35WebDeliveryAllowedFlag -> Encoding
toJSON :: Scte35WebDeliveryAllowedFlag -> Value
$ctoJSON :: Scte35WebDeliveryAllowedFlag -> Value
Core.ToJSON,
      ToJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
ToJSONKeyFunction Scte35WebDeliveryAllowedFlag
ToJSONKeyFunction Scte35WebDeliveryAllowedFlag
-> ToJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
-> ToJSONKey Scte35WebDeliveryAllowedFlag
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
$ctoJSONKeyList :: ToJSONKeyFunction [Scte35WebDeliveryAllowedFlag]
toJSONKey :: ToJSONKeyFunction Scte35WebDeliveryAllowedFlag
$ctoJSONKey :: ToJSONKeyFunction Scte35WebDeliveryAllowedFlag
Core.ToJSONKey,
      [Node] -> Either String Scte35WebDeliveryAllowedFlag
([Node] -> Either String Scte35WebDeliveryAllowedFlag)
-> FromXML Scte35WebDeliveryAllowedFlag
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Scte35WebDeliveryAllowedFlag
$cparseXML :: [Node] -> Either String Scte35WebDeliveryAllowedFlag
Core.FromXML,
      Scte35WebDeliveryAllowedFlag -> XML
(Scte35WebDeliveryAllowedFlag -> XML)
-> ToXML Scte35WebDeliveryAllowedFlag
forall a. (a -> XML) -> ToXML a
toXML :: Scte35WebDeliveryAllowedFlag -> XML
$ctoXML :: Scte35WebDeliveryAllowedFlag -> XML
Core.ToXML
    )

pattern Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_ALLOWED :: Scte35WebDeliveryAllowedFlag
pattern $bScte35WebDeliveryAllowedFlag_WEB_DELIVERY_ALLOWED :: Scte35WebDeliveryAllowedFlag
$mScte35WebDeliveryAllowedFlag_WEB_DELIVERY_ALLOWED :: forall r.
Scte35WebDeliveryAllowedFlag -> (Void# -> r) -> (Void# -> r) -> r
Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_ALLOWED = Scte35WebDeliveryAllowedFlag' "WEB_DELIVERY_ALLOWED"

pattern Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_NOT_ALLOWED :: Scte35WebDeliveryAllowedFlag
pattern $bScte35WebDeliveryAllowedFlag_WEB_DELIVERY_NOT_ALLOWED :: Scte35WebDeliveryAllowedFlag
$mScte35WebDeliveryAllowedFlag_WEB_DELIVERY_NOT_ALLOWED :: forall r.
Scte35WebDeliveryAllowedFlag -> (Void# -> r) -> (Void# -> r) -> r
Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_NOT_ALLOWED = Scte35WebDeliveryAllowedFlag' "WEB_DELIVERY_NOT_ALLOWED"

{-# COMPLETE
  Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_ALLOWED,
  Scte35WebDeliveryAllowedFlag_WEB_DELIVERY_NOT_ALLOWED,
  Scte35WebDeliveryAllowedFlag'
  #-}