{-# 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.ListQualificationTypes
(
ListQualificationTypes (..),
newListQualificationTypes,
listQualificationTypes_mustBeOwnedByCaller,
listQualificationTypes_nextToken,
listQualificationTypes_query,
listQualificationTypes_maxResults,
listQualificationTypes_mustBeRequestable,
ListQualificationTypesResponse (..),
newListQualificationTypesResponse,
listQualificationTypesResponse_qualificationTypes,
listQualificationTypesResponse_nextToken,
listQualificationTypesResponse_numResults,
listQualificationTypesResponse_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 ListQualificationTypes = ListQualificationTypes'
{
ListQualificationTypes -> Maybe Bool
mustBeOwnedByCaller :: Prelude.Maybe Prelude.Bool,
ListQualificationTypes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListQualificationTypes -> Maybe Text
query :: Prelude.Maybe Prelude.Text,
ListQualificationTypes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListQualificationTypes -> Bool
mustBeRequestable :: Prelude.Bool
}
deriving (ListQualificationTypes -> ListQualificationTypes -> Bool
(ListQualificationTypes -> ListQualificationTypes -> Bool)
-> (ListQualificationTypes -> ListQualificationTypes -> Bool)
-> Eq ListQualificationTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListQualificationTypes -> ListQualificationTypes -> Bool
$c/= :: ListQualificationTypes -> ListQualificationTypes -> Bool
== :: ListQualificationTypes -> ListQualificationTypes -> Bool
$c== :: ListQualificationTypes -> ListQualificationTypes -> Bool
Prelude.Eq, ReadPrec [ListQualificationTypes]
ReadPrec ListQualificationTypes
Int -> ReadS ListQualificationTypes
ReadS [ListQualificationTypes]
(Int -> ReadS ListQualificationTypes)
-> ReadS [ListQualificationTypes]
-> ReadPrec ListQualificationTypes
-> ReadPrec [ListQualificationTypes]
-> Read ListQualificationTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListQualificationTypes]
$creadListPrec :: ReadPrec [ListQualificationTypes]
readPrec :: ReadPrec ListQualificationTypes
$creadPrec :: ReadPrec ListQualificationTypes
readList :: ReadS [ListQualificationTypes]
$creadList :: ReadS [ListQualificationTypes]
readsPrec :: Int -> ReadS ListQualificationTypes
$creadsPrec :: Int -> ReadS ListQualificationTypes
Prelude.Read, Int -> ListQualificationTypes -> ShowS
[ListQualificationTypes] -> ShowS
ListQualificationTypes -> String
(Int -> ListQualificationTypes -> ShowS)
-> (ListQualificationTypes -> String)
-> ([ListQualificationTypes] -> ShowS)
-> Show ListQualificationTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListQualificationTypes] -> ShowS
$cshowList :: [ListQualificationTypes] -> ShowS
show :: ListQualificationTypes -> String
$cshow :: ListQualificationTypes -> String
showsPrec :: Int -> ListQualificationTypes -> ShowS
$cshowsPrec :: Int -> ListQualificationTypes -> ShowS
Prelude.Show, (forall x. ListQualificationTypes -> Rep ListQualificationTypes x)
-> (forall x.
Rep ListQualificationTypes x -> ListQualificationTypes)
-> Generic ListQualificationTypes
forall x. Rep ListQualificationTypes x -> ListQualificationTypes
forall x. ListQualificationTypes -> Rep ListQualificationTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListQualificationTypes x -> ListQualificationTypes
$cfrom :: forall x. ListQualificationTypes -> Rep ListQualificationTypes x
Prelude.Generic)
newListQualificationTypes ::
Prelude.Bool ->
ListQualificationTypes
newListQualificationTypes :: Bool -> ListQualificationTypes
newListQualificationTypes Bool
pMustBeRequestable_ =
ListQualificationTypes' :: Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Bool
-> ListQualificationTypes
ListQualificationTypes'
{ $sel:mustBeOwnedByCaller:ListQualificationTypes' :: Maybe Bool
mustBeOwnedByCaller =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListQualificationTypes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:query:ListQualificationTypes' :: Maybe Text
query = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListQualificationTypes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:mustBeRequestable:ListQualificationTypes' :: Bool
mustBeRequestable = Bool
pMustBeRequestable_
}
listQualificationTypes_mustBeOwnedByCaller :: Lens.Lens' ListQualificationTypes (Prelude.Maybe Prelude.Bool)
listQualificationTypes_mustBeOwnedByCaller :: (Maybe Bool -> f (Maybe Bool))
-> ListQualificationTypes -> f ListQualificationTypes
listQualificationTypes_mustBeOwnedByCaller = (ListQualificationTypes -> Maybe Bool)
-> (ListQualificationTypes -> Maybe Bool -> ListQualificationTypes)
-> Lens
ListQualificationTypes
ListQualificationTypes
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypes' {Maybe Bool
mustBeOwnedByCaller :: Maybe Bool
$sel:mustBeOwnedByCaller:ListQualificationTypes' :: ListQualificationTypes -> Maybe Bool
mustBeOwnedByCaller} -> Maybe Bool
mustBeOwnedByCaller) (\s :: ListQualificationTypes
s@ListQualificationTypes' {} Maybe Bool
a -> ListQualificationTypes
s {$sel:mustBeOwnedByCaller:ListQualificationTypes' :: Maybe Bool
mustBeOwnedByCaller = Maybe Bool
a} :: ListQualificationTypes)
listQualificationTypes_nextToken :: Lens.Lens' ListQualificationTypes (Prelude.Maybe Prelude.Text)
listQualificationTypes_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListQualificationTypes -> f ListQualificationTypes
listQualificationTypes_nextToken = (ListQualificationTypes -> Maybe Text)
-> (ListQualificationTypes -> Maybe Text -> ListQualificationTypes)
-> Lens
ListQualificationTypes
ListQualificationTypes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListQualificationTypes' :: ListQualificationTypes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListQualificationTypes
s@ListQualificationTypes' {} Maybe Text
a -> ListQualificationTypes
s {$sel:nextToken:ListQualificationTypes' :: Maybe Text
nextToken = Maybe Text
a} :: ListQualificationTypes)
listQualificationTypes_query :: Lens.Lens' ListQualificationTypes (Prelude.Maybe Prelude.Text)
listQualificationTypes_query :: (Maybe Text -> f (Maybe Text))
-> ListQualificationTypes -> f ListQualificationTypes
listQualificationTypes_query = (ListQualificationTypes -> Maybe Text)
-> (ListQualificationTypes -> Maybe Text -> ListQualificationTypes)
-> Lens
ListQualificationTypes
ListQualificationTypes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypes' {Maybe Text
query :: Maybe Text
$sel:query:ListQualificationTypes' :: ListQualificationTypes -> Maybe Text
query} -> Maybe Text
query) (\s :: ListQualificationTypes
s@ListQualificationTypes' {} Maybe Text
a -> ListQualificationTypes
s {$sel:query:ListQualificationTypes' :: Maybe Text
query = Maybe Text
a} :: ListQualificationTypes)
listQualificationTypes_maxResults :: Lens.Lens' ListQualificationTypes (Prelude.Maybe Prelude.Natural)
listQualificationTypes_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListQualificationTypes -> f ListQualificationTypes
listQualificationTypes_maxResults = (ListQualificationTypes -> Maybe Natural)
-> (ListQualificationTypes
-> Maybe Natural -> ListQualificationTypes)
-> Lens
ListQualificationTypes
ListQualificationTypes
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListQualificationTypes' :: ListQualificationTypes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListQualificationTypes
s@ListQualificationTypes' {} Maybe Natural
a -> ListQualificationTypes
s {$sel:maxResults:ListQualificationTypes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListQualificationTypes)
listQualificationTypes_mustBeRequestable :: Lens.Lens' ListQualificationTypes Prelude.Bool
listQualificationTypes_mustBeRequestable :: (Bool -> f Bool)
-> ListQualificationTypes -> f ListQualificationTypes
listQualificationTypes_mustBeRequestable = (ListQualificationTypes -> Bool)
-> (ListQualificationTypes -> Bool -> ListQualificationTypes)
-> Lens ListQualificationTypes ListQualificationTypes Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypes' {Bool
mustBeRequestable :: Bool
$sel:mustBeRequestable:ListQualificationTypes' :: ListQualificationTypes -> Bool
mustBeRequestable} -> Bool
mustBeRequestable) (\s :: ListQualificationTypes
s@ListQualificationTypes' {} Bool
a -> ListQualificationTypes
s {$sel:mustBeRequestable:ListQualificationTypes' :: Bool
mustBeRequestable = Bool
a} :: ListQualificationTypes)
instance Core.AWSPager ListQualificationTypes where
page :: ListQualificationTypes
-> AWSResponse ListQualificationTypes
-> Maybe ListQualificationTypes
page ListQualificationTypes
rq AWSResponse ListQualificationTypes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListQualificationTypes
ListQualificationTypesResponse
rs
ListQualificationTypesResponse
-> Getting (First Text) ListQualificationTypesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationTypesResponse
-> Const (First Text) ListQualificationTypesResponse
Lens' ListQualificationTypesResponse (Maybe Text)
listQualificationTypesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationTypesResponse
-> Const (First Text) ListQualificationTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListQualificationTypesResponse 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 ListQualificationTypes
forall a. Maybe a
Prelude.Nothing
| Maybe [QualificationType] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListQualificationTypes
ListQualificationTypesResponse
rs
ListQualificationTypesResponse
-> Getting
(First [QualificationType])
ListQualificationTypesResponse
[QualificationType]
-> Maybe [QualificationType]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [QualificationType]
-> Const (First [QualificationType]) (Maybe [QualificationType]))
-> ListQualificationTypesResponse
-> Const (First [QualificationType]) ListQualificationTypesResponse
Lens' ListQualificationTypesResponse (Maybe [QualificationType])
listQualificationTypesResponse_qualificationTypes
((Maybe [QualificationType]
-> Const (First [QualificationType]) (Maybe [QualificationType]))
-> ListQualificationTypesResponse
-> Const
(First [QualificationType]) ListQualificationTypesResponse)
-> (([QualificationType]
-> Const (First [QualificationType]) [QualificationType])
-> Maybe [QualificationType]
-> Const (First [QualificationType]) (Maybe [QualificationType]))
-> Getting
(First [QualificationType])
ListQualificationTypesResponse
[QualificationType]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([QualificationType]
-> Const (First [QualificationType]) [QualificationType])
-> Maybe [QualificationType]
-> Const (First [QualificationType]) (Maybe [QualificationType])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListQualificationTypes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListQualificationTypes -> Maybe ListQualificationTypes
forall a. a -> Maybe a
Prelude.Just (ListQualificationTypes -> Maybe ListQualificationTypes)
-> ListQualificationTypes -> Maybe ListQualificationTypes
forall a b. (a -> b) -> a -> b
Prelude.$
ListQualificationTypes
rq
ListQualificationTypes
-> (ListQualificationTypes -> ListQualificationTypes)
-> ListQualificationTypes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListQualificationTypes -> Identity ListQualificationTypes
Lens
ListQualificationTypes
ListQualificationTypes
(Maybe Text)
(Maybe Text)
listQualificationTypes_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListQualificationTypes -> Identity ListQualificationTypes)
-> Maybe Text -> ListQualificationTypes -> ListQualificationTypes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListQualificationTypes
ListQualificationTypesResponse
rs
ListQualificationTypesResponse
-> Getting (First Text) ListQualificationTypesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationTypesResponse
-> Const (First Text) ListQualificationTypesResponse
Lens' ListQualificationTypesResponse (Maybe Text)
listQualificationTypesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListQualificationTypesResponse
-> Const (First Text) ListQualificationTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListQualificationTypesResponse 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 ListQualificationTypes where
type
AWSResponse ListQualificationTypes =
ListQualificationTypesResponse
request :: ListQualificationTypes -> Request ListQualificationTypes
request = Service -> ListQualificationTypes -> Request ListQualificationTypes
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListQualificationTypes
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListQualificationTypes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListQualificationTypes))
-> Logger
-> Service
-> Proxy ListQualificationTypes
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListQualificationTypes)))
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]
-> Maybe Text -> Maybe Int -> Int -> ListQualificationTypesResponse
ListQualificationTypesResponse'
(Maybe [QualificationType]
-> Maybe Text
-> Maybe Int
-> Int
-> ListQualificationTypesResponse)
-> Either String (Maybe [QualificationType])
-> Either
String
(Maybe Text -> Maybe Int -> Int -> ListQualificationTypesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [QualificationType]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"QualificationTypes"
Either String (Maybe (Maybe [QualificationType]))
-> Maybe [QualificationType]
-> Either String (Maybe [QualificationType])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [QualificationType]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Maybe Int -> Int -> ListQualificationTypesResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Int -> Int -> ListQualificationTypesResponse)
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 -> ListQualificationTypesResponse)
-> Either String (Maybe Int)
-> Either String (Int -> ListQualificationTypesResponse)
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 -> ListQualificationTypesResponse)
-> Either String Int
-> Either String ListQualificationTypesResponse
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 ListQualificationTypes
instance Prelude.NFData ListQualificationTypes
instance Core.ToHeaders ListQualificationTypes where
toHeaders :: ListQualificationTypes -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListQualificationTypes -> 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.ListQualificationTypes" ::
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 ListQualificationTypes where
toJSON :: ListQualificationTypes -> Value
toJSON ListQualificationTypes' {Bool
Maybe Bool
Maybe Natural
Maybe Text
mustBeRequestable :: Bool
maxResults :: Maybe Natural
query :: Maybe Text
nextToken :: Maybe Text
mustBeOwnedByCaller :: Maybe Bool
$sel:mustBeRequestable:ListQualificationTypes' :: ListQualificationTypes -> Bool
$sel:maxResults:ListQualificationTypes' :: ListQualificationTypes -> Maybe Natural
$sel:query:ListQualificationTypes' :: ListQualificationTypes -> Maybe Text
$sel:nextToken:ListQualificationTypes' :: ListQualificationTypes -> Maybe Text
$sel:mustBeOwnedByCaller:ListQualificationTypes' :: ListQualificationTypes -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"MustBeOwnedByCaller" 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
mustBeOwnedByCaller,
(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
"Query" 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
query,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"MustBeRequestable" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
mustBeRequestable)
]
)
instance Core.ToPath ListQualificationTypes where
toPath :: ListQualificationTypes -> ByteString
toPath = ByteString -> ListQualificationTypes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListQualificationTypes where
toQuery :: ListQualificationTypes -> QueryString
toQuery = QueryString -> ListQualificationTypes -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListQualificationTypesResponse = ListQualificationTypesResponse'
{
ListQualificationTypesResponse -> Maybe [QualificationType]
qualificationTypes :: Prelude.Maybe [QualificationType],
ListQualificationTypesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListQualificationTypesResponse -> Maybe Int
numResults :: Prelude.Maybe Prelude.Int,
ListQualificationTypesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListQualificationTypesResponse
-> ListQualificationTypesResponse -> Bool
(ListQualificationTypesResponse
-> ListQualificationTypesResponse -> Bool)
-> (ListQualificationTypesResponse
-> ListQualificationTypesResponse -> Bool)
-> Eq ListQualificationTypesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListQualificationTypesResponse
-> ListQualificationTypesResponse -> Bool
$c/= :: ListQualificationTypesResponse
-> ListQualificationTypesResponse -> Bool
== :: ListQualificationTypesResponse
-> ListQualificationTypesResponse -> Bool
$c== :: ListQualificationTypesResponse
-> ListQualificationTypesResponse -> Bool
Prelude.Eq, ReadPrec [ListQualificationTypesResponse]
ReadPrec ListQualificationTypesResponse
Int -> ReadS ListQualificationTypesResponse
ReadS [ListQualificationTypesResponse]
(Int -> ReadS ListQualificationTypesResponse)
-> ReadS [ListQualificationTypesResponse]
-> ReadPrec ListQualificationTypesResponse
-> ReadPrec [ListQualificationTypesResponse]
-> Read ListQualificationTypesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListQualificationTypesResponse]
$creadListPrec :: ReadPrec [ListQualificationTypesResponse]
readPrec :: ReadPrec ListQualificationTypesResponse
$creadPrec :: ReadPrec ListQualificationTypesResponse
readList :: ReadS [ListQualificationTypesResponse]
$creadList :: ReadS [ListQualificationTypesResponse]
readsPrec :: Int -> ReadS ListQualificationTypesResponse
$creadsPrec :: Int -> ReadS ListQualificationTypesResponse
Prelude.Read, Int -> ListQualificationTypesResponse -> ShowS
[ListQualificationTypesResponse] -> ShowS
ListQualificationTypesResponse -> String
(Int -> ListQualificationTypesResponse -> ShowS)
-> (ListQualificationTypesResponse -> String)
-> ([ListQualificationTypesResponse] -> ShowS)
-> Show ListQualificationTypesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListQualificationTypesResponse] -> ShowS
$cshowList :: [ListQualificationTypesResponse] -> ShowS
show :: ListQualificationTypesResponse -> String
$cshow :: ListQualificationTypesResponse -> String
showsPrec :: Int -> ListQualificationTypesResponse -> ShowS
$cshowsPrec :: Int -> ListQualificationTypesResponse -> ShowS
Prelude.Show, (forall x.
ListQualificationTypesResponse
-> Rep ListQualificationTypesResponse x)
-> (forall x.
Rep ListQualificationTypesResponse x
-> ListQualificationTypesResponse)
-> Generic ListQualificationTypesResponse
forall x.
Rep ListQualificationTypesResponse x
-> ListQualificationTypesResponse
forall x.
ListQualificationTypesResponse
-> Rep ListQualificationTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListQualificationTypesResponse x
-> ListQualificationTypesResponse
$cfrom :: forall x.
ListQualificationTypesResponse
-> Rep ListQualificationTypesResponse x
Prelude.Generic)
newListQualificationTypesResponse ::
Prelude.Int ->
ListQualificationTypesResponse
newListQualificationTypesResponse :: Int -> ListQualificationTypesResponse
newListQualificationTypesResponse Int
pHttpStatus_ =
ListQualificationTypesResponse' :: Maybe [QualificationType]
-> Maybe Text -> Maybe Int -> Int -> ListQualificationTypesResponse
ListQualificationTypesResponse'
{ $sel:qualificationTypes:ListQualificationTypesResponse' :: Maybe [QualificationType]
qualificationTypes =
Maybe [QualificationType]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListQualificationTypesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:numResults:ListQualificationTypesResponse' :: Maybe Int
numResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListQualificationTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listQualificationTypesResponse_qualificationTypes :: Lens.Lens' ListQualificationTypesResponse (Prelude.Maybe [QualificationType])
listQualificationTypesResponse_qualificationTypes :: (Maybe [QualificationType] -> f (Maybe [QualificationType]))
-> ListQualificationTypesResponse
-> f ListQualificationTypesResponse
listQualificationTypesResponse_qualificationTypes = (ListQualificationTypesResponse -> Maybe [QualificationType])
-> (ListQualificationTypesResponse
-> Maybe [QualificationType] -> ListQualificationTypesResponse)
-> Lens' ListQualificationTypesResponse (Maybe [QualificationType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypesResponse' {Maybe [QualificationType]
qualificationTypes :: Maybe [QualificationType]
$sel:qualificationTypes:ListQualificationTypesResponse' :: ListQualificationTypesResponse -> Maybe [QualificationType]
qualificationTypes} -> Maybe [QualificationType]
qualificationTypes) (\s :: ListQualificationTypesResponse
s@ListQualificationTypesResponse' {} Maybe [QualificationType]
a -> ListQualificationTypesResponse
s {$sel:qualificationTypes:ListQualificationTypesResponse' :: Maybe [QualificationType]
qualificationTypes = Maybe [QualificationType]
a} :: ListQualificationTypesResponse) ((Maybe [QualificationType] -> f (Maybe [QualificationType]))
-> ListQualificationTypesResponse
-> f ListQualificationTypesResponse)
-> ((Maybe [QualificationType] -> f (Maybe [QualificationType]))
-> Maybe [QualificationType] -> f (Maybe [QualificationType]))
-> (Maybe [QualificationType] -> f (Maybe [QualificationType]))
-> ListQualificationTypesResponse
-> f ListQualificationTypesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[QualificationType]
[QualificationType]
[QualificationType]
[QualificationType]
-> Iso
(Maybe [QualificationType])
(Maybe [QualificationType])
(Maybe [QualificationType])
(Maybe [QualificationType])
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
[QualificationType]
[QualificationType]
[QualificationType]
[QualificationType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listQualificationTypesResponse_nextToken :: Lens.Lens' ListQualificationTypesResponse (Prelude.Maybe Prelude.Text)
listQualificationTypesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListQualificationTypesResponse
-> f ListQualificationTypesResponse
listQualificationTypesResponse_nextToken = (ListQualificationTypesResponse -> Maybe Text)
-> (ListQualificationTypesResponse
-> Maybe Text -> ListQualificationTypesResponse)
-> Lens' ListQualificationTypesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListQualificationTypesResponse' :: ListQualificationTypesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListQualificationTypesResponse
s@ListQualificationTypesResponse' {} Maybe Text
a -> ListQualificationTypesResponse
s {$sel:nextToken:ListQualificationTypesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListQualificationTypesResponse)
listQualificationTypesResponse_numResults :: Lens.Lens' ListQualificationTypesResponse (Prelude.Maybe Prelude.Int)
listQualificationTypesResponse_numResults :: (Maybe Int -> f (Maybe Int))
-> ListQualificationTypesResponse
-> f ListQualificationTypesResponse
listQualificationTypesResponse_numResults = (ListQualificationTypesResponse -> Maybe Int)
-> (ListQualificationTypesResponse
-> Maybe Int -> ListQualificationTypesResponse)
-> Lens
ListQualificationTypesResponse
ListQualificationTypesResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypesResponse' {Maybe Int
numResults :: Maybe Int
$sel:numResults:ListQualificationTypesResponse' :: ListQualificationTypesResponse -> Maybe Int
numResults} -> Maybe Int
numResults) (\s :: ListQualificationTypesResponse
s@ListQualificationTypesResponse' {} Maybe Int
a -> ListQualificationTypesResponse
s {$sel:numResults:ListQualificationTypesResponse' :: Maybe Int
numResults = Maybe Int
a} :: ListQualificationTypesResponse)
listQualificationTypesResponse_httpStatus :: Lens.Lens' ListQualificationTypesResponse Prelude.Int
listQualificationTypesResponse_httpStatus :: (Int -> f Int)
-> ListQualificationTypesResponse
-> f ListQualificationTypesResponse
listQualificationTypesResponse_httpStatus = (ListQualificationTypesResponse -> Int)
-> (ListQualificationTypesResponse
-> Int -> ListQualificationTypesResponse)
-> Lens
ListQualificationTypesResponse
ListQualificationTypesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListQualificationTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListQualificationTypesResponse' :: ListQualificationTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListQualificationTypesResponse
s@ListQualificationTypesResponse' {} Int
a -> ListQualificationTypesResponse
s {$sel:httpStatus:ListQualificationTypesResponse' :: Int
httpStatus = Int
a} :: ListQualificationTypesResponse)
instance
Prelude.NFData
ListQualificationTypesResponse