{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.AvailBlankingState
( AvailBlankingState
( ..,
AvailBlankingState_DISABLED,
AvailBlankingState_ENABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AvailBlankingState = AvailBlankingState'
{ AvailBlankingState -> Text
fromAvailBlankingState ::
Core.Text
}
deriving stock
( Int -> AvailBlankingState -> ShowS
[AvailBlankingState] -> ShowS
AvailBlankingState -> String
(Int -> AvailBlankingState -> ShowS)
-> (AvailBlankingState -> String)
-> ([AvailBlankingState] -> ShowS)
-> Show AvailBlankingState
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]
(Int -> ReadS AvailBlankingState)
-> ReadS [AvailBlankingState]
-> ReadPrec AvailBlankingState
-> ReadPrec [AvailBlankingState]
-> Read 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
(AvailBlankingState -> AvailBlankingState -> Bool)
-> (AvailBlankingState -> AvailBlankingState -> Bool)
-> Eq AvailBlankingState
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
Eq AvailBlankingState
-> (AvailBlankingState -> AvailBlankingState -> Ordering)
-> (AvailBlankingState -> AvailBlankingState -> Bool)
-> (AvailBlankingState -> AvailBlankingState -> Bool)
-> (AvailBlankingState -> AvailBlankingState -> Bool)
-> (AvailBlankingState -> AvailBlankingState -> Bool)
-> (AvailBlankingState -> AvailBlankingState -> AvailBlankingState)
-> (AvailBlankingState -> AvailBlankingState -> AvailBlankingState)
-> Ord 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
$cp1Ord :: Eq AvailBlankingState
Prelude.Ord,
(forall x. AvailBlankingState -> Rep AvailBlankingState x)
-> (forall x. Rep AvailBlankingState x -> AvailBlankingState)
-> Generic AvailBlankingState
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
( Int -> AvailBlankingState -> Int
AvailBlankingState -> Int
(Int -> AvailBlankingState -> Int)
-> (AvailBlankingState -> Int) -> Hashable AvailBlankingState
forall 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 -> ()
(AvailBlankingState -> ()) -> NFData AvailBlankingState
forall a. (a -> ()) -> NFData a
rnf :: AvailBlankingState -> ()
$crnf :: AvailBlankingState -> ()
Prelude.NFData,
Text -> Either String AvailBlankingState
(Text -> Either String AvailBlankingState)
-> FromText AvailBlankingState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AvailBlankingState
$cfromText :: Text -> Either String AvailBlankingState
Core.FromText,
AvailBlankingState -> Text
(AvailBlankingState -> Text) -> ToText AvailBlankingState
forall a. (a -> Text) -> ToText a
toText :: AvailBlankingState -> Text
$ctoText :: AvailBlankingState -> Text
Core.ToText,
AvailBlankingState -> ByteString
(AvailBlankingState -> ByteString)
-> ToByteString AvailBlankingState
forall a. (a -> ByteString) -> ToByteString a
toBS :: AvailBlankingState -> ByteString
$ctoBS :: AvailBlankingState -> ByteString
Core.ToByteString,
AvailBlankingState -> ByteStringBuilder
(AvailBlankingState -> ByteStringBuilder)
-> ToLog AvailBlankingState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AvailBlankingState -> ByteStringBuilder
$cbuild :: AvailBlankingState -> ByteStringBuilder
Core.ToLog,
HeaderName -> AvailBlankingState -> [Header]
(HeaderName -> AvailBlankingState -> [Header])
-> ToHeader AvailBlankingState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AvailBlankingState -> [Header]
$ctoHeader :: HeaderName -> AvailBlankingState -> [Header]
Core.ToHeader,
AvailBlankingState -> QueryString
(AvailBlankingState -> QueryString) -> ToQuery AvailBlankingState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AvailBlankingState -> QueryString
$ctoQuery :: AvailBlankingState -> QueryString
Core.ToQuery,
Value -> Parser [AvailBlankingState]
Value -> Parser AvailBlankingState
(Value -> Parser AvailBlankingState)
-> (Value -> Parser [AvailBlankingState])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [AvailBlankingState]
FromJSONKeyFunction AvailBlankingState
FromJSONKeyFunction AvailBlankingState
-> FromJSONKeyFunction [AvailBlankingState]
-> FromJSONKey AvailBlankingState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AvailBlankingState]
$cfromJSONKeyList :: FromJSONKeyFunction [AvailBlankingState]
fromJSONKey :: FromJSONKeyFunction AvailBlankingState
$cfromJSONKey :: FromJSONKeyFunction AvailBlankingState
Core.FromJSONKey,
[AvailBlankingState] -> Encoding
[AvailBlankingState] -> Value
AvailBlankingState -> Encoding
AvailBlankingState -> Value
(AvailBlankingState -> Value)
-> (AvailBlankingState -> Encoding)
-> ([AvailBlankingState] -> Value)
-> ([AvailBlankingState] -> Encoding)
-> ToJSON AvailBlankingState
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
Core.ToJSON,
ToJSONKeyFunction [AvailBlankingState]
ToJSONKeyFunction AvailBlankingState
ToJSONKeyFunction AvailBlankingState
-> ToJSONKeyFunction [AvailBlankingState]
-> ToJSONKey AvailBlankingState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AvailBlankingState]
$ctoJSONKeyList :: ToJSONKeyFunction [AvailBlankingState]
toJSONKey :: ToJSONKeyFunction AvailBlankingState
$ctoJSONKey :: ToJSONKeyFunction AvailBlankingState
Core.ToJSONKey,
[Node] -> Either String AvailBlankingState
([Node] -> Either String AvailBlankingState)
-> FromXML AvailBlankingState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AvailBlankingState
$cparseXML :: [Node] -> Either String AvailBlankingState
Core.FromXML,
AvailBlankingState -> XML
(AvailBlankingState -> XML) -> ToXML AvailBlankingState
forall a. (a -> XML) -> ToXML a
toXML :: AvailBlankingState -> XML
$ctoXML :: AvailBlankingState -> XML
Core.ToXML
)
pattern AvailBlankingState_DISABLED :: AvailBlankingState
pattern $bAvailBlankingState_DISABLED :: AvailBlankingState
$mAvailBlankingState_DISABLED :: forall r. AvailBlankingState -> (Void# -> r) -> (Void# -> r) -> r
AvailBlankingState_DISABLED = AvailBlankingState' "DISABLED"
pattern AvailBlankingState_ENABLED :: AvailBlankingState
pattern $bAvailBlankingState_ENABLED :: AvailBlankingState
$mAvailBlankingState_ENABLED :: forall r. AvailBlankingState -> (Void# -> r) -> (Void# -> r) -> r
AvailBlankingState_ENABLED = AvailBlankingState' "ENABLED"
{-# COMPLETE
AvailBlankingState_DISABLED,
AvailBlankingState_ENABLED,
AvailBlankingState'
#-}