{-# 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.MechanicalTurk.Types.HITStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MechanicalTurk.Types.HITStatus
  ( HITStatus
      ( ..,
        HITStatus_Assignable,
        HITStatus_Disposed,
        HITStatus_Reviewable,
        HITStatus_Reviewing,
        HITStatus_Unassignable
      ),
  )
where

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

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

pattern HITStatus_Assignable :: HITStatus
pattern $bHITStatus_Assignable :: HITStatus
$mHITStatus_Assignable :: forall r. HITStatus -> (Void# -> r) -> (Void# -> r) -> r
HITStatus_Assignable = HITStatus' "Assignable"

pattern HITStatus_Disposed :: HITStatus
pattern $bHITStatus_Disposed :: HITStatus
$mHITStatus_Disposed :: forall r. HITStatus -> (Void# -> r) -> (Void# -> r) -> r
HITStatus_Disposed = HITStatus' "Disposed"

pattern HITStatus_Reviewable :: HITStatus
pattern $bHITStatus_Reviewable :: HITStatus
$mHITStatus_Reviewable :: forall r. HITStatus -> (Void# -> r) -> (Void# -> r) -> r
HITStatus_Reviewable = HITStatus' "Reviewable"

pattern HITStatus_Reviewing :: HITStatus
pattern $bHITStatus_Reviewing :: HITStatus
$mHITStatus_Reviewing :: forall r. HITStatus -> (Void# -> r) -> (Void# -> r) -> r
HITStatus_Reviewing = HITStatus' "Reviewing"

pattern HITStatus_Unassignable :: HITStatus
pattern $bHITStatus_Unassignable :: HITStatus
$mHITStatus_Unassignable :: forall r. HITStatus -> (Void# -> r) -> (Void# -> r) -> r
HITStatus_Unassignable = HITStatus' "Unassignable"

{-# COMPLETE
  HITStatus_Assignable,
  HITStatus_Disposed,
  HITStatus_Reviewable,
  HITStatus_Reviewing,
  HITStatus_Unassignable,
  HITStatus'
  #-}