{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaConnect.Types.EntitlementStatus
( EntitlementStatus
( ..,
EntitlementStatus_DISABLED,
EntitlementStatus_ENABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype EntitlementStatus = EntitlementStatus'
{ EntitlementStatus -> Text
fromEntitlementStatus ::
Core.Text
}
deriving stock
( Int -> EntitlementStatus -> ShowS
[EntitlementStatus] -> ShowS
EntitlementStatus -> String
(Int -> EntitlementStatus -> ShowS)
-> (EntitlementStatus -> String)
-> ([EntitlementStatus] -> ShowS)
-> Show EntitlementStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EntitlementStatus] -> ShowS
$cshowList :: [EntitlementStatus] -> ShowS
show :: EntitlementStatus -> String
$cshow :: EntitlementStatus -> String
showsPrec :: Int -> EntitlementStatus -> ShowS
$cshowsPrec :: Int -> EntitlementStatus -> ShowS
Prelude.Show,
ReadPrec [EntitlementStatus]
ReadPrec EntitlementStatus
Int -> ReadS EntitlementStatus
ReadS [EntitlementStatus]
(Int -> ReadS EntitlementStatus)
-> ReadS [EntitlementStatus]
-> ReadPrec EntitlementStatus
-> ReadPrec [EntitlementStatus]
-> Read EntitlementStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EntitlementStatus]
$creadListPrec :: ReadPrec [EntitlementStatus]
readPrec :: ReadPrec EntitlementStatus
$creadPrec :: ReadPrec EntitlementStatus
readList :: ReadS [EntitlementStatus]
$creadList :: ReadS [EntitlementStatus]
readsPrec :: Int -> ReadS EntitlementStatus
$creadsPrec :: Int -> ReadS EntitlementStatus
Prelude.Read,
EntitlementStatus -> EntitlementStatus -> Bool
(EntitlementStatus -> EntitlementStatus -> Bool)
-> (EntitlementStatus -> EntitlementStatus -> Bool)
-> Eq EntitlementStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EntitlementStatus -> EntitlementStatus -> Bool
$c/= :: EntitlementStatus -> EntitlementStatus -> Bool
== :: EntitlementStatus -> EntitlementStatus -> Bool
$c== :: EntitlementStatus -> EntitlementStatus -> Bool
Prelude.Eq,
Eq EntitlementStatus
Eq EntitlementStatus
-> (EntitlementStatus -> EntitlementStatus -> Ordering)
-> (EntitlementStatus -> EntitlementStatus -> Bool)
-> (EntitlementStatus -> EntitlementStatus -> Bool)
-> (EntitlementStatus -> EntitlementStatus -> Bool)
-> (EntitlementStatus -> EntitlementStatus -> Bool)
-> (EntitlementStatus -> EntitlementStatus -> EntitlementStatus)
-> (EntitlementStatus -> EntitlementStatus -> EntitlementStatus)
-> Ord EntitlementStatus
EntitlementStatus -> EntitlementStatus -> Bool
EntitlementStatus -> EntitlementStatus -> Ordering
EntitlementStatus -> EntitlementStatus -> EntitlementStatus
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 :: EntitlementStatus -> EntitlementStatus -> EntitlementStatus
$cmin :: EntitlementStatus -> EntitlementStatus -> EntitlementStatus
max :: EntitlementStatus -> EntitlementStatus -> EntitlementStatus
$cmax :: EntitlementStatus -> EntitlementStatus -> EntitlementStatus
>= :: EntitlementStatus -> EntitlementStatus -> Bool
$c>= :: EntitlementStatus -> EntitlementStatus -> Bool
> :: EntitlementStatus -> EntitlementStatus -> Bool
$c> :: EntitlementStatus -> EntitlementStatus -> Bool
<= :: EntitlementStatus -> EntitlementStatus -> Bool
$c<= :: EntitlementStatus -> EntitlementStatus -> Bool
< :: EntitlementStatus -> EntitlementStatus -> Bool
$c< :: EntitlementStatus -> EntitlementStatus -> Bool
compare :: EntitlementStatus -> EntitlementStatus -> Ordering
$ccompare :: EntitlementStatus -> EntitlementStatus -> Ordering
$cp1Ord :: Eq EntitlementStatus
Prelude.Ord,
(forall x. EntitlementStatus -> Rep EntitlementStatus x)
-> (forall x. Rep EntitlementStatus x -> EntitlementStatus)
-> Generic EntitlementStatus
forall x. Rep EntitlementStatus x -> EntitlementStatus
forall x. EntitlementStatus -> Rep EntitlementStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EntitlementStatus x -> EntitlementStatus
$cfrom :: forall x. EntitlementStatus -> Rep EntitlementStatus x
Prelude.Generic
)
deriving newtype
( Int -> EntitlementStatus -> Int
EntitlementStatus -> Int
(Int -> EntitlementStatus -> Int)
-> (EntitlementStatus -> Int) -> Hashable EntitlementStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EntitlementStatus -> Int
$chash :: EntitlementStatus -> Int
hashWithSalt :: Int -> EntitlementStatus -> Int
$chashWithSalt :: Int -> EntitlementStatus -> Int
Prelude.Hashable,
EntitlementStatus -> ()
(EntitlementStatus -> ()) -> NFData EntitlementStatus
forall a. (a -> ()) -> NFData a
rnf :: EntitlementStatus -> ()
$crnf :: EntitlementStatus -> ()
Prelude.NFData,
Text -> Either String EntitlementStatus
(Text -> Either String EntitlementStatus)
-> FromText EntitlementStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EntitlementStatus
$cfromText :: Text -> Either String EntitlementStatus
Core.FromText,
EntitlementStatus -> Text
(EntitlementStatus -> Text) -> ToText EntitlementStatus
forall a. (a -> Text) -> ToText a
toText :: EntitlementStatus -> Text
$ctoText :: EntitlementStatus -> Text
Core.ToText,
EntitlementStatus -> ByteString
(EntitlementStatus -> ByteString) -> ToByteString EntitlementStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: EntitlementStatus -> ByteString
$ctoBS :: EntitlementStatus -> ByteString
Core.ToByteString,
EntitlementStatus -> ByteStringBuilder
(EntitlementStatus -> ByteStringBuilder) -> ToLog EntitlementStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EntitlementStatus -> ByteStringBuilder
$cbuild :: EntitlementStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> EntitlementStatus -> [Header]
(HeaderName -> EntitlementStatus -> [Header])
-> ToHeader EntitlementStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EntitlementStatus -> [Header]
$ctoHeader :: HeaderName -> EntitlementStatus -> [Header]
Core.ToHeader,
EntitlementStatus -> QueryString
(EntitlementStatus -> QueryString) -> ToQuery EntitlementStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EntitlementStatus -> QueryString
$ctoQuery :: EntitlementStatus -> QueryString
Core.ToQuery,
Value -> Parser [EntitlementStatus]
Value -> Parser EntitlementStatus
(Value -> Parser EntitlementStatus)
-> (Value -> Parser [EntitlementStatus])
-> FromJSON EntitlementStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EntitlementStatus]
$cparseJSONList :: Value -> Parser [EntitlementStatus]
parseJSON :: Value -> Parser EntitlementStatus
$cparseJSON :: Value -> Parser EntitlementStatus
Core.FromJSON,
FromJSONKeyFunction [EntitlementStatus]
FromJSONKeyFunction EntitlementStatus
FromJSONKeyFunction EntitlementStatus
-> FromJSONKeyFunction [EntitlementStatus]
-> FromJSONKey EntitlementStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EntitlementStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [EntitlementStatus]
fromJSONKey :: FromJSONKeyFunction EntitlementStatus
$cfromJSONKey :: FromJSONKeyFunction EntitlementStatus
Core.FromJSONKey,
[EntitlementStatus] -> Encoding
[EntitlementStatus] -> Value
EntitlementStatus -> Encoding
EntitlementStatus -> Value
(EntitlementStatus -> Value)
-> (EntitlementStatus -> Encoding)
-> ([EntitlementStatus] -> Value)
-> ([EntitlementStatus] -> Encoding)
-> ToJSON EntitlementStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EntitlementStatus] -> Encoding
$ctoEncodingList :: [EntitlementStatus] -> Encoding
toJSONList :: [EntitlementStatus] -> Value
$ctoJSONList :: [EntitlementStatus] -> Value
toEncoding :: EntitlementStatus -> Encoding
$ctoEncoding :: EntitlementStatus -> Encoding
toJSON :: EntitlementStatus -> Value
$ctoJSON :: EntitlementStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [EntitlementStatus]
ToJSONKeyFunction EntitlementStatus
ToJSONKeyFunction EntitlementStatus
-> ToJSONKeyFunction [EntitlementStatus]
-> ToJSONKey EntitlementStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EntitlementStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [EntitlementStatus]
toJSONKey :: ToJSONKeyFunction EntitlementStatus
$ctoJSONKey :: ToJSONKeyFunction EntitlementStatus
Core.ToJSONKey,
[Node] -> Either String EntitlementStatus
([Node] -> Either String EntitlementStatus)
-> FromXML EntitlementStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EntitlementStatus
$cparseXML :: [Node] -> Either String EntitlementStatus
Core.FromXML,
EntitlementStatus -> XML
(EntitlementStatus -> XML) -> ToXML EntitlementStatus
forall a. (a -> XML) -> ToXML a
toXML :: EntitlementStatus -> XML
$ctoXML :: EntitlementStatus -> XML
Core.ToXML
)
pattern EntitlementStatus_DISABLED :: EntitlementStatus
pattern $bEntitlementStatus_DISABLED :: EntitlementStatus
$mEntitlementStatus_DISABLED :: forall r. EntitlementStatus -> (Void# -> r) -> (Void# -> r) -> r
EntitlementStatus_DISABLED = EntitlementStatus' "DISABLED"
pattern EntitlementStatus_ENABLED :: EntitlementStatus
pattern $bEntitlementStatus_ENABLED :: EntitlementStatus
$mEntitlementStatus_ENABLED :: forall r. EntitlementStatus -> (Void# -> r) -> (Void# -> r) -> r
EntitlementStatus_ENABLED = EntitlementStatus' "ENABLED"
{-# COMPLETE
EntitlementStatus_DISABLED,
EntitlementStatus_ENABLED,
EntitlementStatus'
#-}