{-# 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.HITAccessActions
-- 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.HITAccessActions
  ( HITAccessActions
      ( ..,
        HITAccessActions_Accept,
        HITAccessActions_DiscoverPreviewAndAccept,
        HITAccessActions_PreviewAndAccept
      ),
  )
where

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

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

pattern HITAccessActions_Accept :: HITAccessActions
pattern $bHITAccessActions_Accept :: HITAccessActions
$mHITAccessActions_Accept :: forall r. HITAccessActions -> (Void# -> r) -> (Void# -> r) -> r
HITAccessActions_Accept = HITAccessActions' "Accept"

pattern HITAccessActions_DiscoverPreviewAndAccept :: HITAccessActions
pattern $bHITAccessActions_DiscoverPreviewAndAccept :: HITAccessActions
$mHITAccessActions_DiscoverPreviewAndAccept :: forall r. HITAccessActions -> (Void# -> r) -> (Void# -> r) -> r
HITAccessActions_DiscoverPreviewAndAccept = HITAccessActions' "DiscoverPreviewAndAccept"

pattern HITAccessActions_PreviewAndAccept :: HITAccessActions
pattern $bHITAccessActions_PreviewAndAccept :: HITAccessActions
$mHITAccessActions_PreviewAndAccept :: forall r. HITAccessActions -> (Void# -> r) -> (Void# -> r) -> r
HITAccessActions_PreviewAndAccept = HITAccessActions' "PreviewAndAccept"

{-# COMPLETE
  HITAccessActions_Accept,
  HITAccessActions_DiscoverPreviewAndAccept,
  HITAccessActions_PreviewAndAccept,
  HITAccessActions'
  #-}