{-# 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.AvailBlankingState
-- 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.AvailBlankingState
  ( AvailBlankingState
      ( ..,
        AvailBlankingState_DISABLED,
        AvailBlankingState_ENABLED
      ),
  )
where

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

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

pattern AvailBlankingState_DISABLED :: AvailBlankingState
pattern $bAvailBlankingState_DISABLED :: AvailBlankingState
$mAvailBlankingState_DISABLED :: forall {r}. AvailBlankingState -> ((# #) -> r) -> ((# #) -> r) -> r
AvailBlankingState_DISABLED = AvailBlankingState' "DISABLED"

pattern AvailBlankingState_ENABLED :: AvailBlankingState
pattern $bAvailBlankingState_ENABLED :: AvailBlankingState
$mAvailBlankingState_ENABLED :: forall {r}. AvailBlankingState -> ((# #) -> r) -> ((# #) -> r) -> r
AvailBlankingState_ENABLED = AvailBlankingState' "ENABLED"

{-# COMPLETE
  AvailBlankingState_DISABLED,
  AvailBlankingState_ENABLED,
  AvailBlankingState'
  #-}