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