{-# 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.DataExchange.ListDataSets
(
ListDataSets (..),
newListDataSets,
listDataSets_origin,
listDataSets_nextToken,
listDataSets_maxResults,
ListDataSetsResponse (..),
newListDataSetsResponse,
listDataSetsResponse_nextToken,
listDataSetsResponse_dataSets,
listDataSetsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataExchange.Types
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 ListDataSets = ListDataSets'
{
ListDataSets -> Maybe Text
origin :: Prelude.Maybe Prelude.Text,
ListDataSets -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDataSets -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListDataSets -> ListDataSets -> Bool
(ListDataSets -> ListDataSets -> Bool)
-> (ListDataSets -> ListDataSets -> Bool) -> Eq ListDataSets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataSets -> ListDataSets -> Bool
$c/= :: ListDataSets -> ListDataSets -> Bool
== :: ListDataSets -> ListDataSets -> Bool
$c== :: ListDataSets -> ListDataSets -> Bool
Prelude.Eq, ReadPrec [ListDataSets]
ReadPrec ListDataSets
Int -> ReadS ListDataSets
ReadS [ListDataSets]
(Int -> ReadS ListDataSets)
-> ReadS [ListDataSets]
-> ReadPrec ListDataSets
-> ReadPrec [ListDataSets]
-> Read ListDataSets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataSets]
$creadListPrec :: ReadPrec [ListDataSets]
readPrec :: ReadPrec ListDataSets
$creadPrec :: ReadPrec ListDataSets
readList :: ReadS [ListDataSets]
$creadList :: ReadS [ListDataSets]
readsPrec :: Int -> ReadS ListDataSets
$creadsPrec :: Int -> ReadS ListDataSets
Prelude.Read, Int -> ListDataSets -> ShowS
[ListDataSets] -> ShowS
ListDataSets -> String
(Int -> ListDataSets -> ShowS)
-> (ListDataSets -> String)
-> ([ListDataSets] -> ShowS)
-> Show ListDataSets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataSets] -> ShowS
$cshowList :: [ListDataSets] -> ShowS
show :: ListDataSets -> String
$cshow :: ListDataSets -> String
showsPrec :: Int -> ListDataSets -> ShowS
$cshowsPrec :: Int -> ListDataSets -> ShowS
Prelude.Show, (forall x. ListDataSets -> Rep ListDataSets x)
-> (forall x. Rep ListDataSets x -> ListDataSets)
-> Generic ListDataSets
forall x. Rep ListDataSets x -> ListDataSets
forall x. ListDataSets -> Rep ListDataSets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDataSets x -> ListDataSets
$cfrom :: forall x. ListDataSets -> Rep ListDataSets x
Prelude.Generic)
newListDataSets ::
ListDataSets
newListDataSets :: ListDataSets
newListDataSets =
ListDataSets' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListDataSets
ListDataSets'
{ $sel:origin:ListDataSets' :: Maybe Text
origin = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDataSets' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDataSets' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listDataSets_origin :: Lens.Lens' ListDataSets (Prelude.Maybe Prelude.Text)
listDataSets_origin :: (Maybe Text -> f (Maybe Text)) -> ListDataSets -> f ListDataSets
listDataSets_origin = (ListDataSets -> Maybe Text)
-> (ListDataSets -> Maybe Text -> ListDataSets)
-> Lens ListDataSets ListDataSets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSets' {Maybe Text
origin :: Maybe Text
$sel:origin:ListDataSets' :: ListDataSets -> Maybe Text
origin} -> Maybe Text
origin) (\s :: ListDataSets
s@ListDataSets' {} Maybe Text
a -> ListDataSets
s {$sel:origin:ListDataSets' :: Maybe Text
origin = Maybe Text
a} :: ListDataSets)
listDataSets_nextToken :: Lens.Lens' ListDataSets (Prelude.Maybe Prelude.Text)
listDataSets_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListDataSets -> f ListDataSets
listDataSets_nextToken = (ListDataSets -> Maybe Text)
-> (ListDataSets -> Maybe Text -> ListDataSets)
-> Lens ListDataSets ListDataSets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSets' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataSets' :: ListDataSets -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataSets
s@ListDataSets' {} Maybe Text
a -> ListDataSets
s {$sel:nextToken:ListDataSets' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataSets)
listDataSets_maxResults :: Lens.Lens' ListDataSets (Prelude.Maybe Prelude.Natural)
listDataSets_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDataSets -> f ListDataSets
listDataSets_maxResults = (ListDataSets -> Maybe Natural)
-> (ListDataSets -> Maybe Natural -> ListDataSets)
-> Lens ListDataSets ListDataSets (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSets' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDataSets' :: ListDataSets -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDataSets
s@ListDataSets' {} Maybe Natural
a -> ListDataSets
s {$sel:maxResults:ListDataSets' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDataSets)
instance Core.AWSPager ListDataSets where
page :: ListDataSets -> AWSResponse ListDataSets -> Maybe ListDataSets
page ListDataSets
rq AWSResponse ListDataSets
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDataSets
ListDataSetsResponse
rs
ListDataSetsResponse
-> Getting (First Text) ListDataSetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataSetsResponse -> Const (First Text) ListDataSetsResponse
Lens' ListDataSetsResponse (Maybe Text)
listDataSetsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataSetsResponse -> Const (First Text) ListDataSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDataSetsResponse 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 ListDataSets
forall a. Maybe a
Prelude.Nothing
| Maybe [DataSetEntry] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDataSets
ListDataSetsResponse
rs
ListDataSetsResponse
-> Getting
(First [DataSetEntry]) ListDataSetsResponse [DataSetEntry]
-> Maybe [DataSetEntry]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DataSetEntry]
-> Const (First [DataSetEntry]) (Maybe [DataSetEntry]))
-> ListDataSetsResponse
-> Const (First [DataSetEntry]) ListDataSetsResponse
Lens' ListDataSetsResponse (Maybe [DataSetEntry])
listDataSetsResponse_dataSets ((Maybe [DataSetEntry]
-> Const (First [DataSetEntry]) (Maybe [DataSetEntry]))
-> ListDataSetsResponse
-> Const (First [DataSetEntry]) ListDataSetsResponse)
-> (([DataSetEntry] -> Const (First [DataSetEntry]) [DataSetEntry])
-> Maybe [DataSetEntry]
-> Const (First [DataSetEntry]) (Maybe [DataSetEntry]))
-> Getting
(First [DataSetEntry]) ListDataSetsResponse [DataSetEntry]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DataSetEntry] -> Const (First [DataSetEntry]) [DataSetEntry])
-> Maybe [DataSetEntry]
-> Const (First [DataSetEntry]) (Maybe [DataSetEntry])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListDataSets
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListDataSets -> Maybe ListDataSets
forall a. a -> Maybe a
Prelude.Just (ListDataSets -> Maybe ListDataSets)
-> ListDataSets -> Maybe ListDataSets
forall a b. (a -> b) -> a -> b
Prelude.$
ListDataSets
rq
ListDataSets -> (ListDataSets -> ListDataSets) -> ListDataSets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDataSets -> Identity ListDataSets
Lens ListDataSets ListDataSets (Maybe Text) (Maybe Text)
listDataSets_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListDataSets -> Identity ListDataSets)
-> Maybe Text -> ListDataSets -> ListDataSets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDataSets
ListDataSetsResponse
rs
ListDataSetsResponse
-> Getting (First Text) ListDataSetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataSetsResponse -> Const (First Text) ListDataSetsResponse
Lens' ListDataSetsResponse (Maybe Text)
listDataSetsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataSetsResponse -> Const (First Text) ListDataSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDataSetsResponse 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 ListDataSets where
type AWSResponse ListDataSets = ListDataSetsResponse
request :: ListDataSets -> Request ListDataSets
request = Service -> ListDataSets -> Request ListDataSets
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListDataSets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDataSets)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDataSets))
-> Logger
-> Service
-> Proxy ListDataSets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDataSets)))
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 [DataSetEntry] -> Int -> ListDataSetsResponse
ListDataSetsResponse'
(Maybe Text -> Maybe [DataSetEntry] -> Int -> ListDataSetsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [DataSetEntry] -> Int -> ListDataSetsResponse)
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 [DataSetEntry] -> Int -> ListDataSetsResponse)
-> Either String (Maybe [DataSetEntry])
-> Either String (Int -> ListDataSetsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [DataSetEntry]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DataSets" Either String (Maybe (Maybe [DataSetEntry]))
-> Maybe [DataSetEntry] -> Either String (Maybe [DataSetEntry])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DataSetEntry]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListDataSetsResponse)
-> Either String Int -> Either String ListDataSetsResponse
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 ListDataSets
instance Prelude.NFData ListDataSets
instance Core.ToHeaders ListDataSets where
toHeaders :: ListDataSets -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListDataSets -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListDataSets where
toPath :: ListDataSets -> ByteString
toPath = ByteString -> ListDataSets -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v1/data-sets"
instance Core.ToQuery ListDataSets where
toQuery :: ListDataSets -> QueryString
toQuery ListDataSets' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
origin :: Maybe Text
$sel:maxResults:ListDataSets' :: ListDataSets -> Maybe Natural
$sel:nextToken:ListDataSets' :: ListDataSets -> Maybe Text
$sel:origin:ListDataSets' :: ListDataSets -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"origin" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
origin,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListDataSetsResponse = ListDataSetsResponse'
{
ListDataSetsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDataSetsResponse -> Maybe [DataSetEntry]
dataSets :: Prelude.Maybe [DataSetEntry],
ListDataSetsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListDataSetsResponse -> ListDataSetsResponse -> Bool
(ListDataSetsResponse -> ListDataSetsResponse -> Bool)
-> (ListDataSetsResponse -> ListDataSetsResponse -> Bool)
-> Eq ListDataSetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataSetsResponse -> ListDataSetsResponse -> Bool
$c/= :: ListDataSetsResponse -> ListDataSetsResponse -> Bool
== :: ListDataSetsResponse -> ListDataSetsResponse -> Bool
$c== :: ListDataSetsResponse -> ListDataSetsResponse -> Bool
Prelude.Eq, ReadPrec [ListDataSetsResponse]
ReadPrec ListDataSetsResponse
Int -> ReadS ListDataSetsResponse
ReadS [ListDataSetsResponse]
(Int -> ReadS ListDataSetsResponse)
-> ReadS [ListDataSetsResponse]
-> ReadPrec ListDataSetsResponse
-> ReadPrec [ListDataSetsResponse]
-> Read ListDataSetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataSetsResponse]
$creadListPrec :: ReadPrec [ListDataSetsResponse]
readPrec :: ReadPrec ListDataSetsResponse
$creadPrec :: ReadPrec ListDataSetsResponse
readList :: ReadS [ListDataSetsResponse]
$creadList :: ReadS [ListDataSetsResponse]
readsPrec :: Int -> ReadS ListDataSetsResponse
$creadsPrec :: Int -> ReadS ListDataSetsResponse
Prelude.Read, Int -> ListDataSetsResponse -> ShowS
[ListDataSetsResponse] -> ShowS
ListDataSetsResponse -> String
(Int -> ListDataSetsResponse -> ShowS)
-> (ListDataSetsResponse -> String)
-> ([ListDataSetsResponse] -> ShowS)
-> Show ListDataSetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataSetsResponse] -> ShowS
$cshowList :: [ListDataSetsResponse] -> ShowS
show :: ListDataSetsResponse -> String
$cshow :: ListDataSetsResponse -> String
showsPrec :: Int -> ListDataSetsResponse -> ShowS
$cshowsPrec :: Int -> ListDataSetsResponse -> ShowS
Prelude.Show, (forall x. ListDataSetsResponse -> Rep ListDataSetsResponse x)
-> (forall x. Rep ListDataSetsResponse x -> ListDataSetsResponse)
-> Generic ListDataSetsResponse
forall x. Rep ListDataSetsResponse x -> ListDataSetsResponse
forall x. ListDataSetsResponse -> Rep ListDataSetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDataSetsResponse x -> ListDataSetsResponse
$cfrom :: forall x. ListDataSetsResponse -> Rep ListDataSetsResponse x
Prelude.Generic)
newListDataSetsResponse ::
Prelude.Int ->
ListDataSetsResponse
newListDataSetsResponse :: Int -> ListDataSetsResponse
newListDataSetsResponse Int
pHttpStatus_ =
ListDataSetsResponse' :: Maybe Text -> Maybe [DataSetEntry] -> Int -> ListDataSetsResponse
ListDataSetsResponse'
{ $sel:nextToken:ListDataSetsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dataSets:ListDataSetsResponse' :: Maybe [DataSetEntry]
dataSets = Maybe [DataSetEntry]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDataSetsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listDataSetsResponse_nextToken :: Lens.Lens' ListDataSetsResponse (Prelude.Maybe Prelude.Text)
listDataSetsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDataSetsResponse -> f ListDataSetsResponse
listDataSetsResponse_nextToken = (ListDataSetsResponse -> Maybe Text)
-> (ListDataSetsResponse -> Maybe Text -> ListDataSetsResponse)
-> Lens' ListDataSetsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataSetsResponse' :: ListDataSetsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataSetsResponse
s@ListDataSetsResponse' {} Maybe Text
a -> ListDataSetsResponse
s {$sel:nextToken:ListDataSetsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataSetsResponse)
listDataSetsResponse_dataSets :: Lens.Lens' ListDataSetsResponse (Prelude.Maybe [DataSetEntry])
listDataSetsResponse_dataSets :: (Maybe [DataSetEntry] -> f (Maybe [DataSetEntry]))
-> ListDataSetsResponse -> f ListDataSetsResponse
listDataSetsResponse_dataSets = (ListDataSetsResponse -> Maybe [DataSetEntry])
-> (ListDataSetsResponse
-> Maybe [DataSetEntry] -> ListDataSetsResponse)
-> Lens' ListDataSetsResponse (Maybe [DataSetEntry])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetsResponse' {Maybe [DataSetEntry]
dataSets :: Maybe [DataSetEntry]
$sel:dataSets:ListDataSetsResponse' :: ListDataSetsResponse -> Maybe [DataSetEntry]
dataSets} -> Maybe [DataSetEntry]
dataSets) (\s :: ListDataSetsResponse
s@ListDataSetsResponse' {} Maybe [DataSetEntry]
a -> ListDataSetsResponse
s {$sel:dataSets:ListDataSetsResponse' :: Maybe [DataSetEntry]
dataSets = Maybe [DataSetEntry]
a} :: ListDataSetsResponse) ((Maybe [DataSetEntry] -> f (Maybe [DataSetEntry]))
-> ListDataSetsResponse -> f ListDataSetsResponse)
-> ((Maybe [DataSetEntry] -> f (Maybe [DataSetEntry]))
-> Maybe [DataSetEntry] -> f (Maybe [DataSetEntry]))
-> (Maybe [DataSetEntry] -> f (Maybe [DataSetEntry]))
-> ListDataSetsResponse
-> f ListDataSetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [DataSetEntry] [DataSetEntry] [DataSetEntry] [DataSetEntry]
-> Iso
(Maybe [DataSetEntry])
(Maybe [DataSetEntry])
(Maybe [DataSetEntry])
(Maybe [DataSetEntry])
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 [DataSetEntry] [DataSetEntry] [DataSetEntry] [DataSetEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listDataSetsResponse_httpStatus :: Lens.Lens' ListDataSetsResponse Prelude.Int
listDataSetsResponse_httpStatus :: (Int -> f Int) -> ListDataSetsResponse -> f ListDataSetsResponse
listDataSetsResponse_httpStatus = (ListDataSetsResponse -> Int)
-> (ListDataSetsResponse -> Int -> ListDataSetsResponse)
-> Lens ListDataSetsResponse ListDataSetsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDataSetsResponse' :: ListDataSetsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDataSetsResponse
s@ListDataSetsResponse' {} Int
a -> ListDataSetsResponse
s {$sel:httpStatus:ListDataSetsResponse' :: Int
httpStatus = Int
a} :: ListDataSetsResponse)
instance Prelude.NFData ListDataSetsResponse