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