{-# 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.HITReviewStatus
-- 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.HITReviewStatus
  ( HITReviewStatus
      ( ..,
        HITReviewStatus_MarkedForReview,
        HITReviewStatus_NotReviewed,
        HITReviewStatus_ReviewedAppropriate,
        HITReviewStatus_ReviewedInappropriate
      ),
  )
where

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

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

pattern HITReviewStatus_MarkedForReview :: HITReviewStatus
pattern $bHITReviewStatus_MarkedForReview :: HITReviewStatus
$mHITReviewStatus_MarkedForReview :: forall r. HITReviewStatus -> (Void# -> r) -> (Void# -> r) -> r
HITReviewStatus_MarkedForReview = HITReviewStatus' "MarkedForReview"

pattern HITReviewStatus_NotReviewed :: HITReviewStatus
pattern $bHITReviewStatus_NotReviewed :: HITReviewStatus
$mHITReviewStatus_NotReviewed :: forall r. HITReviewStatus -> (Void# -> r) -> (Void# -> r) -> r
HITReviewStatus_NotReviewed = HITReviewStatus' "NotReviewed"

pattern HITReviewStatus_ReviewedAppropriate :: HITReviewStatus
pattern $bHITReviewStatus_ReviewedAppropriate :: HITReviewStatus
$mHITReviewStatus_ReviewedAppropriate :: forall r. HITReviewStatus -> (Void# -> r) -> (Void# -> r) -> r
HITReviewStatus_ReviewedAppropriate = HITReviewStatus' "ReviewedAppropriate"

pattern HITReviewStatus_ReviewedInappropriate :: HITReviewStatus
pattern $bHITReviewStatus_ReviewedInappropriate :: HITReviewStatus
$mHITReviewStatus_ReviewedInappropriate :: forall r. HITReviewStatus -> (Void# -> r) -> (Void# -> r) -> r
HITReviewStatus_ReviewedInappropriate = HITReviewStatus' "ReviewedInappropriate"

{-# COMPLETE
  HITReviewStatus_MarkedForReview,
  HITReviewStatus_NotReviewed,
  HITReviewStatus_ReviewedAppropriate,
  HITReviewStatus_ReviewedInappropriate,
  HITReviewStatus'
  #-}