{-# 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.Scte35NoRegionalBlackoutFlag
-- 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.Scte35NoRegionalBlackoutFlag
  ( Scte35NoRegionalBlackoutFlag
      ( ..,
        Scte35NoRegionalBlackoutFlag_NO_REGIONAL_BLACKOUT,
        Scte35NoRegionalBlackoutFlag_REGIONAL_BLACKOUT
      ),
  )
where

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

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

pattern Scte35NoRegionalBlackoutFlag_NO_REGIONAL_BLACKOUT :: Scte35NoRegionalBlackoutFlag
pattern $bScte35NoRegionalBlackoutFlag_NO_REGIONAL_BLACKOUT :: Scte35NoRegionalBlackoutFlag
$mScte35NoRegionalBlackoutFlag_NO_REGIONAL_BLACKOUT :: forall {r}.
Scte35NoRegionalBlackoutFlag -> ((# #) -> r) -> ((# #) -> r) -> r
Scte35NoRegionalBlackoutFlag_NO_REGIONAL_BLACKOUT = Scte35NoRegionalBlackoutFlag' "NO_REGIONAL_BLACKOUT"

pattern Scte35NoRegionalBlackoutFlag_REGIONAL_BLACKOUT :: Scte35NoRegionalBlackoutFlag
pattern $bScte35NoRegionalBlackoutFlag_REGIONAL_BLACKOUT :: Scte35NoRegionalBlackoutFlag
$mScte35NoRegionalBlackoutFlag_REGIONAL_BLACKOUT :: forall {r}.
Scte35NoRegionalBlackoutFlag -> ((# #) -> r) -> ((# #) -> r) -> r
Scte35NoRegionalBlackoutFlag_REGIONAL_BLACKOUT = Scte35NoRegionalBlackoutFlag' "REGIONAL_BLACKOUT"

{-# COMPLETE
  Scte35NoRegionalBlackoutFlag_NO_REGIONAL_BLACKOUT,
  Scte35NoRegionalBlackoutFlag_REGIONAL_BLACKOUT,
  Scte35NoRegionalBlackoutFlag'
  #-}