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