{-# 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.BlackoutSlateState
-- 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.BlackoutSlateState
  ( BlackoutSlateState
      ( ..,
        BlackoutSlateState_DISABLED,
        BlackoutSlateState_ENABLED
      ),
  )
where

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

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

pattern BlackoutSlateState_DISABLED :: BlackoutSlateState
pattern $bBlackoutSlateState_DISABLED :: BlackoutSlateState
$mBlackoutSlateState_DISABLED :: forall r. BlackoutSlateState -> (Void# -> r) -> (Void# -> r) -> r
BlackoutSlateState_DISABLED = BlackoutSlateState' "DISABLED"

pattern BlackoutSlateState_ENABLED :: BlackoutSlateState
pattern $bBlackoutSlateState_ENABLED :: BlackoutSlateState
$mBlackoutSlateState_ENABLED :: forall r. BlackoutSlateState -> (Void# -> r) -> (Void# -> r) -> r
BlackoutSlateState_ENABLED = BlackoutSlateState' "ENABLED"

{-# COMPLETE
  BlackoutSlateState_DISABLED,
  BlackoutSlateState_ENABLED,
  BlackoutSlateState'
  #-}