{-# 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.AlexaBusiness.ListSkillsStoreSkillsByCategory
(
ListSkillsStoreSkillsByCategory (..),
newListSkillsStoreSkillsByCategory,
listSkillsStoreSkillsByCategory_nextToken,
listSkillsStoreSkillsByCategory_maxResults,
listSkillsStoreSkillsByCategory_categoryId,
ListSkillsStoreSkillsByCategoryResponse (..),
newListSkillsStoreSkillsByCategoryResponse,
listSkillsStoreSkillsByCategoryResponse_nextToken,
listSkillsStoreSkillsByCategoryResponse_skillsStoreSkills,
listSkillsStoreSkillsByCategoryResponse_httpStatus,
)
where
import Amazonka.AlexaBusiness.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListSkillsStoreSkillsByCategory = ListSkillsStoreSkillsByCategory'
{
ListSkillsStoreSkillsByCategory -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSkillsStoreSkillsByCategory -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListSkillsStoreSkillsByCategory -> Natural
categoryId :: Prelude.Natural
}
deriving (ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory -> Bool
(ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory -> Bool)
-> (ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory -> Bool)
-> Eq ListSkillsStoreSkillsByCategory
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory -> Bool
$c/= :: ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory -> Bool
== :: ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory -> Bool
$c== :: ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory -> Bool
Prelude.Eq, ReadPrec [ListSkillsStoreSkillsByCategory]
ReadPrec ListSkillsStoreSkillsByCategory
Int -> ReadS ListSkillsStoreSkillsByCategory
ReadS [ListSkillsStoreSkillsByCategory]
(Int -> ReadS ListSkillsStoreSkillsByCategory)
-> ReadS [ListSkillsStoreSkillsByCategory]
-> ReadPrec ListSkillsStoreSkillsByCategory
-> ReadPrec [ListSkillsStoreSkillsByCategory]
-> Read ListSkillsStoreSkillsByCategory
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSkillsStoreSkillsByCategory]
$creadListPrec :: ReadPrec [ListSkillsStoreSkillsByCategory]
readPrec :: ReadPrec ListSkillsStoreSkillsByCategory
$creadPrec :: ReadPrec ListSkillsStoreSkillsByCategory
readList :: ReadS [ListSkillsStoreSkillsByCategory]
$creadList :: ReadS [ListSkillsStoreSkillsByCategory]
readsPrec :: Int -> ReadS ListSkillsStoreSkillsByCategory
$creadsPrec :: Int -> ReadS ListSkillsStoreSkillsByCategory
Prelude.Read, Int -> ListSkillsStoreSkillsByCategory -> ShowS
[ListSkillsStoreSkillsByCategory] -> ShowS
ListSkillsStoreSkillsByCategory -> String
(Int -> ListSkillsStoreSkillsByCategory -> ShowS)
-> (ListSkillsStoreSkillsByCategory -> String)
-> ([ListSkillsStoreSkillsByCategory] -> ShowS)
-> Show ListSkillsStoreSkillsByCategory
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSkillsStoreSkillsByCategory] -> ShowS
$cshowList :: [ListSkillsStoreSkillsByCategory] -> ShowS
show :: ListSkillsStoreSkillsByCategory -> String
$cshow :: ListSkillsStoreSkillsByCategory -> String
showsPrec :: Int -> ListSkillsStoreSkillsByCategory -> ShowS
$cshowsPrec :: Int -> ListSkillsStoreSkillsByCategory -> ShowS
Prelude.Show, (forall x.
ListSkillsStoreSkillsByCategory
-> Rep ListSkillsStoreSkillsByCategory x)
-> (forall x.
Rep ListSkillsStoreSkillsByCategory x
-> ListSkillsStoreSkillsByCategory)
-> Generic ListSkillsStoreSkillsByCategory
forall x.
Rep ListSkillsStoreSkillsByCategory x
-> ListSkillsStoreSkillsByCategory
forall x.
ListSkillsStoreSkillsByCategory
-> Rep ListSkillsStoreSkillsByCategory x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSkillsStoreSkillsByCategory x
-> ListSkillsStoreSkillsByCategory
$cfrom :: forall x.
ListSkillsStoreSkillsByCategory
-> Rep ListSkillsStoreSkillsByCategory x
Prelude.Generic)
newListSkillsStoreSkillsByCategory ::
Prelude.Natural ->
ListSkillsStoreSkillsByCategory
newListSkillsStoreSkillsByCategory :: Natural -> ListSkillsStoreSkillsByCategory
newListSkillsStoreSkillsByCategory Natural
pCategoryId_ =
ListSkillsStoreSkillsByCategory' :: Maybe Text
-> Maybe Natural -> Natural -> ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategory'
{ $sel:nextToken:ListSkillsStoreSkillsByCategory' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListSkillsStoreSkillsByCategory' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:categoryId:ListSkillsStoreSkillsByCategory' :: Natural
categoryId = Natural
pCategoryId_
}
listSkillsStoreSkillsByCategory_nextToken :: Lens.Lens' ListSkillsStoreSkillsByCategory (Prelude.Maybe Prelude.Text)
listSkillsStoreSkillsByCategory_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSkillsStoreSkillsByCategory
-> f ListSkillsStoreSkillsByCategory
listSkillsStoreSkillsByCategory_nextToken = (ListSkillsStoreSkillsByCategory -> Maybe Text)
-> (ListSkillsStoreSkillsByCategory
-> Maybe Text -> ListSkillsStoreSkillsByCategory)
-> Lens
ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategory
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreSkillsByCategory' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSkillsStoreSkillsByCategory' :: ListSkillsStoreSkillsByCategory -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSkillsStoreSkillsByCategory
s@ListSkillsStoreSkillsByCategory' {} Maybe Text
a -> ListSkillsStoreSkillsByCategory
s {$sel:nextToken:ListSkillsStoreSkillsByCategory' :: Maybe Text
nextToken = Maybe Text
a} :: ListSkillsStoreSkillsByCategory)
listSkillsStoreSkillsByCategory_maxResults :: Lens.Lens' ListSkillsStoreSkillsByCategory (Prelude.Maybe Prelude.Natural)
listSkillsStoreSkillsByCategory_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSkillsStoreSkillsByCategory
-> f ListSkillsStoreSkillsByCategory
listSkillsStoreSkillsByCategory_maxResults = (ListSkillsStoreSkillsByCategory -> Maybe Natural)
-> (ListSkillsStoreSkillsByCategory
-> Maybe Natural -> ListSkillsStoreSkillsByCategory)
-> Lens
ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategory
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreSkillsByCategory' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSkillsStoreSkillsByCategory' :: ListSkillsStoreSkillsByCategory -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSkillsStoreSkillsByCategory
s@ListSkillsStoreSkillsByCategory' {} Maybe Natural
a -> ListSkillsStoreSkillsByCategory
s {$sel:maxResults:ListSkillsStoreSkillsByCategory' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSkillsStoreSkillsByCategory)
listSkillsStoreSkillsByCategory_categoryId :: Lens.Lens' ListSkillsStoreSkillsByCategory Prelude.Natural
listSkillsStoreSkillsByCategory_categoryId :: (Natural -> f Natural)
-> ListSkillsStoreSkillsByCategory
-> f ListSkillsStoreSkillsByCategory
listSkillsStoreSkillsByCategory_categoryId = (ListSkillsStoreSkillsByCategory -> Natural)
-> (ListSkillsStoreSkillsByCategory
-> Natural -> ListSkillsStoreSkillsByCategory)
-> Lens
ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategory
Natural
Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreSkillsByCategory' {Natural
categoryId :: Natural
$sel:categoryId:ListSkillsStoreSkillsByCategory' :: ListSkillsStoreSkillsByCategory -> Natural
categoryId} -> Natural
categoryId) (\s :: ListSkillsStoreSkillsByCategory
s@ListSkillsStoreSkillsByCategory' {} Natural
a -> ListSkillsStoreSkillsByCategory
s {$sel:categoryId:ListSkillsStoreSkillsByCategory' :: Natural
categoryId = Natural
a} :: ListSkillsStoreSkillsByCategory)
instance
Core.AWSPager
ListSkillsStoreSkillsByCategory
where
page :: ListSkillsStoreSkillsByCategory
-> AWSResponse ListSkillsStoreSkillsByCategory
-> Maybe ListSkillsStoreSkillsByCategory
page ListSkillsStoreSkillsByCategory
rq AWSResponse ListSkillsStoreSkillsByCategory
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategoryResponse
rs
ListSkillsStoreSkillsByCategoryResponse
-> Getting
(First Text) ListSkillsStoreSkillsByCategoryResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreSkillsByCategoryResponse
-> Const (First Text) ListSkillsStoreSkillsByCategoryResponse
Lens' ListSkillsStoreSkillsByCategoryResponse (Maybe Text)
listSkillsStoreSkillsByCategoryResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreSkillsByCategoryResponse
-> Const (First Text) ListSkillsStoreSkillsByCategoryResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListSkillsStoreSkillsByCategoryResponse 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 ListSkillsStoreSkillsByCategory
forall a. Maybe a
Prelude.Nothing
| Maybe [SkillsStoreSkill] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategoryResponse
rs
ListSkillsStoreSkillsByCategoryResponse
-> Getting
(First [SkillsStoreSkill])
ListSkillsStoreSkillsByCategoryResponse
[SkillsStoreSkill]
-> Maybe [SkillsStoreSkill]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SkillsStoreSkill]
-> Const (First [SkillsStoreSkill]) (Maybe [SkillsStoreSkill]))
-> ListSkillsStoreSkillsByCategoryResponse
-> Const
(First [SkillsStoreSkill]) ListSkillsStoreSkillsByCategoryResponse
Lens'
ListSkillsStoreSkillsByCategoryResponse (Maybe [SkillsStoreSkill])
listSkillsStoreSkillsByCategoryResponse_skillsStoreSkills
((Maybe [SkillsStoreSkill]
-> Const (First [SkillsStoreSkill]) (Maybe [SkillsStoreSkill]))
-> ListSkillsStoreSkillsByCategoryResponse
-> Const
(First [SkillsStoreSkill]) ListSkillsStoreSkillsByCategoryResponse)
-> (([SkillsStoreSkill]
-> Const (First [SkillsStoreSkill]) [SkillsStoreSkill])
-> Maybe [SkillsStoreSkill]
-> Const (First [SkillsStoreSkill]) (Maybe [SkillsStoreSkill]))
-> Getting
(First [SkillsStoreSkill])
ListSkillsStoreSkillsByCategoryResponse
[SkillsStoreSkill]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SkillsStoreSkill]
-> Const (First [SkillsStoreSkill]) [SkillsStoreSkill])
-> Maybe [SkillsStoreSkill]
-> Const (First [SkillsStoreSkill]) (Maybe [SkillsStoreSkill])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSkillsStoreSkillsByCategory
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSkillsStoreSkillsByCategory
-> Maybe ListSkillsStoreSkillsByCategory
forall a. a -> Maybe a
Prelude.Just (ListSkillsStoreSkillsByCategory
-> Maybe ListSkillsStoreSkillsByCategory)
-> ListSkillsStoreSkillsByCategory
-> Maybe ListSkillsStoreSkillsByCategory
forall a b. (a -> b) -> a -> b
Prelude.$
ListSkillsStoreSkillsByCategory
rq
ListSkillsStoreSkillsByCategory
-> (ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory)
-> ListSkillsStoreSkillsByCategory
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSkillsStoreSkillsByCategory
-> Identity ListSkillsStoreSkillsByCategory
Lens
ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategory
(Maybe Text)
(Maybe Text)
listSkillsStoreSkillsByCategory_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListSkillsStoreSkillsByCategory
-> Identity ListSkillsStoreSkillsByCategory)
-> Maybe Text
-> ListSkillsStoreSkillsByCategory
-> ListSkillsStoreSkillsByCategory
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSkillsStoreSkillsByCategory
ListSkillsStoreSkillsByCategoryResponse
rs
ListSkillsStoreSkillsByCategoryResponse
-> Getting
(First Text) ListSkillsStoreSkillsByCategoryResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreSkillsByCategoryResponse
-> Const (First Text) ListSkillsStoreSkillsByCategoryResponse
Lens' ListSkillsStoreSkillsByCategoryResponse (Maybe Text)
listSkillsStoreSkillsByCategoryResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreSkillsByCategoryResponse
-> Const (First Text) ListSkillsStoreSkillsByCategoryResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListSkillsStoreSkillsByCategoryResponse 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
ListSkillsStoreSkillsByCategory
where
type
AWSResponse ListSkillsStoreSkillsByCategory =
ListSkillsStoreSkillsByCategoryResponse
request :: ListSkillsStoreSkillsByCategory
-> Request ListSkillsStoreSkillsByCategory
request = Service
-> ListSkillsStoreSkillsByCategory
-> Request ListSkillsStoreSkillsByCategory
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListSkillsStoreSkillsByCategory
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListSkillsStoreSkillsByCategory)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSkillsStoreSkillsByCategory))
-> Logger
-> Service
-> Proxy ListSkillsStoreSkillsByCategory
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListSkillsStoreSkillsByCategory)))
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
-> Maybe [SkillsStoreSkill]
-> Int
-> ListSkillsStoreSkillsByCategoryResponse
ListSkillsStoreSkillsByCategoryResponse'
(Maybe Text
-> Maybe [SkillsStoreSkill]
-> Int
-> ListSkillsStoreSkillsByCategoryResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [SkillsStoreSkill]
-> Int -> ListSkillsStoreSkillsByCategoryResponse)
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
"NextToken")
Either
String
(Maybe [SkillsStoreSkill]
-> Int -> ListSkillsStoreSkillsByCategoryResponse)
-> Either String (Maybe [SkillsStoreSkill])
-> Either String (Int -> ListSkillsStoreSkillsByCategoryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [SkillsStoreSkill]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SkillsStoreSkills"
Either String (Maybe (Maybe [SkillsStoreSkill]))
-> Maybe [SkillsStoreSkill]
-> Either String (Maybe [SkillsStoreSkill])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SkillsStoreSkill]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListSkillsStoreSkillsByCategoryResponse)
-> Either String Int
-> Either String ListSkillsStoreSkillsByCategoryResponse
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
ListSkillsStoreSkillsByCategory
instance
Prelude.NFData
ListSkillsStoreSkillsByCategory
instance
Core.ToHeaders
ListSkillsStoreSkillsByCategory
where
toHeaders :: ListSkillsStoreSkillsByCategory -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ListSkillsStoreSkillsByCategory -> 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
"AlexaForBusiness.ListSkillsStoreSkillsByCategory" ::
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 ListSkillsStoreSkillsByCategory where
toJSON :: ListSkillsStoreSkillsByCategory -> Value
toJSON ListSkillsStoreSkillsByCategory' {Natural
Maybe Natural
Maybe Text
categoryId :: Natural
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:categoryId:ListSkillsStoreSkillsByCategory' :: ListSkillsStoreSkillsByCategory -> Natural
$sel:maxResults:ListSkillsStoreSkillsByCategory' :: ListSkillsStoreSkillsByCategory -> Maybe Natural
$sel:nextToken:ListSkillsStoreSkillsByCategory' :: ListSkillsStoreSkillsByCategory -> 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
"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
"CategoryId" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
categoryId)
]
)
instance Core.ToPath ListSkillsStoreSkillsByCategory where
toPath :: ListSkillsStoreSkillsByCategory -> ByteString
toPath = ByteString -> ListSkillsStoreSkillsByCategory -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListSkillsStoreSkillsByCategory where
toQuery :: ListSkillsStoreSkillsByCategory -> QueryString
toQuery = QueryString -> ListSkillsStoreSkillsByCategory -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListSkillsStoreSkillsByCategoryResponse = ListSkillsStoreSkillsByCategoryResponse'
{
ListSkillsStoreSkillsByCategoryResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSkillsStoreSkillsByCategoryResponse -> Maybe [SkillsStoreSkill]
skillsStoreSkills :: Prelude.Maybe [SkillsStoreSkill],
ListSkillsStoreSkillsByCategoryResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSkillsStoreSkillsByCategoryResponse
-> ListSkillsStoreSkillsByCategoryResponse -> Bool
(ListSkillsStoreSkillsByCategoryResponse
-> ListSkillsStoreSkillsByCategoryResponse -> Bool)
-> (ListSkillsStoreSkillsByCategoryResponse
-> ListSkillsStoreSkillsByCategoryResponse -> Bool)
-> Eq ListSkillsStoreSkillsByCategoryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSkillsStoreSkillsByCategoryResponse
-> ListSkillsStoreSkillsByCategoryResponse -> Bool
$c/= :: ListSkillsStoreSkillsByCategoryResponse
-> ListSkillsStoreSkillsByCategoryResponse -> Bool
== :: ListSkillsStoreSkillsByCategoryResponse
-> ListSkillsStoreSkillsByCategoryResponse -> Bool
$c== :: ListSkillsStoreSkillsByCategoryResponse
-> ListSkillsStoreSkillsByCategoryResponse -> Bool
Prelude.Eq, ReadPrec [ListSkillsStoreSkillsByCategoryResponse]
ReadPrec ListSkillsStoreSkillsByCategoryResponse
Int -> ReadS ListSkillsStoreSkillsByCategoryResponse
ReadS [ListSkillsStoreSkillsByCategoryResponse]
(Int -> ReadS ListSkillsStoreSkillsByCategoryResponse)
-> ReadS [ListSkillsStoreSkillsByCategoryResponse]
-> ReadPrec ListSkillsStoreSkillsByCategoryResponse
-> ReadPrec [ListSkillsStoreSkillsByCategoryResponse]
-> Read ListSkillsStoreSkillsByCategoryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSkillsStoreSkillsByCategoryResponse]
$creadListPrec :: ReadPrec [ListSkillsStoreSkillsByCategoryResponse]
readPrec :: ReadPrec ListSkillsStoreSkillsByCategoryResponse
$creadPrec :: ReadPrec ListSkillsStoreSkillsByCategoryResponse
readList :: ReadS [ListSkillsStoreSkillsByCategoryResponse]
$creadList :: ReadS [ListSkillsStoreSkillsByCategoryResponse]
readsPrec :: Int -> ReadS ListSkillsStoreSkillsByCategoryResponse
$creadsPrec :: Int -> ReadS ListSkillsStoreSkillsByCategoryResponse
Prelude.Read, Int -> ListSkillsStoreSkillsByCategoryResponse -> ShowS
[ListSkillsStoreSkillsByCategoryResponse] -> ShowS
ListSkillsStoreSkillsByCategoryResponse -> String
(Int -> ListSkillsStoreSkillsByCategoryResponse -> ShowS)
-> (ListSkillsStoreSkillsByCategoryResponse -> String)
-> ([ListSkillsStoreSkillsByCategoryResponse] -> ShowS)
-> Show ListSkillsStoreSkillsByCategoryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSkillsStoreSkillsByCategoryResponse] -> ShowS
$cshowList :: [ListSkillsStoreSkillsByCategoryResponse] -> ShowS
show :: ListSkillsStoreSkillsByCategoryResponse -> String
$cshow :: ListSkillsStoreSkillsByCategoryResponse -> String
showsPrec :: Int -> ListSkillsStoreSkillsByCategoryResponse -> ShowS
$cshowsPrec :: Int -> ListSkillsStoreSkillsByCategoryResponse -> ShowS
Prelude.Show, (forall x.
ListSkillsStoreSkillsByCategoryResponse
-> Rep ListSkillsStoreSkillsByCategoryResponse x)
-> (forall x.
Rep ListSkillsStoreSkillsByCategoryResponse x
-> ListSkillsStoreSkillsByCategoryResponse)
-> Generic ListSkillsStoreSkillsByCategoryResponse
forall x.
Rep ListSkillsStoreSkillsByCategoryResponse x
-> ListSkillsStoreSkillsByCategoryResponse
forall x.
ListSkillsStoreSkillsByCategoryResponse
-> Rep ListSkillsStoreSkillsByCategoryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSkillsStoreSkillsByCategoryResponse x
-> ListSkillsStoreSkillsByCategoryResponse
$cfrom :: forall x.
ListSkillsStoreSkillsByCategoryResponse
-> Rep ListSkillsStoreSkillsByCategoryResponse x
Prelude.Generic)
newListSkillsStoreSkillsByCategoryResponse ::
Prelude.Int ->
ListSkillsStoreSkillsByCategoryResponse
newListSkillsStoreSkillsByCategoryResponse :: Int -> ListSkillsStoreSkillsByCategoryResponse
newListSkillsStoreSkillsByCategoryResponse
Int
pHttpStatus_ =
ListSkillsStoreSkillsByCategoryResponse' :: Maybe Text
-> Maybe [SkillsStoreSkill]
-> Int
-> ListSkillsStoreSkillsByCategoryResponse
ListSkillsStoreSkillsByCategoryResponse'
{ $sel:nextToken:ListSkillsStoreSkillsByCategoryResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:skillsStoreSkills:ListSkillsStoreSkillsByCategoryResponse' :: Maybe [SkillsStoreSkill]
skillsStoreSkills =
Maybe [SkillsStoreSkill]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSkillsStoreSkillsByCategoryResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSkillsStoreSkillsByCategoryResponse_nextToken :: Lens.Lens' ListSkillsStoreSkillsByCategoryResponse (Prelude.Maybe Prelude.Text)
listSkillsStoreSkillsByCategoryResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSkillsStoreSkillsByCategoryResponse
-> f ListSkillsStoreSkillsByCategoryResponse
listSkillsStoreSkillsByCategoryResponse_nextToken = (ListSkillsStoreSkillsByCategoryResponse -> Maybe Text)
-> (ListSkillsStoreSkillsByCategoryResponse
-> Maybe Text -> ListSkillsStoreSkillsByCategoryResponse)
-> Lens' ListSkillsStoreSkillsByCategoryResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreSkillsByCategoryResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSkillsStoreSkillsByCategoryResponse' :: ListSkillsStoreSkillsByCategoryResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSkillsStoreSkillsByCategoryResponse
s@ListSkillsStoreSkillsByCategoryResponse' {} Maybe Text
a -> ListSkillsStoreSkillsByCategoryResponse
s {$sel:nextToken:ListSkillsStoreSkillsByCategoryResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSkillsStoreSkillsByCategoryResponse)
listSkillsStoreSkillsByCategoryResponse_skillsStoreSkills :: Lens.Lens' ListSkillsStoreSkillsByCategoryResponse (Prelude.Maybe [SkillsStoreSkill])
listSkillsStoreSkillsByCategoryResponse_skillsStoreSkills :: (Maybe [SkillsStoreSkill] -> f (Maybe [SkillsStoreSkill]))
-> ListSkillsStoreSkillsByCategoryResponse
-> f ListSkillsStoreSkillsByCategoryResponse
listSkillsStoreSkillsByCategoryResponse_skillsStoreSkills = (ListSkillsStoreSkillsByCategoryResponse
-> Maybe [SkillsStoreSkill])
-> (ListSkillsStoreSkillsByCategoryResponse
-> Maybe [SkillsStoreSkill]
-> ListSkillsStoreSkillsByCategoryResponse)
-> Lens'
ListSkillsStoreSkillsByCategoryResponse (Maybe [SkillsStoreSkill])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreSkillsByCategoryResponse' {Maybe [SkillsStoreSkill]
skillsStoreSkills :: Maybe [SkillsStoreSkill]
$sel:skillsStoreSkills:ListSkillsStoreSkillsByCategoryResponse' :: ListSkillsStoreSkillsByCategoryResponse -> Maybe [SkillsStoreSkill]
skillsStoreSkills} -> Maybe [SkillsStoreSkill]
skillsStoreSkills) (\s :: ListSkillsStoreSkillsByCategoryResponse
s@ListSkillsStoreSkillsByCategoryResponse' {} Maybe [SkillsStoreSkill]
a -> ListSkillsStoreSkillsByCategoryResponse
s {$sel:skillsStoreSkills:ListSkillsStoreSkillsByCategoryResponse' :: Maybe [SkillsStoreSkill]
skillsStoreSkills = Maybe [SkillsStoreSkill]
a} :: ListSkillsStoreSkillsByCategoryResponse) ((Maybe [SkillsStoreSkill] -> f (Maybe [SkillsStoreSkill]))
-> ListSkillsStoreSkillsByCategoryResponse
-> f ListSkillsStoreSkillsByCategoryResponse)
-> ((Maybe [SkillsStoreSkill] -> f (Maybe [SkillsStoreSkill]))
-> Maybe [SkillsStoreSkill] -> f (Maybe [SkillsStoreSkill]))
-> (Maybe [SkillsStoreSkill] -> f (Maybe [SkillsStoreSkill]))
-> ListSkillsStoreSkillsByCategoryResponse
-> f ListSkillsStoreSkillsByCategoryResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SkillsStoreSkill]
[SkillsStoreSkill]
[SkillsStoreSkill]
[SkillsStoreSkill]
-> Iso
(Maybe [SkillsStoreSkill])
(Maybe [SkillsStoreSkill])
(Maybe [SkillsStoreSkill])
(Maybe [SkillsStoreSkill])
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
[SkillsStoreSkill]
[SkillsStoreSkill]
[SkillsStoreSkill]
[SkillsStoreSkill]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSkillsStoreSkillsByCategoryResponse_httpStatus :: Lens.Lens' ListSkillsStoreSkillsByCategoryResponse Prelude.Int
listSkillsStoreSkillsByCategoryResponse_httpStatus :: (Int -> f Int)
-> ListSkillsStoreSkillsByCategoryResponse
-> f ListSkillsStoreSkillsByCategoryResponse
listSkillsStoreSkillsByCategoryResponse_httpStatus = (ListSkillsStoreSkillsByCategoryResponse -> Int)
-> (ListSkillsStoreSkillsByCategoryResponse
-> Int -> ListSkillsStoreSkillsByCategoryResponse)
-> Lens
ListSkillsStoreSkillsByCategoryResponse
ListSkillsStoreSkillsByCategoryResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreSkillsByCategoryResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSkillsStoreSkillsByCategoryResponse' :: ListSkillsStoreSkillsByCategoryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSkillsStoreSkillsByCategoryResponse
s@ListSkillsStoreSkillsByCategoryResponse' {} Int
a -> ListSkillsStoreSkillsByCategoryResponse
s {$sel:httpStatus:ListSkillsStoreSkillsByCategoryResponse' :: Int
httpStatus = Int
a} :: ListSkillsStoreSkillsByCategoryResponse)
instance
Prelude.NFData
ListSkillsStoreSkillsByCategoryResponse