{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MechanicalTurk.UpdateQualificationType
(
UpdateQualificationType (..),
newUpdateQualificationType,
updateQualificationType_testDurationInSeconds,
updateQualificationType_qualificationTypeStatus,
updateQualificationType_answerKey,
updateQualificationType_test,
updateQualificationType_autoGranted,
updateQualificationType_autoGrantedValue,
updateQualificationType_description,
updateQualificationType_retryDelayInSeconds,
updateQualificationType_qualificationTypeId,
UpdateQualificationTypeResponse (..),
newUpdateQualificationTypeResponse,
updateQualificationTypeResponse_qualificationType,
updateQualificationTypeResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MechanicalTurk.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateQualificationType = UpdateQualificationType'
{
UpdateQualificationType -> Maybe Integer
testDurationInSeconds :: Prelude.Maybe Prelude.Integer,
UpdateQualificationType -> Maybe QualificationTypeStatus
qualificationTypeStatus :: Prelude.Maybe QualificationTypeStatus,
UpdateQualificationType -> Maybe Text
answerKey :: Prelude.Maybe Prelude.Text,
UpdateQualificationType -> Maybe Text
test :: Prelude.Maybe Prelude.Text,
UpdateQualificationType -> Maybe Bool
autoGranted :: Prelude.Maybe Prelude.Bool,
UpdateQualificationType -> Maybe Int
autoGrantedValue :: Prelude.Maybe Prelude.Int,
UpdateQualificationType -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateQualificationType -> Maybe Integer
retryDelayInSeconds :: Prelude.Maybe Prelude.Integer,
UpdateQualificationType -> Text
qualificationTypeId :: Prelude.Text
}
deriving (UpdateQualificationType -> UpdateQualificationType -> Bool
(UpdateQualificationType -> UpdateQualificationType -> Bool)
-> (UpdateQualificationType -> UpdateQualificationType -> Bool)
-> Eq UpdateQualificationType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateQualificationType -> UpdateQualificationType -> Bool
$c/= :: UpdateQualificationType -> UpdateQualificationType -> Bool
== :: UpdateQualificationType -> UpdateQualificationType -> Bool
$c== :: UpdateQualificationType -> UpdateQualificationType -> Bool
Prelude.Eq, ReadPrec [UpdateQualificationType]
ReadPrec UpdateQualificationType
Int -> ReadS UpdateQualificationType
ReadS [UpdateQualificationType]
(Int -> ReadS UpdateQualificationType)
-> ReadS [UpdateQualificationType]
-> ReadPrec UpdateQualificationType
-> ReadPrec [UpdateQualificationType]
-> Read UpdateQualificationType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateQualificationType]
$creadListPrec :: ReadPrec [UpdateQualificationType]
readPrec :: ReadPrec UpdateQualificationType
$creadPrec :: ReadPrec UpdateQualificationType
readList :: ReadS [UpdateQualificationType]
$creadList :: ReadS [UpdateQualificationType]
readsPrec :: Int -> ReadS UpdateQualificationType
$creadsPrec :: Int -> ReadS UpdateQualificationType
Prelude.Read, Int -> UpdateQualificationType -> ShowS
[UpdateQualificationType] -> ShowS
UpdateQualificationType -> String
(Int -> UpdateQualificationType -> ShowS)
-> (UpdateQualificationType -> String)
-> ([UpdateQualificationType] -> ShowS)
-> Show UpdateQualificationType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateQualificationType] -> ShowS
$cshowList :: [UpdateQualificationType] -> ShowS
show :: UpdateQualificationType -> String
$cshow :: UpdateQualificationType -> String
showsPrec :: Int -> UpdateQualificationType -> ShowS
$cshowsPrec :: Int -> UpdateQualificationType -> ShowS
Prelude.Show, (forall x.
UpdateQualificationType -> Rep UpdateQualificationType x)
-> (forall x.
Rep UpdateQualificationType x -> UpdateQualificationType)
-> Generic UpdateQualificationType
forall x. Rep UpdateQualificationType x -> UpdateQualificationType
forall x. UpdateQualificationType -> Rep UpdateQualificationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateQualificationType x -> UpdateQualificationType
$cfrom :: forall x. UpdateQualificationType -> Rep UpdateQualificationType x
Prelude.Generic)
newUpdateQualificationType ::
Prelude.Text ->
UpdateQualificationType
newUpdateQualificationType :: Text -> UpdateQualificationType
newUpdateQualificationType Text
pQualificationTypeId_ =
UpdateQualificationType' :: Maybe Integer
-> Maybe QualificationTypeStatus
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Integer
-> Text
-> UpdateQualificationType
UpdateQualificationType'
{ $sel:testDurationInSeconds:UpdateQualificationType' :: Maybe Integer
testDurationInSeconds =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:qualificationTypeStatus:UpdateQualificationType' :: Maybe QualificationTypeStatus
qualificationTypeStatus = Maybe QualificationTypeStatus
forall a. Maybe a
Prelude.Nothing,
$sel:answerKey:UpdateQualificationType' :: Maybe Text
answerKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:test:UpdateQualificationType' :: Maybe Text
test = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoGranted:UpdateQualificationType' :: Maybe Bool
autoGranted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:autoGrantedValue:UpdateQualificationType' :: Maybe Int
autoGrantedValue = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateQualificationType' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:retryDelayInSeconds:UpdateQualificationType' :: Maybe Integer
retryDelayInSeconds = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:qualificationTypeId:UpdateQualificationType' :: Text
qualificationTypeId = Text
pQualificationTypeId_
}
updateQualificationType_testDurationInSeconds :: Lens.Lens' UpdateQualificationType (Prelude.Maybe Prelude.Integer)
updateQualificationType_testDurationInSeconds :: (Maybe Integer -> f (Maybe Integer))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_testDurationInSeconds = (UpdateQualificationType -> Maybe Integer)
-> (UpdateQualificationType
-> Maybe Integer -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe Integer
testDurationInSeconds :: Maybe Integer
$sel:testDurationInSeconds:UpdateQualificationType' :: UpdateQualificationType -> Maybe Integer
testDurationInSeconds} -> Maybe Integer
testDurationInSeconds) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe Integer
a -> UpdateQualificationType
s {$sel:testDurationInSeconds:UpdateQualificationType' :: Maybe Integer
testDurationInSeconds = Maybe Integer
a} :: UpdateQualificationType)
updateQualificationType_qualificationTypeStatus :: Lens.Lens' UpdateQualificationType (Prelude.Maybe QualificationTypeStatus)
updateQualificationType_qualificationTypeStatus :: (Maybe QualificationTypeStatus
-> f (Maybe QualificationTypeStatus))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_qualificationTypeStatus = (UpdateQualificationType -> Maybe QualificationTypeStatus)
-> (UpdateQualificationType
-> Maybe QualificationTypeStatus -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe QualificationTypeStatus)
(Maybe QualificationTypeStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe QualificationTypeStatus
qualificationTypeStatus :: Maybe QualificationTypeStatus
$sel:qualificationTypeStatus:UpdateQualificationType' :: UpdateQualificationType -> Maybe QualificationTypeStatus
qualificationTypeStatus} -> Maybe QualificationTypeStatus
qualificationTypeStatus) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe QualificationTypeStatus
a -> UpdateQualificationType
s {$sel:qualificationTypeStatus:UpdateQualificationType' :: Maybe QualificationTypeStatus
qualificationTypeStatus = Maybe QualificationTypeStatus
a} :: UpdateQualificationType)
updateQualificationType_answerKey :: Lens.Lens' UpdateQualificationType (Prelude.Maybe Prelude.Text)
updateQualificationType_answerKey :: (Maybe Text -> f (Maybe Text))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_answerKey = (UpdateQualificationType -> Maybe Text)
-> (UpdateQualificationType
-> Maybe Text -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe Text
answerKey :: Maybe Text
$sel:answerKey:UpdateQualificationType' :: UpdateQualificationType -> Maybe Text
answerKey} -> Maybe Text
answerKey) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe Text
a -> UpdateQualificationType
s {$sel:answerKey:UpdateQualificationType' :: Maybe Text
answerKey = Maybe Text
a} :: UpdateQualificationType)
updateQualificationType_test :: Lens.Lens' UpdateQualificationType (Prelude.Maybe Prelude.Text)
updateQualificationType_test :: (Maybe Text -> f (Maybe Text))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_test = (UpdateQualificationType -> Maybe Text)
-> (UpdateQualificationType
-> Maybe Text -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe Text
test :: Maybe Text
$sel:test:UpdateQualificationType' :: UpdateQualificationType -> Maybe Text
test} -> Maybe Text
test) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe Text
a -> UpdateQualificationType
s {$sel:test:UpdateQualificationType' :: Maybe Text
test = Maybe Text
a} :: UpdateQualificationType)
updateQualificationType_autoGranted :: Lens.Lens' UpdateQualificationType (Prelude.Maybe Prelude.Bool)
updateQualificationType_autoGranted :: (Maybe Bool -> f (Maybe Bool))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_autoGranted = (UpdateQualificationType -> Maybe Bool)
-> (UpdateQualificationType
-> Maybe Bool -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe Bool
autoGranted :: Maybe Bool
$sel:autoGranted:UpdateQualificationType' :: UpdateQualificationType -> Maybe Bool
autoGranted} -> Maybe Bool
autoGranted) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe Bool
a -> UpdateQualificationType
s {$sel:autoGranted:UpdateQualificationType' :: Maybe Bool
autoGranted = Maybe Bool
a} :: UpdateQualificationType)
updateQualificationType_autoGrantedValue :: Lens.Lens' UpdateQualificationType (Prelude.Maybe Prelude.Int)
updateQualificationType_autoGrantedValue :: (Maybe Int -> f (Maybe Int))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_autoGrantedValue = (UpdateQualificationType -> Maybe Int)
-> (UpdateQualificationType
-> Maybe Int -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe Int
autoGrantedValue :: Maybe Int
$sel:autoGrantedValue:UpdateQualificationType' :: UpdateQualificationType -> Maybe Int
autoGrantedValue} -> Maybe Int
autoGrantedValue) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe Int
a -> UpdateQualificationType
s {$sel:autoGrantedValue:UpdateQualificationType' :: Maybe Int
autoGrantedValue = Maybe Int
a} :: UpdateQualificationType)
updateQualificationType_description :: Lens.Lens' UpdateQualificationType (Prelude.Maybe Prelude.Text)
updateQualificationType_description :: (Maybe Text -> f (Maybe Text))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_description = (UpdateQualificationType -> Maybe Text)
-> (UpdateQualificationType
-> Maybe Text -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe Text
description :: Maybe Text
$sel:description:UpdateQualificationType' :: UpdateQualificationType -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe Text
a -> UpdateQualificationType
s {$sel:description:UpdateQualificationType' :: Maybe Text
description = Maybe Text
a} :: UpdateQualificationType)
updateQualificationType_retryDelayInSeconds :: Lens.Lens' UpdateQualificationType (Prelude.Maybe Prelude.Integer)
updateQualificationType_retryDelayInSeconds :: (Maybe Integer -> f (Maybe Integer))
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_retryDelayInSeconds = (UpdateQualificationType -> Maybe Integer)
-> (UpdateQualificationType
-> Maybe Integer -> UpdateQualificationType)
-> Lens
UpdateQualificationType
UpdateQualificationType
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Maybe Integer
retryDelayInSeconds :: Maybe Integer
$sel:retryDelayInSeconds:UpdateQualificationType' :: UpdateQualificationType -> Maybe Integer
retryDelayInSeconds} -> Maybe Integer
retryDelayInSeconds) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Maybe Integer
a -> UpdateQualificationType
s {$sel:retryDelayInSeconds:UpdateQualificationType' :: Maybe Integer
retryDelayInSeconds = Maybe Integer
a} :: UpdateQualificationType)
updateQualificationType_qualificationTypeId :: Lens.Lens' UpdateQualificationType Prelude.Text
updateQualificationType_qualificationTypeId :: (Text -> f Text)
-> UpdateQualificationType -> f UpdateQualificationType
updateQualificationType_qualificationTypeId = (UpdateQualificationType -> Text)
-> (UpdateQualificationType -> Text -> UpdateQualificationType)
-> Lens UpdateQualificationType UpdateQualificationType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationType' {Text
qualificationTypeId :: Text
$sel:qualificationTypeId:UpdateQualificationType' :: UpdateQualificationType -> Text
qualificationTypeId} -> Text
qualificationTypeId) (\s :: UpdateQualificationType
s@UpdateQualificationType' {} Text
a -> UpdateQualificationType
s {$sel:qualificationTypeId:UpdateQualificationType' :: Text
qualificationTypeId = Text
a} :: UpdateQualificationType)
instance Core.AWSRequest UpdateQualificationType where
type
AWSResponse UpdateQualificationType =
UpdateQualificationTypeResponse
request :: UpdateQualificationType -> Request UpdateQualificationType
request = Service
-> UpdateQualificationType -> Request UpdateQualificationType
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateQualificationType
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateQualificationType)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateQualificationType))
-> Logger
-> Service
-> Proxy UpdateQualificationType
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateQualificationType)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe QualificationType -> Int -> UpdateQualificationTypeResponse
UpdateQualificationTypeResponse'
(Maybe QualificationType -> Int -> UpdateQualificationTypeResponse)
-> Either String (Maybe QualificationType)
-> Either String (Int -> UpdateQualificationTypeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe QualificationType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"QualificationType")
Either String (Int -> UpdateQualificationTypeResponse)
-> Either String Int
-> Either String UpdateQualificationTypeResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateQualificationType
instance Prelude.NFData UpdateQualificationType
instance Core.ToHeaders UpdateQualificationType where
toHeaders :: UpdateQualificationType -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateQualificationType -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"MTurkRequesterServiceV20170117.UpdateQualificationType" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON UpdateQualificationType where
toJSON :: UpdateQualificationType -> Value
toJSON UpdateQualificationType' {Maybe Bool
Maybe Int
Maybe Integer
Maybe Text
Maybe QualificationTypeStatus
Text
qualificationTypeId :: Text
retryDelayInSeconds :: Maybe Integer
description :: Maybe Text
autoGrantedValue :: Maybe Int
autoGranted :: Maybe Bool
test :: Maybe Text
answerKey :: Maybe Text
qualificationTypeStatus :: Maybe QualificationTypeStatus
testDurationInSeconds :: Maybe Integer
$sel:qualificationTypeId:UpdateQualificationType' :: UpdateQualificationType -> Text
$sel:retryDelayInSeconds:UpdateQualificationType' :: UpdateQualificationType -> Maybe Integer
$sel:description:UpdateQualificationType' :: UpdateQualificationType -> Maybe Text
$sel:autoGrantedValue:UpdateQualificationType' :: UpdateQualificationType -> Maybe Int
$sel:autoGranted:UpdateQualificationType' :: UpdateQualificationType -> Maybe Bool
$sel:test:UpdateQualificationType' :: UpdateQualificationType -> Maybe Text
$sel:answerKey:UpdateQualificationType' :: UpdateQualificationType -> Maybe Text
$sel:qualificationTypeStatus:UpdateQualificationType' :: UpdateQualificationType -> Maybe QualificationTypeStatus
$sel:testDurationInSeconds:UpdateQualificationType' :: UpdateQualificationType -> Maybe Integer
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"TestDurationInSeconds" Text -> Integer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Integer -> Pair) -> Maybe Integer -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Integer
testDurationInSeconds,
(Text
"QualificationTypeStatus" Text -> QualificationTypeStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(QualificationTypeStatus -> Pair)
-> Maybe QualificationTypeStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QualificationTypeStatus
qualificationTypeStatus,
(Text
"AnswerKey" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
answerKey,
(Text
"Test" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
test,
(Text
"AutoGranted" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
autoGranted,
(Text
"AutoGrantedValue" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
autoGrantedValue,
(Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"RetryDelayInSeconds" Text -> Integer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Integer -> Pair) -> Maybe Integer -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Integer
retryDelayInSeconds,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"QualificationTypeId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
qualificationTypeId)
]
)
instance Core.ToPath UpdateQualificationType where
toPath :: UpdateQualificationType -> ByteString
toPath = ByteString -> UpdateQualificationType -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateQualificationType where
toQuery :: UpdateQualificationType -> QueryString
toQuery = QueryString -> UpdateQualificationType -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateQualificationTypeResponse = UpdateQualificationTypeResponse'
{
UpdateQualificationTypeResponse -> Maybe QualificationType
qualificationType :: Prelude.Maybe QualificationType,
UpdateQualificationTypeResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateQualificationTypeResponse
-> UpdateQualificationTypeResponse -> Bool
(UpdateQualificationTypeResponse
-> UpdateQualificationTypeResponse -> Bool)
-> (UpdateQualificationTypeResponse
-> UpdateQualificationTypeResponse -> Bool)
-> Eq UpdateQualificationTypeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateQualificationTypeResponse
-> UpdateQualificationTypeResponse -> Bool
$c/= :: UpdateQualificationTypeResponse
-> UpdateQualificationTypeResponse -> Bool
== :: UpdateQualificationTypeResponse
-> UpdateQualificationTypeResponse -> Bool
$c== :: UpdateQualificationTypeResponse
-> UpdateQualificationTypeResponse -> Bool
Prelude.Eq, ReadPrec [UpdateQualificationTypeResponse]
ReadPrec UpdateQualificationTypeResponse
Int -> ReadS UpdateQualificationTypeResponse
ReadS [UpdateQualificationTypeResponse]
(Int -> ReadS UpdateQualificationTypeResponse)
-> ReadS [UpdateQualificationTypeResponse]
-> ReadPrec UpdateQualificationTypeResponse
-> ReadPrec [UpdateQualificationTypeResponse]
-> Read UpdateQualificationTypeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateQualificationTypeResponse]
$creadListPrec :: ReadPrec [UpdateQualificationTypeResponse]
readPrec :: ReadPrec UpdateQualificationTypeResponse
$creadPrec :: ReadPrec UpdateQualificationTypeResponse
readList :: ReadS [UpdateQualificationTypeResponse]
$creadList :: ReadS [UpdateQualificationTypeResponse]
readsPrec :: Int -> ReadS UpdateQualificationTypeResponse
$creadsPrec :: Int -> ReadS UpdateQualificationTypeResponse
Prelude.Read, Int -> UpdateQualificationTypeResponse -> ShowS
[UpdateQualificationTypeResponse] -> ShowS
UpdateQualificationTypeResponse -> String
(Int -> UpdateQualificationTypeResponse -> ShowS)
-> (UpdateQualificationTypeResponse -> String)
-> ([UpdateQualificationTypeResponse] -> ShowS)
-> Show UpdateQualificationTypeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateQualificationTypeResponse] -> ShowS
$cshowList :: [UpdateQualificationTypeResponse] -> ShowS
show :: UpdateQualificationTypeResponse -> String
$cshow :: UpdateQualificationTypeResponse -> String
showsPrec :: Int -> UpdateQualificationTypeResponse -> ShowS
$cshowsPrec :: Int -> UpdateQualificationTypeResponse -> ShowS
Prelude.Show, (forall x.
UpdateQualificationTypeResponse
-> Rep UpdateQualificationTypeResponse x)
-> (forall x.
Rep UpdateQualificationTypeResponse x
-> UpdateQualificationTypeResponse)
-> Generic UpdateQualificationTypeResponse
forall x.
Rep UpdateQualificationTypeResponse x
-> UpdateQualificationTypeResponse
forall x.
UpdateQualificationTypeResponse
-> Rep UpdateQualificationTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateQualificationTypeResponse x
-> UpdateQualificationTypeResponse
$cfrom :: forall x.
UpdateQualificationTypeResponse
-> Rep UpdateQualificationTypeResponse x
Prelude.Generic)
newUpdateQualificationTypeResponse ::
Prelude.Int ->
UpdateQualificationTypeResponse
newUpdateQualificationTypeResponse :: Int -> UpdateQualificationTypeResponse
newUpdateQualificationTypeResponse Int
pHttpStatus_ =
UpdateQualificationTypeResponse' :: Maybe QualificationType -> Int -> UpdateQualificationTypeResponse
UpdateQualificationTypeResponse'
{ $sel:qualificationType:UpdateQualificationTypeResponse' :: Maybe QualificationType
qualificationType =
Maybe QualificationType
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateQualificationTypeResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateQualificationTypeResponse_qualificationType :: Lens.Lens' UpdateQualificationTypeResponse (Prelude.Maybe QualificationType)
updateQualificationTypeResponse_qualificationType :: (Maybe QualificationType -> f (Maybe QualificationType))
-> UpdateQualificationTypeResponse
-> f UpdateQualificationTypeResponse
updateQualificationTypeResponse_qualificationType = (UpdateQualificationTypeResponse -> Maybe QualificationType)
-> (UpdateQualificationTypeResponse
-> Maybe QualificationType -> UpdateQualificationTypeResponse)
-> Lens
UpdateQualificationTypeResponse
UpdateQualificationTypeResponse
(Maybe QualificationType)
(Maybe QualificationType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationTypeResponse' {Maybe QualificationType
qualificationType :: Maybe QualificationType
$sel:qualificationType:UpdateQualificationTypeResponse' :: UpdateQualificationTypeResponse -> Maybe QualificationType
qualificationType} -> Maybe QualificationType
qualificationType) (\s :: UpdateQualificationTypeResponse
s@UpdateQualificationTypeResponse' {} Maybe QualificationType
a -> UpdateQualificationTypeResponse
s {$sel:qualificationType:UpdateQualificationTypeResponse' :: Maybe QualificationType
qualificationType = Maybe QualificationType
a} :: UpdateQualificationTypeResponse)
updateQualificationTypeResponse_httpStatus :: Lens.Lens' UpdateQualificationTypeResponse Prelude.Int
updateQualificationTypeResponse_httpStatus :: (Int -> f Int)
-> UpdateQualificationTypeResponse
-> f UpdateQualificationTypeResponse
updateQualificationTypeResponse_httpStatus = (UpdateQualificationTypeResponse -> Int)
-> (UpdateQualificationTypeResponse
-> Int -> UpdateQualificationTypeResponse)
-> Lens
UpdateQualificationTypeResponse
UpdateQualificationTypeResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateQualificationTypeResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateQualificationTypeResponse' :: UpdateQualificationTypeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateQualificationTypeResponse
s@UpdateQualificationTypeResponse' {} Int
a -> UpdateQualificationTypeResponse
s {$sel:httpStatus:UpdateQualificationTypeResponse' :: Int
httpStatus = Int
a} :: UpdateQualificationTypeResponse)
instance
Prelude.NFData
UpdateQualificationTypeResponse