{-# 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.ReviewPolicyLevel
-- 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.ReviewPolicyLevel
  ( ReviewPolicyLevel
      ( ..,
        ReviewPolicyLevel_Assignment,
        ReviewPolicyLevel_HIT
      ),
  )
where

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

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

pattern ReviewPolicyLevel_Assignment :: ReviewPolicyLevel
pattern $bReviewPolicyLevel_Assignment :: ReviewPolicyLevel
$mReviewPolicyLevel_Assignment :: forall r. ReviewPolicyLevel -> (Void# -> r) -> (Void# -> r) -> r
ReviewPolicyLevel_Assignment = ReviewPolicyLevel' "Assignment"

pattern ReviewPolicyLevel_HIT :: ReviewPolicyLevel
pattern $bReviewPolicyLevel_HIT :: ReviewPolicyLevel
$mReviewPolicyLevel_HIT :: forall r. ReviewPolicyLevel -> (Void# -> r) -> (Void# -> r) -> r
ReviewPolicyLevel_HIT = ReviewPolicyLevel' "HIT"

{-# COMPLETE
  ReviewPolicyLevel_Assignment,
  ReviewPolicyLevel_HIT,
  ReviewPolicyLevel'
  #-}