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