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

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

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

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

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

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