{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MechanicalTurk.Types.QualificationType where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MechanicalTurk.Types.QualificationTypeStatus
import qualified Amazonka.Prelude as Prelude
data QualificationType = QualificationType'
{
QualificationType -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
QualificationType -> Maybe Integer
testDurationInSeconds :: Prelude.Maybe Prelude.Integer,
QualificationType -> Maybe QualificationTypeStatus
qualificationTypeStatus :: Prelude.Maybe QualificationTypeStatus,
QualificationType -> Maybe Text
answerKey :: Prelude.Maybe Prelude.Text,
QualificationType -> Maybe Text
test :: Prelude.Maybe Prelude.Text,
QualificationType -> Maybe Text
qualificationTypeId :: Prelude.Maybe Prelude.Text,
QualificationType -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
QualificationType -> Maybe Text
keywords :: Prelude.Maybe Prelude.Text,
QualificationType -> Maybe Bool
autoGranted :: Prelude.Maybe Prelude.Bool,
QualificationType -> Maybe Int
autoGrantedValue :: Prelude.Maybe Prelude.Int,
QualificationType -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
QualificationType -> Maybe Bool
isRequestable :: Prelude.Maybe Prelude.Bool,
QualificationType -> Maybe Integer
retryDelayInSeconds :: Prelude.Maybe Prelude.Integer
}
deriving (QualificationType -> QualificationType -> Bool
(QualificationType -> QualificationType -> Bool)
-> (QualificationType -> QualificationType -> Bool)
-> Eq QualificationType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QualificationType -> QualificationType -> Bool
$c/= :: QualificationType -> QualificationType -> Bool
== :: QualificationType -> QualificationType -> Bool
$c== :: QualificationType -> QualificationType -> Bool
Prelude.Eq, ReadPrec [QualificationType]
ReadPrec QualificationType
Int -> ReadS QualificationType
ReadS [QualificationType]
(Int -> ReadS QualificationType)
-> ReadS [QualificationType]
-> ReadPrec QualificationType
-> ReadPrec [QualificationType]
-> Read QualificationType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [QualificationType]
$creadListPrec :: ReadPrec [QualificationType]
readPrec :: ReadPrec QualificationType
$creadPrec :: ReadPrec QualificationType
readList :: ReadS [QualificationType]
$creadList :: ReadS [QualificationType]
readsPrec :: Int -> ReadS QualificationType
$creadsPrec :: Int -> ReadS QualificationType
Prelude.Read, Int -> QualificationType -> ShowS
[QualificationType] -> ShowS
QualificationType -> String
(Int -> QualificationType -> ShowS)
-> (QualificationType -> String)
-> ([QualificationType] -> ShowS)
-> Show QualificationType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QualificationType] -> ShowS
$cshowList :: [QualificationType] -> ShowS
show :: QualificationType -> String
$cshow :: QualificationType -> String
showsPrec :: Int -> QualificationType -> ShowS
$cshowsPrec :: Int -> QualificationType -> ShowS
Prelude.Show, (forall x. QualificationType -> Rep QualificationType x)
-> (forall x. Rep QualificationType x -> QualificationType)
-> Generic QualificationType
forall x. Rep QualificationType x -> QualificationType
forall x. QualificationType -> Rep QualificationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QualificationType x -> QualificationType
$cfrom :: forall x. QualificationType -> Rep QualificationType x
Prelude.Generic)
newQualificationType ::
QualificationType
newQualificationType :: QualificationType
newQualificationType =
QualificationType' :: Maybe POSIX
-> Maybe Integer
-> Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType
QualificationType'
{ $sel:creationTime:QualificationType' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:testDurationInSeconds:QualificationType' :: Maybe Integer
testDurationInSeconds = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:qualificationTypeStatus:QualificationType' :: Maybe QualificationTypeStatus
qualificationTypeStatus = Maybe QualificationTypeStatus
forall a. Maybe a
Prelude.Nothing,
$sel:answerKey:QualificationType' :: Maybe Text
answerKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:test:QualificationType' :: Maybe Text
test = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:qualificationTypeId:QualificationType' :: Maybe Text
qualificationTypeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:QualificationType' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:keywords:QualificationType' :: Maybe Text
keywords = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoGranted:QualificationType' :: Maybe Bool
autoGranted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:autoGrantedValue:QualificationType' :: Maybe Int
autoGrantedValue = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:description:QualificationType' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isRequestable:QualificationType' :: Maybe Bool
isRequestable = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:retryDelayInSeconds:QualificationType' :: Maybe Integer
retryDelayInSeconds = Maybe Integer
forall a. Maybe a
Prelude.Nothing
}
qualificationType_creationTime :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.UTCTime)
qualificationType_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> QualificationType -> f QualificationType
qualificationType_creationTime = (QualificationType -> Maybe POSIX)
-> (QualificationType -> Maybe POSIX -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:QualificationType' :: QualificationType -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: QualificationType
s@QualificationType' {} Maybe POSIX
a -> QualificationType
s {$sel:creationTime:QualificationType' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: QualificationType) ((Maybe POSIX -> f (Maybe POSIX))
-> QualificationType -> f QualificationType)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> QualificationType
-> f QualificationType
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
qualificationType_testDurationInSeconds :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Integer)
qualificationType_testDurationInSeconds :: (Maybe Integer -> f (Maybe Integer))
-> QualificationType -> f QualificationType
qualificationType_testDurationInSeconds = (QualificationType -> Maybe Integer)
-> (QualificationType -> Maybe Integer -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Integer
testDurationInSeconds :: Maybe Integer
$sel:testDurationInSeconds:QualificationType' :: QualificationType -> Maybe Integer
testDurationInSeconds} -> Maybe Integer
testDurationInSeconds) (\s :: QualificationType
s@QualificationType' {} Maybe Integer
a -> QualificationType
s {$sel:testDurationInSeconds:QualificationType' :: Maybe Integer
testDurationInSeconds = Maybe Integer
a} :: QualificationType)
qualificationType_qualificationTypeStatus :: Lens.Lens' QualificationType (Prelude.Maybe QualificationTypeStatus)
qualificationType_qualificationTypeStatus :: (Maybe QualificationTypeStatus
-> f (Maybe QualificationTypeStatus))
-> QualificationType -> f QualificationType
qualificationType_qualificationTypeStatus = (QualificationType -> Maybe QualificationTypeStatus)
-> (QualificationType
-> Maybe QualificationTypeStatus -> QualificationType)
-> Lens
QualificationType
QualificationType
(Maybe QualificationTypeStatus)
(Maybe QualificationTypeStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe QualificationTypeStatus
qualificationTypeStatus :: Maybe QualificationTypeStatus
$sel:qualificationTypeStatus:QualificationType' :: QualificationType -> Maybe QualificationTypeStatus
qualificationTypeStatus} -> Maybe QualificationTypeStatus
qualificationTypeStatus) (\s :: QualificationType
s@QualificationType' {} Maybe QualificationTypeStatus
a -> QualificationType
s {$sel:qualificationTypeStatus:QualificationType' :: Maybe QualificationTypeStatus
qualificationTypeStatus = Maybe QualificationTypeStatus
a} :: QualificationType)
qualificationType_answerKey :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Text)
qualificationType_answerKey :: (Maybe Text -> f (Maybe Text))
-> QualificationType -> f QualificationType
qualificationType_answerKey = (QualificationType -> Maybe Text)
-> (QualificationType -> Maybe Text -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Text
answerKey :: Maybe Text
$sel:answerKey:QualificationType' :: QualificationType -> Maybe Text
answerKey} -> Maybe Text
answerKey) (\s :: QualificationType
s@QualificationType' {} Maybe Text
a -> QualificationType
s {$sel:answerKey:QualificationType' :: Maybe Text
answerKey = Maybe Text
a} :: QualificationType)
qualificationType_test :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Text)
qualificationType_test :: (Maybe Text -> f (Maybe Text))
-> QualificationType -> f QualificationType
qualificationType_test = (QualificationType -> Maybe Text)
-> (QualificationType -> Maybe Text -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Text
test :: Maybe Text
$sel:test:QualificationType' :: QualificationType -> Maybe Text
test} -> Maybe Text
test) (\s :: QualificationType
s@QualificationType' {} Maybe Text
a -> QualificationType
s {$sel:test:QualificationType' :: Maybe Text
test = Maybe Text
a} :: QualificationType)
qualificationType_qualificationTypeId :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Text)
qualificationType_qualificationTypeId :: (Maybe Text -> f (Maybe Text))
-> QualificationType -> f QualificationType
qualificationType_qualificationTypeId = (QualificationType -> Maybe Text)
-> (QualificationType -> Maybe Text -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Text
qualificationTypeId :: Maybe Text
$sel:qualificationTypeId:QualificationType' :: QualificationType -> Maybe Text
qualificationTypeId} -> Maybe Text
qualificationTypeId) (\s :: QualificationType
s@QualificationType' {} Maybe Text
a -> QualificationType
s {$sel:qualificationTypeId:QualificationType' :: Maybe Text
qualificationTypeId = Maybe Text
a} :: QualificationType)
qualificationType_name :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Text)
qualificationType_name :: (Maybe Text -> f (Maybe Text))
-> QualificationType -> f QualificationType
qualificationType_name = (QualificationType -> Maybe Text)
-> (QualificationType -> Maybe Text -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Text
name :: Maybe Text
$sel:name:QualificationType' :: QualificationType -> Maybe Text
name} -> Maybe Text
name) (\s :: QualificationType
s@QualificationType' {} Maybe Text
a -> QualificationType
s {$sel:name:QualificationType' :: Maybe Text
name = Maybe Text
a} :: QualificationType)
qualificationType_keywords :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Text)
qualificationType_keywords :: (Maybe Text -> f (Maybe Text))
-> QualificationType -> f QualificationType
qualificationType_keywords = (QualificationType -> Maybe Text)
-> (QualificationType -> Maybe Text -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Text
keywords :: Maybe Text
$sel:keywords:QualificationType' :: QualificationType -> Maybe Text
keywords} -> Maybe Text
keywords) (\s :: QualificationType
s@QualificationType' {} Maybe Text
a -> QualificationType
s {$sel:keywords:QualificationType' :: Maybe Text
keywords = Maybe Text
a} :: QualificationType)
qualificationType_autoGranted :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Bool)
qualificationType_autoGranted :: (Maybe Bool -> f (Maybe Bool))
-> QualificationType -> f QualificationType
qualificationType_autoGranted = (QualificationType -> Maybe Bool)
-> (QualificationType -> Maybe Bool -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Bool
autoGranted :: Maybe Bool
$sel:autoGranted:QualificationType' :: QualificationType -> Maybe Bool
autoGranted} -> Maybe Bool
autoGranted) (\s :: QualificationType
s@QualificationType' {} Maybe Bool
a -> QualificationType
s {$sel:autoGranted:QualificationType' :: Maybe Bool
autoGranted = Maybe Bool
a} :: QualificationType)
qualificationType_autoGrantedValue :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Int)
qualificationType_autoGrantedValue :: (Maybe Int -> f (Maybe Int))
-> QualificationType -> f QualificationType
qualificationType_autoGrantedValue = (QualificationType -> Maybe Int)
-> (QualificationType -> Maybe Int -> QualificationType)
-> Lens QualificationType QualificationType (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Int
autoGrantedValue :: Maybe Int
$sel:autoGrantedValue:QualificationType' :: QualificationType -> Maybe Int
autoGrantedValue} -> Maybe Int
autoGrantedValue) (\s :: QualificationType
s@QualificationType' {} Maybe Int
a -> QualificationType
s {$sel:autoGrantedValue:QualificationType' :: Maybe Int
autoGrantedValue = Maybe Int
a} :: QualificationType)
qualificationType_description :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Text)
qualificationType_description :: (Maybe Text -> f (Maybe Text))
-> QualificationType -> f QualificationType
qualificationType_description = (QualificationType -> Maybe Text)
-> (QualificationType -> Maybe Text -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Text
description :: Maybe Text
$sel:description:QualificationType' :: QualificationType -> Maybe Text
description} -> Maybe Text
description) (\s :: QualificationType
s@QualificationType' {} Maybe Text
a -> QualificationType
s {$sel:description:QualificationType' :: Maybe Text
description = Maybe Text
a} :: QualificationType)
qualificationType_isRequestable :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Bool)
qualificationType_isRequestable :: (Maybe Bool -> f (Maybe Bool))
-> QualificationType -> f QualificationType
qualificationType_isRequestable = (QualificationType -> Maybe Bool)
-> (QualificationType -> Maybe Bool -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Bool
isRequestable :: Maybe Bool
$sel:isRequestable:QualificationType' :: QualificationType -> Maybe Bool
isRequestable} -> Maybe Bool
isRequestable) (\s :: QualificationType
s@QualificationType' {} Maybe Bool
a -> QualificationType
s {$sel:isRequestable:QualificationType' :: Maybe Bool
isRequestable = Maybe Bool
a} :: QualificationType)
qualificationType_retryDelayInSeconds :: Lens.Lens' QualificationType (Prelude.Maybe Prelude.Integer)
qualificationType_retryDelayInSeconds :: (Maybe Integer -> f (Maybe Integer))
-> QualificationType -> f QualificationType
qualificationType_retryDelayInSeconds = (QualificationType -> Maybe Integer)
-> (QualificationType -> Maybe Integer -> QualificationType)
-> Lens
QualificationType QualificationType (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QualificationType' {Maybe Integer
retryDelayInSeconds :: Maybe Integer
$sel:retryDelayInSeconds:QualificationType' :: QualificationType -> Maybe Integer
retryDelayInSeconds} -> Maybe Integer
retryDelayInSeconds) (\s :: QualificationType
s@QualificationType' {} Maybe Integer
a -> QualificationType
s {$sel:retryDelayInSeconds:QualificationType' :: Maybe Integer
retryDelayInSeconds = Maybe Integer
a} :: QualificationType)
instance Core.FromJSON QualificationType where
parseJSON :: Value -> Parser QualificationType
parseJSON =
String
-> (Object -> Parser QualificationType)
-> Value
-> Parser QualificationType
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"QualificationType"
( \Object
x ->
Maybe POSIX
-> Maybe Integer
-> Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType
QualificationType'
(Maybe POSIX
-> Maybe Integer
-> Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Integer
-> Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationTime")
Parser
(Maybe Integer
-> Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe Integer)
-> Parser
(Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TestDurationInSeconds")
Parser
(Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe QualificationTypeStatus)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe QualificationTypeStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"QualificationTypeStatus")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AnswerKey")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Test")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"QualificationTypeId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Keywords")
Parser
(Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> QualificationType)
-> Parser (Maybe Bool)
-> Parser
(Maybe Int
-> Maybe Text -> Maybe Bool -> Maybe Integer -> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AutoGranted")
Parser
(Maybe Int
-> Maybe Text -> Maybe Bool -> Maybe Integer -> QualificationType)
-> Parser (Maybe Int)
-> Parser
(Maybe Text -> Maybe Bool -> Maybe Integer -> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AutoGrantedValue")
Parser
(Maybe Text -> Maybe Bool -> Maybe Integer -> QualificationType)
-> Parser (Maybe Text)
-> Parser (Maybe Bool -> Maybe Integer -> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Description")
Parser (Maybe Bool -> Maybe Integer -> QualificationType)
-> Parser (Maybe Bool)
-> Parser (Maybe Integer -> QualificationType)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IsRequestable")
Parser (Maybe Integer -> QualificationType)
-> Parser (Maybe Integer) -> Parser QualificationType
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RetryDelayInSeconds")
)
instance Prelude.Hashable QualificationType
instance Prelude.NFData QualificationType