{-# 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.BlackoutSlateNetworkEndBlackout
-- 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.BlackoutSlateNetworkEndBlackout
  ( BlackoutSlateNetworkEndBlackout
      ( ..,
        BlackoutSlateNetworkEndBlackout_DISABLED,
        BlackoutSlateNetworkEndBlackout_ENABLED
      ),
  )
where

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

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

pattern BlackoutSlateNetworkEndBlackout_DISABLED :: BlackoutSlateNetworkEndBlackout
pattern $bBlackoutSlateNetworkEndBlackout_DISABLED :: BlackoutSlateNetworkEndBlackout
$mBlackoutSlateNetworkEndBlackout_DISABLED :: forall {r}.
BlackoutSlateNetworkEndBlackout
-> ((# #) -> r) -> ((# #) -> r) -> r
BlackoutSlateNetworkEndBlackout_DISABLED = BlackoutSlateNetworkEndBlackout' "DISABLED"

pattern BlackoutSlateNetworkEndBlackout_ENABLED :: BlackoutSlateNetworkEndBlackout
pattern $bBlackoutSlateNetworkEndBlackout_ENABLED :: BlackoutSlateNetworkEndBlackout
$mBlackoutSlateNetworkEndBlackout_ENABLED :: forall {r}.
BlackoutSlateNetworkEndBlackout
-> ((# #) -> r) -> ((# #) -> r) -> r
BlackoutSlateNetworkEndBlackout_ENABLED = BlackoutSlateNetworkEndBlackout' "ENABLED"

{-# COMPLETE
  BlackoutSlateNetworkEndBlackout_DISABLED,
  BlackoutSlateNetworkEndBlackout_ENABLED,
  BlackoutSlateNetworkEndBlackout'
  #-}