{-# 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.CreateHITType
(
CreateHITType (..),
newCreateHITType,
createHITType_autoApprovalDelayInSeconds,
createHITType_keywords,
createHITType_qualificationRequirements,
createHITType_assignmentDurationInSeconds,
createHITType_reward,
createHITType_title,
createHITType_description,
CreateHITTypeResponse (..),
newCreateHITTypeResponse,
createHITTypeResponse_hITTypeId,
createHITTypeResponse_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 CreateHITType = CreateHITType'
{
CreateHITType -> Maybe Integer
autoApprovalDelayInSeconds :: Prelude.Maybe Prelude.Integer,
CreateHITType -> Maybe Text
keywords :: Prelude.Maybe Prelude.Text,
CreateHITType -> Maybe [QualificationRequirement]
qualificationRequirements :: Prelude.Maybe [QualificationRequirement],
CreateHITType -> Integer
assignmentDurationInSeconds :: Prelude.Integer,
CreateHITType -> Text
reward :: Prelude.Text,
CreateHITType -> Text
title :: Prelude.Text,
CreateHITType -> Text
description :: Prelude.Text
}
deriving (CreateHITType -> CreateHITType -> Bool
(CreateHITType -> CreateHITType -> Bool)
-> (CreateHITType -> CreateHITType -> Bool) -> Eq CreateHITType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHITType -> CreateHITType -> Bool
$c/= :: CreateHITType -> CreateHITType -> Bool
== :: CreateHITType -> CreateHITType -> Bool
$c== :: CreateHITType -> CreateHITType -> Bool
Prelude.Eq, ReadPrec [CreateHITType]
ReadPrec CreateHITType
Int -> ReadS CreateHITType
ReadS [CreateHITType]
(Int -> ReadS CreateHITType)
-> ReadS [CreateHITType]
-> ReadPrec CreateHITType
-> ReadPrec [CreateHITType]
-> Read CreateHITType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHITType]
$creadListPrec :: ReadPrec [CreateHITType]
readPrec :: ReadPrec CreateHITType
$creadPrec :: ReadPrec CreateHITType
readList :: ReadS [CreateHITType]
$creadList :: ReadS [CreateHITType]
readsPrec :: Int -> ReadS CreateHITType
$creadsPrec :: Int -> ReadS CreateHITType
Prelude.Read, Int -> CreateHITType -> ShowS
[CreateHITType] -> ShowS
CreateHITType -> String
(Int -> CreateHITType -> ShowS)
-> (CreateHITType -> String)
-> ([CreateHITType] -> ShowS)
-> Show CreateHITType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHITType] -> ShowS
$cshowList :: [CreateHITType] -> ShowS
show :: CreateHITType -> String
$cshow :: CreateHITType -> String
showsPrec :: Int -> CreateHITType -> ShowS
$cshowsPrec :: Int -> CreateHITType -> ShowS
Prelude.Show, (forall x. CreateHITType -> Rep CreateHITType x)
-> (forall x. Rep CreateHITType x -> CreateHITType)
-> Generic CreateHITType
forall x. Rep CreateHITType x -> CreateHITType
forall x. CreateHITType -> Rep CreateHITType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateHITType x -> CreateHITType
$cfrom :: forall x. CreateHITType -> Rep CreateHITType x
Prelude.Generic)
newCreateHITType ::
Prelude.Integer ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateHITType
newCreateHITType :: Integer -> Text -> Text -> Text -> CreateHITType
newCreateHITType
Integer
pAssignmentDurationInSeconds_
Text
pReward_
Text
pTitle_
Text
pDescription_ =
CreateHITType' :: Maybe Integer
-> Maybe Text
-> Maybe [QualificationRequirement]
-> Integer
-> Text
-> Text
-> Text
-> CreateHITType
CreateHITType'
{ $sel:autoApprovalDelayInSeconds:CreateHITType' :: Maybe Integer
autoApprovalDelayInSeconds =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:keywords:CreateHITType' :: Maybe Text
keywords = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:qualificationRequirements:CreateHITType' :: Maybe [QualificationRequirement]
qualificationRequirements = Maybe [QualificationRequirement]
forall a. Maybe a
Prelude.Nothing,
$sel:assignmentDurationInSeconds:CreateHITType' :: Integer
assignmentDurationInSeconds =
Integer
pAssignmentDurationInSeconds_,
$sel:reward:CreateHITType' :: Text
reward = Text
pReward_,
$sel:title:CreateHITType' :: Text
title = Text
pTitle_,
$sel:description:CreateHITType' :: Text
description = Text
pDescription_
}
createHITType_autoApprovalDelayInSeconds :: Lens.Lens' CreateHITType (Prelude.Maybe Prelude.Integer)
createHITType_autoApprovalDelayInSeconds :: (Maybe Integer -> f (Maybe Integer))
-> CreateHITType -> f CreateHITType
createHITType_autoApprovalDelayInSeconds = (CreateHITType -> Maybe Integer)
-> (CreateHITType -> Maybe Integer -> CreateHITType)
-> Lens CreateHITType CreateHITType (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITType' {Maybe Integer
autoApprovalDelayInSeconds :: Maybe Integer
$sel:autoApprovalDelayInSeconds:CreateHITType' :: CreateHITType -> Maybe Integer
autoApprovalDelayInSeconds} -> Maybe Integer
autoApprovalDelayInSeconds) (\s :: CreateHITType
s@CreateHITType' {} Maybe Integer
a -> CreateHITType
s {$sel:autoApprovalDelayInSeconds:CreateHITType' :: Maybe Integer
autoApprovalDelayInSeconds = Maybe Integer
a} :: CreateHITType)
createHITType_keywords :: Lens.Lens' CreateHITType (Prelude.Maybe Prelude.Text)
createHITType_keywords :: (Maybe Text -> f (Maybe Text)) -> CreateHITType -> f CreateHITType
createHITType_keywords = (CreateHITType -> Maybe Text)
-> (CreateHITType -> Maybe Text -> CreateHITType)
-> Lens CreateHITType CreateHITType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITType' {Maybe Text
keywords :: Maybe Text
$sel:keywords:CreateHITType' :: CreateHITType -> Maybe Text
keywords} -> Maybe Text
keywords) (\s :: CreateHITType
s@CreateHITType' {} Maybe Text
a -> CreateHITType
s {$sel:keywords:CreateHITType' :: Maybe Text
keywords = Maybe Text
a} :: CreateHITType)
createHITType_qualificationRequirements :: Lens.Lens' CreateHITType (Prelude.Maybe [QualificationRequirement])
createHITType_qualificationRequirements :: (Maybe [QualificationRequirement]
-> f (Maybe [QualificationRequirement]))
-> CreateHITType -> f CreateHITType
createHITType_qualificationRequirements = (CreateHITType -> Maybe [QualificationRequirement])
-> (CreateHITType
-> Maybe [QualificationRequirement] -> CreateHITType)
-> Lens
CreateHITType
CreateHITType
(Maybe [QualificationRequirement])
(Maybe [QualificationRequirement])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITType' {Maybe [QualificationRequirement]
qualificationRequirements :: Maybe [QualificationRequirement]
$sel:qualificationRequirements:CreateHITType' :: CreateHITType -> Maybe [QualificationRequirement]
qualificationRequirements} -> Maybe [QualificationRequirement]
qualificationRequirements) (\s :: CreateHITType
s@CreateHITType' {} Maybe [QualificationRequirement]
a -> CreateHITType
s {$sel:qualificationRequirements:CreateHITType' :: Maybe [QualificationRequirement]
qualificationRequirements = Maybe [QualificationRequirement]
a} :: CreateHITType) ((Maybe [QualificationRequirement]
-> f (Maybe [QualificationRequirement]))
-> CreateHITType -> f CreateHITType)
-> ((Maybe [QualificationRequirement]
-> f (Maybe [QualificationRequirement]))
-> Maybe [QualificationRequirement]
-> f (Maybe [QualificationRequirement]))
-> (Maybe [QualificationRequirement]
-> f (Maybe [QualificationRequirement]))
-> CreateHITType
-> f CreateHITType
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[QualificationRequirement]
[QualificationRequirement]
[QualificationRequirement]
[QualificationRequirement]
-> Iso
(Maybe [QualificationRequirement])
(Maybe [QualificationRequirement])
(Maybe [QualificationRequirement])
(Maybe [QualificationRequirement])
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
[QualificationRequirement]
[QualificationRequirement]
[QualificationRequirement]
[QualificationRequirement]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createHITType_assignmentDurationInSeconds :: Lens.Lens' CreateHITType Prelude.Integer
createHITType_assignmentDurationInSeconds :: (Integer -> f Integer) -> CreateHITType -> f CreateHITType
createHITType_assignmentDurationInSeconds = (CreateHITType -> Integer)
-> (CreateHITType -> Integer -> CreateHITType)
-> Lens CreateHITType CreateHITType Integer Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITType' {Integer
assignmentDurationInSeconds :: Integer
$sel:assignmentDurationInSeconds:CreateHITType' :: CreateHITType -> Integer
assignmentDurationInSeconds} -> Integer
assignmentDurationInSeconds) (\s :: CreateHITType
s@CreateHITType' {} Integer
a -> CreateHITType
s {$sel:assignmentDurationInSeconds:CreateHITType' :: Integer
assignmentDurationInSeconds = Integer
a} :: CreateHITType)
createHITType_reward :: Lens.Lens' CreateHITType Prelude.Text
createHITType_reward :: (Text -> f Text) -> CreateHITType -> f CreateHITType
createHITType_reward = (CreateHITType -> Text)
-> (CreateHITType -> Text -> CreateHITType)
-> Lens CreateHITType CreateHITType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITType' {Text
reward :: Text
$sel:reward:CreateHITType' :: CreateHITType -> Text
reward} -> Text
reward) (\s :: CreateHITType
s@CreateHITType' {} Text
a -> CreateHITType
s {$sel:reward:CreateHITType' :: Text
reward = Text
a} :: CreateHITType)
createHITType_title :: Lens.Lens' CreateHITType Prelude.Text
createHITType_title :: (Text -> f Text) -> CreateHITType -> f CreateHITType
createHITType_title = (CreateHITType -> Text)
-> (CreateHITType -> Text -> CreateHITType)
-> Lens CreateHITType CreateHITType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITType' {Text
title :: Text
$sel:title:CreateHITType' :: CreateHITType -> Text
title} -> Text
title) (\s :: CreateHITType
s@CreateHITType' {} Text
a -> CreateHITType
s {$sel:title:CreateHITType' :: Text
title = Text
a} :: CreateHITType)
createHITType_description :: Lens.Lens' CreateHITType Prelude.Text
createHITType_description :: (Text -> f Text) -> CreateHITType -> f CreateHITType
createHITType_description = (CreateHITType -> Text)
-> (CreateHITType -> Text -> CreateHITType)
-> Lens CreateHITType CreateHITType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITType' {Text
description :: Text
$sel:description:CreateHITType' :: CreateHITType -> Text
description} -> Text
description) (\s :: CreateHITType
s@CreateHITType' {} Text
a -> CreateHITType
s {$sel:description:CreateHITType' :: Text
description = Text
a} :: CreateHITType)
instance Core.AWSRequest CreateHITType where
type
AWSResponse CreateHITType =
CreateHITTypeResponse
request :: CreateHITType -> Request CreateHITType
request = Service -> CreateHITType -> Request CreateHITType
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateHITType
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateHITType)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateHITType))
-> Logger
-> Service
-> Proxy CreateHITType
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateHITType)))
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 Text -> Int -> CreateHITTypeResponse
CreateHITTypeResponse'
(Maybe Text -> Int -> CreateHITTypeResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateHITTypeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HITTypeId")
Either String (Int -> CreateHITTypeResponse)
-> Either String Int -> Either String CreateHITTypeResponse
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 CreateHITType
instance Prelude.NFData CreateHITType
instance Core.ToHeaders CreateHITType where
toHeaders :: CreateHITType -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateHITType -> 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.CreateHITType" ::
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 CreateHITType where
toJSON :: CreateHITType -> Value
toJSON CreateHITType' {Integer
Maybe Integer
Maybe [QualificationRequirement]
Maybe Text
Text
description :: Text
title :: Text
reward :: Text
assignmentDurationInSeconds :: Integer
qualificationRequirements :: Maybe [QualificationRequirement]
keywords :: Maybe Text
autoApprovalDelayInSeconds :: Maybe Integer
$sel:description:CreateHITType' :: CreateHITType -> Text
$sel:title:CreateHITType' :: CreateHITType -> Text
$sel:reward:CreateHITType' :: CreateHITType -> Text
$sel:assignmentDurationInSeconds:CreateHITType' :: CreateHITType -> Integer
$sel:qualificationRequirements:CreateHITType' :: CreateHITType -> Maybe [QualificationRequirement]
$sel:keywords:CreateHITType' :: CreateHITType -> Maybe Text
$sel:autoApprovalDelayInSeconds:CreateHITType' :: CreateHITType -> Maybe Integer
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AutoApprovalDelayInSeconds" 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
autoApprovalDelayInSeconds,
(Text
"Keywords" 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
keywords,
(Text
"QualificationRequirements" Text -> [QualificationRequirement] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([QualificationRequirement] -> Pair)
-> Maybe [QualificationRequirement] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [QualificationRequirement]
qualificationRequirements,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"AssignmentDurationInSeconds"
Text -> Integer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Integer
assignmentDurationInSeconds
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Reward" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
reward),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Title" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
title),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
description)
]
)
instance Core.ToPath CreateHITType where
toPath :: CreateHITType -> ByteString
toPath = ByteString -> CreateHITType -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateHITType where
toQuery :: CreateHITType -> QueryString
toQuery = QueryString -> CreateHITType -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateHITTypeResponse = CreateHITTypeResponse'
{
CreateHITTypeResponse -> Maybe Text
hITTypeId :: Prelude.Maybe Prelude.Text,
CreateHITTypeResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateHITTypeResponse -> CreateHITTypeResponse -> Bool
(CreateHITTypeResponse -> CreateHITTypeResponse -> Bool)
-> (CreateHITTypeResponse -> CreateHITTypeResponse -> Bool)
-> Eq CreateHITTypeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHITTypeResponse -> CreateHITTypeResponse -> Bool
$c/= :: CreateHITTypeResponse -> CreateHITTypeResponse -> Bool
== :: CreateHITTypeResponse -> CreateHITTypeResponse -> Bool
$c== :: CreateHITTypeResponse -> CreateHITTypeResponse -> Bool
Prelude.Eq, ReadPrec [CreateHITTypeResponse]
ReadPrec CreateHITTypeResponse
Int -> ReadS CreateHITTypeResponse
ReadS [CreateHITTypeResponse]
(Int -> ReadS CreateHITTypeResponse)
-> ReadS [CreateHITTypeResponse]
-> ReadPrec CreateHITTypeResponse
-> ReadPrec [CreateHITTypeResponse]
-> Read CreateHITTypeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHITTypeResponse]
$creadListPrec :: ReadPrec [CreateHITTypeResponse]
readPrec :: ReadPrec CreateHITTypeResponse
$creadPrec :: ReadPrec CreateHITTypeResponse
readList :: ReadS [CreateHITTypeResponse]
$creadList :: ReadS [CreateHITTypeResponse]
readsPrec :: Int -> ReadS CreateHITTypeResponse
$creadsPrec :: Int -> ReadS CreateHITTypeResponse
Prelude.Read, Int -> CreateHITTypeResponse -> ShowS
[CreateHITTypeResponse] -> ShowS
CreateHITTypeResponse -> String
(Int -> CreateHITTypeResponse -> ShowS)
-> (CreateHITTypeResponse -> String)
-> ([CreateHITTypeResponse] -> ShowS)
-> Show CreateHITTypeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHITTypeResponse] -> ShowS
$cshowList :: [CreateHITTypeResponse] -> ShowS
show :: CreateHITTypeResponse -> String
$cshow :: CreateHITTypeResponse -> String
showsPrec :: Int -> CreateHITTypeResponse -> ShowS
$cshowsPrec :: Int -> CreateHITTypeResponse -> ShowS
Prelude.Show, (forall x. CreateHITTypeResponse -> Rep CreateHITTypeResponse x)
-> (forall x. Rep CreateHITTypeResponse x -> CreateHITTypeResponse)
-> Generic CreateHITTypeResponse
forall x. Rep CreateHITTypeResponse x -> CreateHITTypeResponse
forall x. CreateHITTypeResponse -> Rep CreateHITTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateHITTypeResponse x -> CreateHITTypeResponse
$cfrom :: forall x. CreateHITTypeResponse -> Rep CreateHITTypeResponse x
Prelude.Generic)
newCreateHITTypeResponse ::
Prelude.Int ->
CreateHITTypeResponse
newCreateHITTypeResponse :: Int -> CreateHITTypeResponse
newCreateHITTypeResponse Int
pHttpStatus_ =
CreateHITTypeResponse' :: Maybe Text -> Int -> CreateHITTypeResponse
CreateHITTypeResponse'
{ $sel:hITTypeId:CreateHITTypeResponse' :: Maybe Text
hITTypeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateHITTypeResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createHITTypeResponse_hITTypeId :: Lens.Lens' CreateHITTypeResponse (Prelude.Maybe Prelude.Text)
createHITTypeResponse_hITTypeId :: (Maybe Text -> f (Maybe Text))
-> CreateHITTypeResponse -> f CreateHITTypeResponse
createHITTypeResponse_hITTypeId = (CreateHITTypeResponse -> Maybe Text)
-> (CreateHITTypeResponse -> Maybe Text -> CreateHITTypeResponse)
-> Lens
CreateHITTypeResponse
CreateHITTypeResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITTypeResponse' {Maybe Text
hITTypeId :: Maybe Text
$sel:hITTypeId:CreateHITTypeResponse' :: CreateHITTypeResponse -> Maybe Text
hITTypeId} -> Maybe Text
hITTypeId) (\s :: CreateHITTypeResponse
s@CreateHITTypeResponse' {} Maybe Text
a -> CreateHITTypeResponse
s {$sel:hITTypeId:CreateHITTypeResponse' :: Maybe Text
hITTypeId = Maybe Text
a} :: CreateHITTypeResponse)
createHITTypeResponse_httpStatus :: Lens.Lens' CreateHITTypeResponse Prelude.Int
createHITTypeResponse_httpStatus :: (Int -> f Int) -> CreateHITTypeResponse -> f CreateHITTypeResponse
createHITTypeResponse_httpStatus = (CreateHITTypeResponse -> Int)
-> (CreateHITTypeResponse -> Int -> CreateHITTypeResponse)
-> Lens CreateHITTypeResponse CreateHITTypeResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHITTypeResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateHITTypeResponse' :: CreateHITTypeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateHITTypeResponse
s@CreateHITTypeResponse' {} Int
a -> CreateHITTypeResponse
s {$sel:httpStatus:CreateHITTypeResponse' :: Int
httpStatus = Int
a} :: CreateHITTypeResponse)
instance Prelude.NFData CreateHITTypeResponse