{-# 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.ListWorkersWithQualificationType
(
ListWorkersWithQualificationType (..),
newListWorkersWithQualificationType,
listWorkersWithQualificationType_maxResults,
listWorkersWithQualificationType_nextToken,
listWorkersWithQualificationType_status,
listWorkersWithQualificationType_qualificationTypeId,
ListWorkersWithQualificationTypeResponse (..),
newListWorkersWithQualificationTypeResponse,
listWorkersWithQualificationTypeResponse_nextToken,
listWorkersWithQualificationTypeResponse_numResults,
listWorkersWithQualificationTypeResponse_qualifications,
listWorkersWithQualificationTypeResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MechanicalTurk.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListWorkersWithQualificationType = ListWorkersWithQualificationType'
{
ListWorkersWithQualificationType -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListWorkersWithQualificationType -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListWorkersWithQualificationType -> Maybe QualificationStatus
status :: Prelude.Maybe QualificationStatus,
ListWorkersWithQualificationType -> Text
qualificationTypeId :: Prelude.Text
}
deriving (ListWorkersWithQualificationType
-> ListWorkersWithQualificationType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorkersWithQualificationType
-> ListWorkersWithQualificationType -> Bool
$c/= :: ListWorkersWithQualificationType
-> ListWorkersWithQualificationType -> Bool
== :: ListWorkersWithQualificationType
-> ListWorkersWithQualificationType -> Bool
$c== :: ListWorkersWithQualificationType
-> ListWorkersWithQualificationType -> Bool
Prelude.Eq, ReadPrec [ListWorkersWithQualificationType]
ReadPrec ListWorkersWithQualificationType
Int -> ReadS ListWorkersWithQualificationType
ReadS [ListWorkersWithQualificationType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorkersWithQualificationType]
$creadListPrec :: ReadPrec [ListWorkersWithQualificationType]
readPrec :: ReadPrec ListWorkersWithQualificationType
$creadPrec :: ReadPrec ListWorkersWithQualificationType
readList :: ReadS [ListWorkersWithQualificationType]
$creadList :: ReadS [ListWorkersWithQualificationType]
readsPrec :: Int -> ReadS ListWorkersWithQualificationType
$creadsPrec :: Int -> ReadS ListWorkersWithQualificationType
Prelude.Read, Int -> ListWorkersWithQualificationType -> ShowS
[ListWorkersWithQualificationType] -> ShowS
ListWorkersWithQualificationType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorkersWithQualificationType] -> ShowS
$cshowList :: [ListWorkersWithQualificationType] -> ShowS
show :: ListWorkersWithQualificationType -> String
$cshow :: ListWorkersWithQualificationType -> String
showsPrec :: Int -> ListWorkersWithQualificationType -> ShowS
$cshowsPrec :: Int -> ListWorkersWithQualificationType -> ShowS
Prelude.Show, forall x.
Rep ListWorkersWithQualificationType x
-> ListWorkersWithQualificationType
forall x.
ListWorkersWithQualificationType
-> Rep ListWorkersWithQualificationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListWorkersWithQualificationType x
-> ListWorkersWithQualificationType
$cfrom :: forall x.
ListWorkersWithQualificationType
-> Rep ListWorkersWithQualificationType x
Prelude.Generic)
newListWorkersWithQualificationType ::
Prelude.Text ->
ListWorkersWithQualificationType
newListWorkersWithQualificationType :: Text -> ListWorkersWithQualificationType
newListWorkersWithQualificationType
Text
pQualificationTypeId_ =
ListWorkersWithQualificationType'
{ $sel:maxResults:ListWorkersWithQualificationType' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListWorkersWithQualificationType' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:status:ListWorkersWithQualificationType' :: Maybe QualificationStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:qualificationTypeId:ListWorkersWithQualificationType' :: Text
qualificationTypeId =
Text
pQualificationTypeId_
}
listWorkersWithQualificationType_maxResults :: Lens.Lens' ListWorkersWithQualificationType (Prelude.Maybe Prelude.Natural)
listWorkersWithQualificationType_maxResults :: Lens' ListWorkersWithQualificationType (Maybe Natural)
listWorkersWithQualificationType_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationType' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListWorkersWithQualificationType
s@ListWorkersWithQualificationType' {} Maybe Natural
a -> ListWorkersWithQualificationType
s {$sel:maxResults:ListWorkersWithQualificationType' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListWorkersWithQualificationType)
listWorkersWithQualificationType_nextToken :: Lens.Lens' ListWorkersWithQualificationType (Prelude.Maybe Prelude.Text)
listWorkersWithQualificationType_nextToken :: Lens' ListWorkersWithQualificationType (Maybe Text)
listWorkersWithQualificationType_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationType' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorkersWithQualificationType
s@ListWorkersWithQualificationType' {} Maybe Text
a -> ListWorkersWithQualificationType
s {$sel:nextToken:ListWorkersWithQualificationType' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorkersWithQualificationType)
listWorkersWithQualificationType_status :: Lens.Lens' ListWorkersWithQualificationType (Prelude.Maybe QualificationStatus)
listWorkersWithQualificationType_status :: Lens' ListWorkersWithQualificationType (Maybe QualificationStatus)
listWorkersWithQualificationType_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationType' {Maybe QualificationStatus
status :: Maybe QualificationStatus
$sel:status:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe QualificationStatus
status} -> Maybe QualificationStatus
status) (\s :: ListWorkersWithQualificationType
s@ListWorkersWithQualificationType' {} Maybe QualificationStatus
a -> ListWorkersWithQualificationType
s {$sel:status:ListWorkersWithQualificationType' :: Maybe QualificationStatus
status = Maybe QualificationStatus
a} :: ListWorkersWithQualificationType)
listWorkersWithQualificationType_qualificationTypeId :: Lens.Lens' ListWorkersWithQualificationType Prelude.Text
listWorkersWithQualificationType_qualificationTypeId :: Lens' ListWorkersWithQualificationType Text
listWorkersWithQualificationType_qualificationTypeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationType' {Text
qualificationTypeId :: Text
$sel:qualificationTypeId:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Text
qualificationTypeId} -> Text
qualificationTypeId) (\s :: ListWorkersWithQualificationType
s@ListWorkersWithQualificationType' {} Text
a -> ListWorkersWithQualificationType
s {$sel:qualificationTypeId:ListWorkersWithQualificationType' :: Text
qualificationTypeId = Text
a} :: ListWorkersWithQualificationType)
instance
Core.AWSPager
ListWorkersWithQualificationType
where
page :: ListWorkersWithQualificationType
-> AWSResponse ListWorkersWithQualificationType
-> Maybe ListWorkersWithQualificationType
page ListWorkersWithQualificationType
rq AWSResponse ListWorkersWithQualificationType
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListWorkersWithQualificationType
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListWorkersWithQualificationTypeResponse (Maybe Text)
listWorkersWithQualificationTypeResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListWorkersWithQualificationType
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListWorkersWithQualificationTypeResponse (Maybe [Qualification])
listWorkersWithQualificationTypeResponse_qualifications
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListWorkersWithQualificationType
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListWorkersWithQualificationType (Maybe Text)
listWorkersWithQualificationType_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListWorkersWithQualificationType
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListWorkersWithQualificationTypeResponse (Maybe Text)
listWorkersWithQualificationTypeResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
ListWorkersWithQualificationType
where
type
AWSResponse ListWorkersWithQualificationType =
ListWorkersWithQualificationTypeResponse
request :: (Service -> Service)
-> ListWorkersWithQualificationType
-> Request ListWorkersWithQualificationType
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListWorkersWithQualificationType
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListWorkersWithQualificationType)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Int
-> Maybe [Qualification]
-> Int
-> ListWorkersWithQualificationTypeResponse
ListWorkersWithQualificationTypeResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NumResults")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Qualifications" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
ListWorkersWithQualificationType
where
hashWithSalt :: Int -> ListWorkersWithQualificationType -> Int
hashWithSalt
Int
_salt
ListWorkersWithQualificationType' {Maybe Natural
Maybe Text
Maybe QualificationStatus
Text
qualificationTypeId :: Text
status :: Maybe QualificationStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:qualificationTypeId:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Text
$sel:status:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe QualificationStatus
$sel:nextToken:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Text
$sel:maxResults:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe QualificationStatus
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
qualificationTypeId
instance
Prelude.NFData
ListWorkersWithQualificationType
where
rnf :: ListWorkersWithQualificationType -> ()
rnf ListWorkersWithQualificationType' {Maybe Natural
Maybe Text
Maybe QualificationStatus
Text
qualificationTypeId :: Text
status :: Maybe QualificationStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:qualificationTypeId:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Text
$sel:status:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe QualificationStatus
$sel:nextToken:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Text
$sel:maxResults:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe QualificationStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
qualificationTypeId
instance
Data.ToHeaders
ListWorkersWithQualificationType
where
toHeaders :: ListWorkersWithQualificationType -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"MTurkRequesterServiceV20170117.ListWorkersWithQualificationType" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListWorkersWithQualificationType where
toJSON :: ListWorkersWithQualificationType -> Value
toJSON ListWorkersWithQualificationType' {Maybe Natural
Maybe Text
Maybe QualificationStatus
Text
qualificationTypeId :: Text
status :: Maybe QualificationStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:qualificationTypeId:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Text
$sel:status:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe QualificationStatus
$sel:nextToken:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Text
$sel:maxResults:ListWorkersWithQualificationType' :: ListWorkersWithQualificationType -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Key
"Status" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QualificationStatus
status,
forall a. a -> Maybe a
Prelude.Just
(Key
"QualificationTypeId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
qualificationTypeId)
]
)
instance Data.ToPath ListWorkersWithQualificationType where
toPath :: ListWorkersWithQualificationType -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
ListWorkersWithQualificationType
where
toQuery :: ListWorkersWithQualificationType -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListWorkersWithQualificationTypeResponse = ListWorkersWithQualificationTypeResponse'
{ ListWorkersWithQualificationTypeResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListWorkersWithQualificationTypeResponse -> Maybe Int
numResults :: Prelude.Maybe Prelude.Int,
ListWorkersWithQualificationTypeResponse -> Maybe [Qualification]
qualifications :: Prelude.Maybe [Qualification],
ListWorkersWithQualificationTypeResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListWorkersWithQualificationTypeResponse
-> ListWorkersWithQualificationTypeResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorkersWithQualificationTypeResponse
-> ListWorkersWithQualificationTypeResponse -> Bool
$c/= :: ListWorkersWithQualificationTypeResponse
-> ListWorkersWithQualificationTypeResponse -> Bool
== :: ListWorkersWithQualificationTypeResponse
-> ListWorkersWithQualificationTypeResponse -> Bool
$c== :: ListWorkersWithQualificationTypeResponse
-> ListWorkersWithQualificationTypeResponse -> Bool
Prelude.Eq, ReadPrec [ListWorkersWithQualificationTypeResponse]
ReadPrec ListWorkersWithQualificationTypeResponse
Int -> ReadS ListWorkersWithQualificationTypeResponse
ReadS [ListWorkersWithQualificationTypeResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorkersWithQualificationTypeResponse]
$creadListPrec :: ReadPrec [ListWorkersWithQualificationTypeResponse]
readPrec :: ReadPrec ListWorkersWithQualificationTypeResponse
$creadPrec :: ReadPrec ListWorkersWithQualificationTypeResponse
readList :: ReadS [ListWorkersWithQualificationTypeResponse]
$creadList :: ReadS [ListWorkersWithQualificationTypeResponse]
readsPrec :: Int -> ReadS ListWorkersWithQualificationTypeResponse
$creadsPrec :: Int -> ReadS ListWorkersWithQualificationTypeResponse
Prelude.Read, Int -> ListWorkersWithQualificationTypeResponse -> ShowS
[ListWorkersWithQualificationTypeResponse] -> ShowS
ListWorkersWithQualificationTypeResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorkersWithQualificationTypeResponse] -> ShowS
$cshowList :: [ListWorkersWithQualificationTypeResponse] -> ShowS
show :: ListWorkersWithQualificationTypeResponse -> String
$cshow :: ListWorkersWithQualificationTypeResponse -> String
showsPrec :: Int -> ListWorkersWithQualificationTypeResponse -> ShowS
$cshowsPrec :: Int -> ListWorkersWithQualificationTypeResponse -> ShowS
Prelude.Show, forall x.
Rep ListWorkersWithQualificationTypeResponse x
-> ListWorkersWithQualificationTypeResponse
forall x.
ListWorkersWithQualificationTypeResponse
-> Rep ListWorkersWithQualificationTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListWorkersWithQualificationTypeResponse x
-> ListWorkersWithQualificationTypeResponse
$cfrom :: forall x.
ListWorkersWithQualificationTypeResponse
-> Rep ListWorkersWithQualificationTypeResponse x
Prelude.Generic)
newListWorkersWithQualificationTypeResponse ::
Prelude.Int ->
ListWorkersWithQualificationTypeResponse
newListWorkersWithQualificationTypeResponse :: Int -> ListWorkersWithQualificationTypeResponse
newListWorkersWithQualificationTypeResponse
Int
pHttpStatus_ =
ListWorkersWithQualificationTypeResponse'
{ $sel:nextToken:ListWorkersWithQualificationTypeResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:numResults:ListWorkersWithQualificationTypeResponse' :: Maybe Int
numResults = forall a. Maybe a
Prelude.Nothing,
$sel:qualifications:ListWorkersWithQualificationTypeResponse' :: Maybe [Qualification]
qualifications = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListWorkersWithQualificationTypeResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listWorkersWithQualificationTypeResponse_nextToken :: Lens.Lens' ListWorkersWithQualificationTypeResponse (Prelude.Maybe Prelude.Text)
listWorkersWithQualificationTypeResponse_nextToken :: Lens' ListWorkersWithQualificationTypeResponse (Maybe Text)
listWorkersWithQualificationTypeResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationTypeResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorkersWithQualificationTypeResponse
s@ListWorkersWithQualificationTypeResponse' {} Maybe Text
a -> ListWorkersWithQualificationTypeResponse
s {$sel:nextToken:ListWorkersWithQualificationTypeResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorkersWithQualificationTypeResponse)
listWorkersWithQualificationTypeResponse_numResults :: Lens.Lens' ListWorkersWithQualificationTypeResponse (Prelude.Maybe Prelude.Int)
listWorkersWithQualificationTypeResponse_numResults :: Lens' ListWorkersWithQualificationTypeResponse (Maybe Int)
listWorkersWithQualificationTypeResponse_numResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationTypeResponse' {Maybe Int
numResults :: Maybe Int
$sel:numResults:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Maybe Int
numResults} -> Maybe Int
numResults) (\s :: ListWorkersWithQualificationTypeResponse
s@ListWorkersWithQualificationTypeResponse' {} Maybe Int
a -> ListWorkersWithQualificationTypeResponse
s {$sel:numResults:ListWorkersWithQualificationTypeResponse' :: Maybe Int
numResults = Maybe Int
a} :: ListWorkersWithQualificationTypeResponse)
listWorkersWithQualificationTypeResponse_qualifications :: Lens.Lens' ListWorkersWithQualificationTypeResponse (Prelude.Maybe [Qualification])
listWorkersWithQualificationTypeResponse_qualifications :: Lens'
ListWorkersWithQualificationTypeResponse (Maybe [Qualification])
listWorkersWithQualificationTypeResponse_qualifications = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationTypeResponse' {Maybe [Qualification]
qualifications :: Maybe [Qualification]
$sel:qualifications:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Maybe [Qualification]
qualifications} -> Maybe [Qualification]
qualifications) (\s :: ListWorkersWithQualificationTypeResponse
s@ListWorkersWithQualificationTypeResponse' {} Maybe [Qualification]
a -> ListWorkersWithQualificationTypeResponse
s {$sel:qualifications:ListWorkersWithQualificationTypeResponse' :: Maybe [Qualification]
qualifications = Maybe [Qualification]
a} :: ListWorkersWithQualificationTypeResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listWorkersWithQualificationTypeResponse_httpStatus :: Lens.Lens' ListWorkersWithQualificationTypeResponse Prelude.Int
listWorkersWithQualificationTypeResponse_httpStatus :: Lens' ListWorkersWithQualificationTypeResponse Int
listWorkersWithQualificationTypeResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkersWithQualificationTypeResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListWorkersWithQualificationTypeResponse
s@ListWorkersWithQualificationTypeResponse' {} Int
a -> ListWorkersWithQualificationTypeResponse
s {$sel:httpStatus:ListWorkersWithQualificationTypeResponse' :: Int
httpStatus = Int
a} :: ListWorkersWithQualificationTypeResponse)
instance
Prelude.NFData
ListWorkersWithQualificationTypeResponse
where
rnf :: ListWorkersWithQualificationTypeResponse -> ()
rnf ListWorkersWithQualificationTypeResponse' {Int
Maybe Int
Maybe [Qualification]
Maybe Text
httpStatus :: Int
qualifications :: Maybe [Qualification]
numResults :: Maybe Int
nextToken :: Maybe Text
$sel:httpStatus:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Int
$sel:qualifications:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Maybe [Qualification]
$sel:numResults:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Maybe Int
$sel:nextToken:ListWorkersWithQualificationTypeResponse' :: ListWorkersWithQualificationTypeResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
numResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Qualification]
qualifications
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus