{-# 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.ListSkillsStoreCategories
(
ListSkillsStoreCategories (..),
newListSkillsStoreCategories,
listSkillsStoreCategories_nextToken,
listSkillsStoreCategories_maxResults,
ListSkillsStoreCategoriesResponse (..),
newListSkillsStoreCategoriesResponse,
listSkillsStoreCategoriesResponse_categoryList,
listSkillsStoreCategoriesResponse_nextToken,
listSkillsStoreCategoriesResponse_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 ListSkillsStoreCategories = ListSkillsStoreCategories'
{
ListSkillsStoreCategories -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSkillsStoreCategories -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
(ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool)
-> (ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool)
-> Eq ListSkillsStoreCategories
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
$c/= :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
== :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
$c== :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
Prelude.Eq, ReadPrec [ListSkillsStoreCategories]
ReadPrec ListSkillsStoreCategories
Int -> ReadS ListSkillsStoreCategories
ReadS [ListSkillsStoreCategories]
(Int -> ReadS ListSkillsStoreCategories)
-> ReadS [ListSkillsStoreCategories]
-> ReadPrec ListSkillsStoreCategories
-> ReadPrec [ListSkillsStoreCategories]
-> Read ListSkillsStoreCategories
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSkillsStoreCategories]
$creadListPrec :: ReadPrec [ListSkillsStoreCategories]
readPrec :: ReadPrec ListSkillsStoreCategories
$creadPrec :: ReadPrec ListSkillsStoreCategories
readList :: ReadS [ListSkillsStoreCategories]
$creadList :: ReadS [ListSkillsStoreCategories]
readsPrec :: Int -> ReadS ListSkillsStoreCategories
$creadsPrec :: Int -> ReadS ListSkillsStoreCategories
Prelude.Read, Int -> ListSkillsStoreCategories -> ShowS
[ListSkillsStoreCategories] -> ShowS
ListSkillsStoreCategories -> String
(Int -> ListSkillsStoreCategories -> ShowS)
-> (ListSkillsStoreCategories -> String)
-> ([ListSkillsStoreCategories] -> ShowS)
-> Show ListSkillsStoreCategories
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSkillsStoreCategories] -> ShowS
$cshowList :: [ListSkillsStoreCategories] -> ShowS
show :: ListSkillsStoreCategories -> String
$cshow :: ListSkillsStoreCategories -> String
showsPrec :: Int -> ListSkillsStoreCategories -> ShowS
$cshowsPrec :: Int -> ListSkillsStoreCategories -> ShowS
Prelude.Show, (forall x.
ListSkillsStoreCategories -> Rep ListSkillsStoreCategories x)
-> (forall x.
Rep ListSkillsStoreCategories x -> ListSkillsStoreCategories)
-> Generic ListSkillsStoreCategories
forall x.
Rep ListSkillsStoreCategories x -> ListSkillsStoreCategories
forall x.
ListSkillsStoreCategories -> Rep ListSkillsStoreCategories x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSkillsStoreCategories x -> ListSkillsStoreCategories
$cfrom :: forall x.
ListSkillsStoreCategories -> Rep ListSkillsStoreCategories x
Prelude.Generic)
newListSkillsStoreCategories ::
ListSkillsStoreCategories
newListSkillsStoreCategories :: ListSkillsStoreCategories
newListSkillsStoreCategories =
ListSkillsStoreCategories' :: Maybe Text -> Maybe Natural -> ListSkillsStoreCategories
ListSkillsStoreCategories'
{ $sel:nextToken:ListSkillsStoreCategories' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListSkillsStoreCategories' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listSkillsStoreCategories_nextToken :: Lens.Lens' ListSkillsStoreCategories (Prelude.Maybe Prelude.Text)
listSkillsStoreCategories_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSkillsStoreCategories -> f ListSkillsStoreCategories
listSkillsStoreCategories_nextToken = (ListSkillsStoreCategories -> Maybe Text)
-> (ListSkillsStoreCategories
-> Maybe Text -> ListSkillsStoreCategories)
-> Lens
ListSkillsStoreCategories
ListSkillsStoreCategories
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategories' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSkillsStoreCategories
s@ListSkillsStoreCategories' {} Maybe Text
a -> ListSkillsStoreCategories
s {$sel:nextToken:ListSkillsStoreCategories' :: Maybe Text
nextToken = Maybe Text
a} :: ListSkillsStoreCategories)
listSkillsStoreCategories_maxResults :: Lens.Lens' ListSkillsStoreCategories (Prelude.Maybe Prelude.Natural)
listSkillsStoreCategories_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSkillsStoreCategories -> f ListSkillsStoreCategories
listSkillsStoreCategories_maxResults = (ListSkillsStoreCategories -> Maybe Natural)
-> (ListSkillsStoreCategories
-> Maybe Natural -> ListSkillsStoreCategories)
-> Lens
ListSkillsStoreCategories
ListSkillsStoreCategories
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategories' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSkillsStoreCategories
s@ListSkillsStoreCategories' {} Maybe Natural
a -> ListSkillsStoreCategories
s {$sel:maxResults:ListSkillsStoreCategories' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSkillsStoreCategories)
instance Core.AWSPager ListSkillsStoreCategories where
page :: ListSkillsStoreCategories
-> AWSResponse ListSkillsStoreCategories
-> Maybe ListSkillsStoreCategories
page ListSkillsStoreCategories
rq AWSResponse ListSkillsStoreCategories
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSkillsStoreCategories
ListSkillsStoreCategoriesResponse
rs
ListSkillsStoreCategoriesResponse
-> Getting (First Text) ListSkillsStoreCategoriesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreCategoriesResponse
-> Const (First Text) ListSkillsStoreCategoriesResponse
Lens' ListSkillsStoreCategoriesResponse (Maybe Text)
listSkillsStoreCategoriesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreCategoriesResponse
-> Const (First Text) ListSkillsStoreCategoriesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSkillsStoreCategoriesResponse 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 ListSkillsStoreCategories
forall a. Maybe a
Prelude.Nothing
| Maybe [Category] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSkillsStoreCategories
ListSkillsStoreCategoriesResponse
rs
ListSkillsStoreCategoriesResponse
-> Getting
(First [Category]) ListSkillsStoreCategoriesResponse [Category]
-> Maybe [Category]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Category] -> Const (First [Category]) (Maybe [Category]))
-> ListSkillsStoreCategoriesResponse
-> Const (First [Category]) ListSkillsStoreCategoriesResponse
Lens' ListSkillsStoreCategoriesResponse (Maybe [Category])
listSkillsStoreCategoriesResponse_categoryList
((Maybe [Category] -> Const (First [Category]) (Maybe [Category]))
-> ListSkillsStoreCategoriesResponse
-> Const (First [Category]) ListSkillsStoreCategoriesResponse)
-> (([Category] -> Const (First [Category]) [Category])
-> Maybe [Category] -> Const (First [Category]) (Maybe [Category]))
-> Getting
(First [Category]) ListSkillsStoreCategoriesResponse [Category]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Category] -> Const (First [Category]) [Category])
-> Maybe [Category] -> Const (First [Category]) (Maybe [Category])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSkillsStoreCategories
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSkillsStoreCategories -> Maybe ListSkillsStoreCategories
forall a. a -> Maybe a
Prelude.Just (ListSkillsStoreCategories -> Maybe ListSkillsStoreCategories)
-> ListSkillsStoreCategories -> Maybe ListSkillsStoreCategories
forall a b. (a -> b) -> a -> b
Prelude.$
ListSkillsStoreCategories
rq
ListSkillsStoreCategories
-> (ListSkillsStoreCategories -> ListSkillsStoreCategories)
-> ListSkillsStoreCategories
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSkillsStoreCategories -> Identity ListSkillsStoreCategories
Lens
ListSkillsStoreCategories
ListSkillsStoreCategories
(Maybe Text)
(Maybe Text)
listSkillsStoreCategories_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListSkillsStoreCategories -> Identity ListSkillsStoreCategories)
-> Maybe Text
-> ListSkillsStoreCategories
-> ListSkillsStoreCategories
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSkillsStoreCategories
ListSkillsStoreCategoriesResponse
rs
ListSkillsStoreCategoriesResponse
-> Getting (First Text) ListSkillsStoreCategoriesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreCategoriesResponse
-> Const (First Text) ListSkillsStoreCategoriesResponse
Lens' ListSkillsStoreCategoriesResponse (Maybe Text)
listSkillsStoreCategoriesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSkillsStoreCategoriesResponse
-> Const (First Text) ListSkillsStoreCategoriesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSkillsStoreCategoriesResponse 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 ListSkillsStoreCategories where
type
AWSResponse ListSkillsStoreCategories =
ListSkillsStoreCategoriesResponse
request :: ListSkillsStoreCategories -> Request ListSkillsStoreCategories
request = Service
-> ListSkillsStoreCategories -> Request ListSkillsStoreCategories
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListSkillsStoreCategories
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSkillsStoreCategories)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSkillsStoreCategories))
-> Logger
-> Service
-> Proxy ListSkillsStoreCategories
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSkillsStoreCategories)))
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 [Category]
-> Maybe Text -> Int -> ListSkillsStoreCategoriesResponse
ListSkillsStoreCategoriesResponse'
(Maybe [Category]
-> Maybe Text -> Int -> ListSkillsStoreCategoriesResponse)
-> Either String (Maybe [Category])
-> Either
String (Maybe Text -> Int -> ListSkillsStoreCategoriesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Category]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CategoryList" Either String (Maybe (Maybe [Category]))
-> Maybe [Category] -> Either String (Maybe [Category])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Category]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> ListSkillsStoreCategoriesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListSkillsStoreCategoriesResponse)
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 (Int -> ListSkillsStoreCategoriesResponse)
-> Either String Int
-> Either String ListSkillsStoreCategoriesResponse
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 ListSkillsStoreCategories
instance Prelude.NFData ListSkillsStoreCategories
instance Core.ToHeaders ListSkillsStoreCategories where
toHeaders :: ListSkillsStoreCategories -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListSkillsStoreCategories -> 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.ListSkillsStoreCategories" ::
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 ListSkillsStoreCategories where
toJSON :: ListSkillsStoreCategories -> Value
toJSON ListSkillsStoreCategories' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Natural
$sel:nextToken:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> 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
]
)
instance Core.ToPath ListSkillsStoreCategories where
toPath :: ListSkillsStoreCategories -> ByteString
toPath = ByteString -> ListSkillsStoreCategories -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListSkillsStoreCategories where
toQuery :: ListSkillsStoreCategories -> QueryString
toQuery = QueryString -> ListSkillsStoreCategories -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListSkillsStoreCategoriesResponse = ListSkillsStoreCategoriesResponse'
{
ListSkillsStoreCategoriesResponse -> Maybe [Category]
categoryList :: Prelude.Maybe [Category],
ListSkillsStoreCategoriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSkillsStoreCategoriesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
(ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool)
-> (ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool)
-> Eq ListSkillsStoreCategoriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
$c/= :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
== :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
$c== :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
Prelude.Eq, ReadPrec [ListSkillsStoreCategoriesResponse]
ReadPrec ListSkillsStoreCategoriesResponse
Int -> ReadS ListSkillsStoreCategoriesResponse
ReadS [ListSkillsStoreCategoriesResponse]
(Int -> ReadS ListSkillsStoreCategoriesResponse)
-> ReadS [ListSkillsStoreCategoriesResponse]
-> ReadPrec ListSkillsStoreCategoriesResponse
-> ReadPrec [ListSkillsStoreCategoriesResponse]
-> Read ListSkillsStoreCategoriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSkillsStoreCategoriesResponse]
$creadListPrec :: ReadPrec [ListSkillsStoreCategoriesResponse]
readPrec :: ReadPrec ListSkillsStoreCategoriesResponse
$creadPrec :: ReadPrec ListSkillsStoreCategoriesResponse
readList :: ReadS [ListSkillsStoreCategoriesResponse]
$creadList :: ReadS [ListSkillsStoreCategoriesResponse]
readsPrec :: Int -> ReadS ListSkillsStoreCategoriesResponse
$creadsPrec :: Int -> ReadS ListSkillsStoreCategoriesResponse
Prelude.Read, Int -> ListSkillsStoreCategoriesResponse -> ShowS
[ListSkillsStoreCategoriesResponse] -> ShowS
ListSkillsStoreCategoriesResponse -> String
(Int -> ListSkillsStoreCategoriesResponse -> ShowS)
-> (ListSkillsStoreCategoriesResponse -> String)
-> ([ListSkillsStoreCategoriesResponse] -> ShowS)
-> Show ListSkillsStoreCategoriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSkillsStoreCategoriesResponse] -> ShowS
$cshowList :: [ListSkillsStoreCategoriesResponse] -> ShowS
show :: ListSkillsStoreCategoriesResponse -> String
$cshow :: ListSkillsStoreCategoriesResponse -> String
showsPrec :: Int -> ListSkillsStoreCategoriesResponse -> ShowS
$cshowsPrec :: Int -> ListSkillsStoreCategoriesResponse -> ShowS
Prelude.Show, (forall x.
ListSkillsStoreCategoriesResponse
-> Rep ListSkillsStoreCategoriesResponse x)
-> (forall x.
Rep ListSkillsStoreCategoriesResponse x
-> ListSkillsStoreCategoriesResponse)
-> Generic ListSkillsStoreCategoriesResponse
forall x.
Rep ListSkillsStoreCategoriesResponse x
-> ListSkillsStoreCategoriesResponse
forall x.
ListSkillsStoreCategoriesResponse
-> Rep ListSkillsStoreCategoriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSkillsStoreCategoriesResponse x
-> ListSkillsStoreCategoriesResponse
$cfrom :: forall x.
ListSkillsStoreCategoriesResponse
-> Rep ListSkillsStoreCategoriesResponse x
Prelude.Generic)
newListSkillsStoreCategoriesResponse ::
Prelude.Int ->
ListSkillsStoreCategoriesResponse
newListSkillsStoreCategoriesResponse :: Int -> ListSkillsStoreCategoriesResponse
newListSkillsStoreCategoriesResponse Int
pHttpStatus_ =
ListSkillsStoreCategoriesResponse' :: Maybe [Category]
-> Maybe Text -> Int -> ListSkillsStoreCategoriesResponse
ListSkillsStoreCategoriesResponse'
{ $sel:categoryList:ListSkillsStoreCategoriesResponse' :: Maybe [Category]
categoryList =
Maybe [Category]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSkillsStoreCategoriesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSkillsStoreCategoriesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSkillsStoreCategoriesResponse_categoryList :: Lens.Lens' ListSkillsStoreCategoriesResponse (Prelude.Maybe [Category])
listSkillsStoreCategoriesResponse_categoryList :: (Maybe [Category] -> f (Maybe [Category]))
-> ListSkillsStoreCategoriesResponse
-> f ListSkillsStoreCategoriesResponse
listSkillsStoreCategoriesResponse_categoryList = (ListSkillsStoreCategoriesResponse -> Maybe [Category])
-> (ListSkillsStoreCategoriesResponse
-> Maybe [Category] -> ListSkillsStoreCategoriesResponse)
-> Lens' ListSkillsStoreCategoriesResponse (Maybe [Category])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategoriesResponse' {Maybe [Category]
categoryList :: Maybe [Category]
$sel:categoryList:ListSkillsStoreCategoriesResponse' :: ListSkillsStoreCategoriesResponse -> Maybe [Category]
categoryList} -> Maybe [Category]
categoryList) (\s :: ListSkillsStoreCategoriesResponse
s@ListSkillsStoreCategoriesResponse' {} Maybe [Category]
a -> ListSkillsStoreCategoriesResponse
s {$sel:categoryList:ListSkillsStoreCategoriesResponse' :: Maybe [Category]
categoryList = Maybe [Category]
a} :: ListSkillsStoreCategoriesResponse) ((Maybe [Category] -> f (Maybe [Category]))
-> ListSkillsStoreCategoriesResponse
-> f ListSkillsStoreCategoriesResponse)
-> ((Maybe [Category] -> f (Maybe [Category]))
-> Maybe [Category] -> f (Maybe [Category]))
-> (Maybe [Category] -> f (Maybe [Category]))
-> ListSkillsStoreCategoriesResponse
-> f ListSkillsStoreCategoriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Category] [Category] [Category] [Category]
-> Iso
(Maybe [Category])
(Maybe [Category])
(Maybe [Category])
(Maybe [Category])
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 [Category] [Category] [Category] [Category]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSkillsStoreCategoriesResponse_nextToken :: Lens.Lens' ListSkillsStoreCategoriesResponse (Prelude.Maybe Prelude.Text)
listSkillsStoreCategoriesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSkillsStoreCategoriesResponse
-> f ListSkillsStoreCategoriesResponse
listSkillsStoreCategoriesResponse_nextToken = (ListSkillsStoreCategoriesResponse -> Maybe Text)
-> (ListSkillsStoreCategoriesResponse
-> Maybe Text -> ListSkillsStoreCategoriesResponse)
-> Lens' ListSkillsStoreCategoriesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategoriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSkillsStoreCategoriesResponse' :: ListSkillsStoreCategoriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSkillsStoreCategoriesResponse
s@ListSkillsStoreCategoriesResponse' {} Maybe Text
a -> ListSkillsStoreCategoriesResponse
s {$sel:nextToken:ListSkillsStoreCategoriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSkillsStoreCategoriesResponse)
listSkillsStoreCategoriesResponse_httpStatus :: Lens.Lens' ListSkillsStoreCategoriesResponse Prelude.Int
listSkillsStoreCategoriesResponse_httpStatus :: (Int -> f Int)
-> ListSkillsStoreCategoriesResponse
-> f ListSkillsStoreCategoriesResponse
listSkillsStoreCategoriesResponse_httpStatus = (ListSkillsStoreCategoriesResponse -> Int)
-> (ListSkillsStoreCategoriesResponse
-> Int -> ListSkillsStoreCategoriesResponse)
-> Lens
ListSkillsStoreCategoriesResponse
ListSkillsStoreCategoriesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategoriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSkillsStoreCategoriesResponse' :: ListSkillsStoreCategoriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSkillsStoreCategoriesResponse
s@ListSkillsStoreCategoriesResponse' {} Int
a -> ListSkillsStoreCategoriesResponse
s {$sel:httpStatus:ListSkillsStoreCategoriesResponse' :: Int
httpStatus = Int
a} :: ListSkillsStoreCategoriesResponse)
instance
Prelude.NFData
ListSkillsStoreCategoriesResponse