{-# 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.ListQualificationRequests
(
ListQualificationRequests (..),
newListQualificationRequests,
listQualificationRequests_nextToken,
listQualificationRequests_qualificationTypeId,
listQualificationRequests_maxResults,
ListQualificationRequestsResponse (..),
newListQualificationRequestsResponse,
listQualificationRequestsResponse_qualificationRequests,
listQualificationRequestsResponse_nextToken,
listQualificationRequestsResponse_numResults,
listQualificationRequestsResponse_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 ListQualificationRequests = ListQualificationRequests'
{ ListQualificationRequests -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListQualificationRequests -> Maybe Text
qualificationTypeId :: Prelude.Maybe Prelude.Text,
ListQualificationRequests -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListQualificationRequests -> ListQualificationRequests -> Bool
(ListQualificationRequests -> ListQualificationRequests -> Bool)
-> (ListQualificationRequests -> ListQualificationRequests -> Bool)
-> Eq ListQualificationRequests
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListQualificationRequests -> ListQualificationRequests -> Bool
$c/= :: ListQualificationRequests -> ListQualificationRequests -> Bool
== :: ListQualificationRequests -> ListQualificationRequests -> Bool
$c== :: ListQualificationRequests -> ListQualificationRequests -> Bool
Prelude.Eq, ReadPrec [ListQualificationRequests]
ReadPrec ListQualificationRequests
Int -> ReadS ListQualificationRequests
ReadS [ListQualificationRequests]
(Int -> ReadS ListQualificationRequests)
-> ReadS [ListQualificationRequests]
-> ReadPrec ListQualificationRequests
-> ReadPrec [ListQualificationRequests]
-> Read ListQualificationRequests
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListQualificationRequests]
$creadListPrec :: ReadPrec [ListQualificationRequests]
readPrec :: ReadPrec ListQualificationRequests
$creadPrec :: ReadPrec ListQualificationRequests
readList :: ReadS [ListQualificationRequests]
$creadList :: ReadS [ListQualificationRequests]
readsPrec :: Int -> ReadS ListQualificationRequests
$creadsPrec :: Int -> ReadS ListQualificationRequests
Prelude.Read, Int -> ListQualificationRequests -> ShowS
[ListQualificationRequests] -> ShowS
ListQualificationRequests -> String
(Int -> ListQualificationRequests -> ShowS)
-> (ListQualificationRequests -> String)
-> ([ListQualificationRequests] -> ShowS)
-> Show ListQualificationRequests
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListQualificationRequests] -> ShowS
$cshowList :: [ListQualificationRequests] -> ShowS
show :: ListQualificationRequests -> String
$cshow :: ListQualificationRequests -> String
showsPrec :: Int -> ListQualificationRequests -> ShowS
$cshowsPrec :: Int -> ListQualificationRequests -> ShowS
Prelude.Show, (forall x.
ListQualificationRequests -> Rep ListQualificationRequests x)
-> (forall x.
Rep ListQualificationRequests x -> ListQualificationRequests)
-> Generic ListQualificationRequests
forall x.
Rep ListQualificationRequests x -> ListQualificationRequests
forall x.
ListQualificationRequests -> Rep ListQualificationRequests x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListQualificationRequests x -> ListQualificationRequests
$cfrom :: forall x.
ListQualificationRequests -> Rep ListQualificationRequests x
Prelude.Generic)
newListQualificationRequests ::
ListQualificationRequests
newListQualificationRequests :: ListQualificationRequests
newListQualificationRequests =
ListQualificationRequests' :: Maybe Text
-> Maybe Text -> Maybe Natural -> ListQualificationRequests
ListQualificationRequests'
{ $sel:nextToken:ListQualificationRequests' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:qualificationTypeId:ListQualificationRequests' :: Maybe Text
qualificationTypeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListQualificationRequests' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listQualificationRequests_nextToken :: Lens.Lens' ListQualificationRequests (Prelude.Maybe Prelude.Text)
listQualificationRequests_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListQualificationRequests -> f ListQualificationRequests
listQualificationRequests_nextToken = (ListQualificationRequests -> Maybe Text)
-> (ListQualificationRequests
-> Maybe Text -> ListQualificationRequests)
-> Lens
ListQualificationRequests
ListQualificationRequests
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationRequests' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListQualificationRequests' :: ListQualificationRequests -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListQualificationRequests
s@ListQualificationRequests' {} Maybe Text
a -> ListQualificationRequests
s {$sel:nextToken:ListQualificationRequests' :: Maybe Text
nextToken = Maybe Text
a} :: ListQualificationRequests)
listQualificationRequests_qualificationTypeId :: Lens.Lens' ListQualificationRequests (Prelude.Maybe Prelude.Text)
listQualificationRequests_qualificationTypeId :: (Maybe Text -> f (Maybe Text))
-> ListQualificationRequests -> f ListQualificationRequests
listQualificationRequests_qualificationTypeId = (ListQualificationRequests -> Maybe Text)
-> (ListQualificationRequests
-> Maybe Text -> ListQualificationRequests)
-> Lens
ListQualificationRequests
ListQualificationRequests
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationRequests' {Maybe Text
qualificationTypeId :: Maybe Text
$sel:qualificationTypeId:ListQualificationRequests' :: ListQualificationRequests -> Maybe Text
qualificationTypeId} -> Maybe Text
qualificationTypeId) (\s :: ListQualificationRequests
s@ListQualificationRequests' {} Maybe Text
a -> ListQualificationRequests
s {$sel:qualificationTypeId:ListQualificationRequests' :: Maybe Text
qualificationTypeId = Maybe Text
a} :: ListQualificationRequests)
listQualificationRequests_maxResults :: Lens.Lens' ListQualificationRequests (Prelude.Maybe Prelude.Natural)
listQualificationRequests_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListQualificationRequests -> f ListQualificationRequests
listQualificationRequests_maxResults = (ListQualificationRequests -> Maybe Natural)
-> (ListQualificationRequests
-> Maybe Natural -> ListQualificationRequests)
-> Lens
ListQualificationRequests
ListQualificationRequests
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationRequests' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListQualificationRequests' :: ListQualificationRequests -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListQualificationRequests
s@ListQualificationRequests' {} Maybe Natural
a -> ListQualificationRequests
s {$sel:maxResults:ListQualificationRequests' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListQualificationRequests)
instance Core.AWSPager ListQualificationRequests where
page :: ListQualificationRequests
-> AWSResponse ListQualificationRequests
-> Maybe ListQualificationRequests
page ListQualificationRequests
rq AWSResponse ListQualificationRequests
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListQualificationRequests
ListQualificationRequestsResponse
rs
ListQualificationRequestsResponse
-> Getting (First Text) ListQualificationRequestsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationRequestsResponse
-> Const (First Text) ListQualificationRequestsResponse
Lens' ListQualificationRequestsResponse (Maybe Text)
listQualificationRequestsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationRequestsResponse
-> Const (First Text) ListQualificationRequestsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListQualificationRequestsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListQualificationRequests
forall a. Maybe a
Prelude.Nothing
| Maybe [QualificationRequest] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListQualificationRequests
ListQualificationRequestsResponse
rs
ListQualificationRequestsResponse
-> Getting
(First [QualificationRequest])
ListQualificationRequestsResponse
[QualificationRequest]
-> Maybe [QualificationRequest]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [QualificationRequest]
-> Const
(First [QualificationRequest]) (Maybe [QualificationRequest]))
-> ListQualificationRequestsResponse
-> Const
(First [QualificationRequest]) ListQualificationRequestsResponse
Lens'
ListQualificationRequestsResponse (Maybe [QualificationRequest])
listQualificationRequestsResponse_qualificationRequests
((Maybe [QualificationRequest]
-> Const
(First [QualificationRequest]) (Maybe [QualificationRequest]))
-> ListQualificationRequestsResponse
-> Const
(First [QualificationRequest]) ListQualificationRequestsResponse)
-> (([QualificationRequest]
-> Const (First [QualificationRequest]) [QualificationRequest])
-> Maybe [QualificationRequest]
-> Const
(First [QualificationRequest]) (Maybe [QualificationRequest]))
-> Getting
(First [QualificationRequest])
ListQualificationRequestsResponse
[QualificationRequest]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([QualificationRequest]
-> Const (First [QualificationRequest]) [QualificationRequest])
-> Maybe [QualificationRequest]
-> Const
(First [QualificationRequest]) (Maybe [QualificationRequest])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListQualificationRequests
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListQualificationRequests -> Maybe ListQualificationRequests
forall a. a -> Maybe a
Prelude.Just (ListQualificationRequests -> Maybe ListQualificationRequests)
-> ListQualificationRequests -> Maybe ListQualificationRequests
forall a b. (a -> b) -> a -> b
Prelude.$
ListQualificationRequests
rq
ListQualificationRequests
-> (ListQualificationRequests -> ListQualificationRequests)
-> ListQualificationRequests
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListQualificationRequests -> Identity ListQualificationRequests
Lens
ListQualificationRequests
ListQualificationRequests
(Maybe Text)
(Maybe Text)
listQualificationRequests_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListQualificationRequests -> Identity ListQualificationRequests)
-> Maybe Text
-> ListQualificationRequests
-> ListQualificationRequests
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListQualificationRequests
ListQualificationRequestsResponse
rs
ListQualificationRequestsResponse
-> Getting (First Text) ListQualificationRequestsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationRequestsResponse
-> Const (First Text) ListQualificationRequestsResponse
Lens' ListQualificationRequestsResponse (Maybe Text)
listQualificationRequestsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationRequestsResponse
-> Const (First Text) ListQualificationRequestsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListQualificationRequestsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListQualificationRequests where
type
AWSResponse ListQualificationRequests =
ListQualificationRequestsResponse
request :: ListQualificationRequests -> Request ListQualificationRequests
request = Service
-> ListQualificationRequests -> Request ListQualificationRequests
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListQualificationRequests
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListQualificationRequests)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListQualificationRequests))
-> Logger
-> Service
-> Proxy ListQualificationRequests
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListQualificationRequests)))
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 [QualificationRequest]
-> Maybe Text
-> Maybe Int
-> Int
-> ListQualificationRequestsResponse
ListQualificationRequestsResponse'
(Maybe [QualificationRequest]
-> Maybe Text
-> Maybe Int
-> Int
-> ListQualificationRequestsResponse)
-> Either String (Maybe [QualificationRequest])
-> Either
String
(Maybe Text
-> Maybe Int -> Int -> ListQualificationRequestsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [QualificationRequest]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"QualificationRequests"
Either String (Maybe (Maybe [QualificationRequest]))
-> Maybe [QualificationRequest]
-> Either String (Maybe [QualificationRequest])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [QualificationRequest]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text
-> Maybe Int -> Int -> ListQualificationRequestsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Int -> Int -> ListQualificationRequestsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"NextToken")
Either
String (Maybe Int -> Int -> ListQualificationRequestsResponse)
-> Either String (Maybe Int)
-> Either String (Int -> ListQualificationRequestsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NumResults")
Either String (Int -> ListQualificationRequestsResponse)
-> Either String Int
-> Either String ListQualificationRequestsResponse
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 ListQualificationRequests
instance Prelude.NFData ListQualificationRequests
instance Core.ToHeaders ListQualificationRequests where
toHeaders :: ListQualificationRequests -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListQualificationRequests -> 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.ListQualificationRequests" ::
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 ListQualificationRequests where
toJSON :: ListQualificationRequests -> Value
toJSON ListQualificationRequests' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
qualificationTypeId :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:ListQualificationRequests' :: ListQualificationRequests -> Maybe Natural
$sel:qualificationTypeId:ListQualificationRequests' :: ListQualificationRequests -> Maybe Text
$sel:nextToken:ListQualificationRequests' :: ListQualificationRequests -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"QualificationTypeId" 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
qualificationTypeId,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListQualificationRequests where
toPath :: ListQualificationRequests -> ByteString
toPath = ByteString -> ListQualificationRequests -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListQualificationRequests where
toQuery :: ListQualificationRequests -> QueryString
toQuery = QueryString -> ListQualificationRequests -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListQualificationRequestsResponse = ListQualificationRequestsResponse'
{
ListQualificationRequestsResponse -> Maybe [QualificationRequest]
qualificationRequests :: Prelude.Maybe [QualificationRequest],
ListQualificationRequestsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListQualificationRequestsResponse -> Maybe Int
numResults :: Prelude.Maybe Prelude.Int,
ListQualificationRequestsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListQualificationRequestsResponse
-> ListQualificationRequestsResponse -> Bool
(ListQualificationRequestsResponse
-> ListQualificationRequestsResponse -> Bool)
-> (ListQualificationRequestsResponse
-> ListQualificationRequestsResponse -> Bool)
-> Eq ListQualificationRequestsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListQualificationRequestsResponse
-> ListQualificationRequestsResponse -> Bool
$c/= :: ListQualificationRequestsResponse
-> ListQualificationRequestsResponse -> Bool
== :: ListQualificationRequestsResponse
-> ListQualificationRequestsResponse -> Bool
$c== :: ListQualificationRequestsResponse
-> ListQualificationRequestsResponse -> Bool
Prelude.Eq, ReadPrec [ListQualificationRequestsResponse]
ReadPrec ListQualificationRequestsResponse
Int -> ReadS ListQualificationRequestsResponse
ReadS [ListQualificationRequestsResponse]
(Int -> ReadS ListQualificationRequestsResponse)
-> ReadS [ListQualificationRequestsResponse]
-> ReadPrec ListQualificationRequestsResponse
-> ReadPrec [ListQualificationRequestsResponse]
-> Read ListQualificationRequestsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListQualificationRequestsResponse]
$creadListPrec :: ReadPrec [ListQualificationRequestsResponse]
readPrec :: ReadPrec ListQualificationRequestsResponse
$creadPrec :: ReadPrec ListQualificationRequestsResponse
readList :: ReadS [ListQualificationRequestsResponse]
$creadList :: ReadS [ListQualificationRequestsResponse]
readsPrec :: Int -> ReadS ListQualificationRequestsResponse
$creadsPrec :: Int -> ReadS ListQualificationRequestsResponse
Prelude.Read, Int -> ListQualificationRequestsResponse -> ShowS
[ListQualificationRequestsResponse] -> ShowS
ListQualificationRequestsResponse -> String
(Int -> ListQualificationRequestsResponse -> ShowS)
-> (ListQualificationRequestsResponse -> String)
-> ([ListQualificationRequestsResponse] -> ShowS)
-> Show ListQualificationRequestsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListQualificationRequestsResponse] -> ShowS
$cshowList :: [ListQualificationRequestsResponse] -> ShowS
show :: ListQualificationRequestsResponse -> String
$cshow :: ListQualificationRequestsResponse -> String
showsPrec :: Int -> ListQualificationRequestsResponse -> ShowS
$cshowsPrec :: Int -> ListQualificationRequestsResponse -> ShowS
Prelude.Show, (forall x.
ListQualificationRequestsResponse
-> Rep ListQualificationRequestsResponse x)
-> (forall x.
Rep ListQualificationRequestsResponse x
-> ListQualificationRequestsResponse)
-> Generic ListQualificationRequestsResponse
forall x.
Rep ListQualificationRequestsResponse x
-> ListQualificationRequestsResponse
forall x.
ListQualificationRequestsResponse
-> Rep ListQualificationRequestsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListQualificationRequestsResponse x
-> ListQualificationRequestsResponse
$cfrom :: forall x.
ListQualificationRequestsResponse
-> Rep ListQualificationRequestsResponse x
Prelude.Generic)
newListQualificationRequestsResponse ::
Prelude.Int ->
ListQualificationRequestsResponse
newListQualificationRequestsResponse :: Int -> ListQualificationRequestsResponse
newListQualificationRequestsResponse Int
pHttpStatus_ =
ListQualificationRequestsResponse' :: Maybe [QualificationRequest]
-> Maybe Text
-> Maybe Int
-> Int
-> ListQualificationRequestsResponse
ListQualificationRequestsResponse'
{ $sel:qualificationRequests:ListQualificationRequestsResponse' :: Maybe [QualificationRequest]
qualificationRequests =
Maybe [QualificationRequest]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListQualificationRequestsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:numResults:ListQualificationRequestsResponse' :: Maybe Int
numResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListQualificationRequestsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listQualificationRequestsResponse_qualificationRequests :: Lens.Lens' ListQualificationRequestsResponse (Prelude.Maybe [QualificationRequest])
listQualificationRequestsResponse_qualificationRequests :: (Maybe [QualificationRequest] -> f (Maybe [QualificationRequest]))
-> ListQualificationRequestsResponse
-> f ListQualificationRequestsResponse
listQualificationRequestsResponse_qualificationRequests = (ListQualificationRequestsResponse -> Maybe [QualificationRequest])
-> (ListQualificationRequestsResponse
-> Maybe [QualificationRequest]
-> ListQualificationRequestsResponse)
-> Lens'
ListQualificationRequestsResponse (Maybe [QualificationRequest])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationRequestsResponse' {Maybe [QualificationRequest]
qualificationRequests :: Maybe [QualificationRequest]
$sel:qualificationRequests:ListQualificationRequestsResponse' :: ListQualificationRequestsResponse -> Maybe [QualificationRequest]
qualificationRequests} -> Maybe [QualificationRequest]
qualificationRequests) (\s :: ListQualificationRequestsResponse
s@ListQualificationRequestsResponse' {} Maybe [QualificationRequest]
a -> ListQualificationRequestsResponse
s {$sel:qualificationRequests:ListQualificationRequestsResponse' :: Maybe [QualificationRequest]
qualificationRequests = Maybe [QualificationRequest]
a} :: ListQualificationRequestsResponse) ((Maybe [QualificationRequest] -> f (Maybe [QualificationRequest]))
-> ListQualificationRequestsResponse
-> f ListQualificationRequestsResponse)
-> ((Maybe [QualificationRequest]
-> f (Maybe [QualificationRequest]))
-> Maybe [QualificationRequest]
-> f (Maybe [QualificationRequest]))
-> (Maybe [QualificationRequest]
-> f (Maybe [QualificationRequest]))
-> ListQualificationRequestsResponse
-> f ListQualificationRequestsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[QualificationRequest]
[QualificationRequest]
[QualificationRequest]
[QualificationRequest]
-> Iso
(Maybe [QualificationRequest])
(Maybe [QualificationRequest])
(Maybe [QualificationRequest])
(Maybe [QualificationRequest])
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
[QualificationRequest]
[QualificationRequest]
[QualificationRequest]
[QualificationRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listQualificationRequestsResponse_nextToken :: Lens.Lens' ListQualificationRequestsResponse (Prelude.Maybe Prelude.Text)
listQualificationRequestsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListQualificationRequestsResponse
-> f ListQualificationRequestsResponse
listQualificationRequestsResponse_nextToken = (ListQualificationRequestsResponse -> Maybe Text)
-> (ListQualificationRequestsResponse
-> Maybe Text -> ListQualificationRequestsResponse)
-> Lens' ListQualificationRequestsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationRequestsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListQualificationRequestsResponse' :: ListQualificationRequestsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListQualificationRequestsResponse
s@ListQualificationRequestsResponse' {} Maybe Text
a -> ListQualificationRequestsResponse
s {$sel:nextToken:ListQualificationRequestsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListQualificationRequestsResponse)
listQualificationRequestsResponse_numResults :: Lens.Lens' ListQualificationRequestsResponse (Prelude.Maybe Prelude.Int)
listQualificationRequestsResponse_numResults :: (Maybe Int -> f (Maybe Int))
-> ListQualificationRequestsResponse
-> f ListQualificationRequestsResponse
listQualificationRequestsResponse_numResults = (ListQualificationRequestsResponse -> Maybe Int)
-> (ListQualificationRequestsResponse
-> Maybe Int -> ListQualificationRequestsResponse)
-> Lens
ListQualificationRequestsResponse
ListQualificationRequestsResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationRequestsResponse' {Maybe Int
numResults :: Maybe Int
$sel:numResults:ListQualificationRequestsResponse' :: ListQualificationRequestsResponse -> Maybe Int
numResults} -> Maybe Int
numResults) (\s :: ListQualificationRequestsResponse
s@ListQualificationRequestsResponse' {} Maybe Int
a -> ListQualificationRequestsResponse
s {$sel:numResults:ListQualificationRequestsResponse' :: Maybe Int
numResults = Maybe Int
a} :: ListQualificationRequestsResponse)
listQualificationRequestsResponse_httpStatus :: Lens.Lens' ListQualificationRequestsResponse Prelude.Int
listQualificationRequestsResponse_httpStatus :: (Int -> f Int)
-> ListQualificationRequestsResponse
-> f ListQualificationRequestsResponse
listQualificationRequestsResponse_httpStatus = (ListQualificationRequestsResponse -> Int)
-> (ListQualificationRequestsResponse
-> Int -> ListQualificationRequestsResponse)
-> Lens
ListQualificationRequestsResponse
ListQualificationRequestsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationRequestsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListQualificationRequestsResponse' :: ListQualificationRequestsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListQualificationRequestsResponse
s@ListQualificationRequestsResponse' {} Int
a -> ListQualificationRequestsResponse
s {$sel:httpStatus:ListQualificationRequestsResponse' :: Int
httpStatus = Int
a} :: ListQualificationRequestsResponse)
instance
Prelude.NFData
ListQualificationRequestsResponse