{-# 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.AppSync.ListResolvers
(
ListResolvers (..),
newListResolvers,
listResolvers_nextToken,
listResolvers_maxResults,
listResolvers_apiId,
listResolvers_typeName,
ListResolversResponse (..),
newListResolversResponse,
listResolversResponse_nextToken,
listResolversResponse_resolvers,
listResolversResponse_httpStatus,
)
where
import Amazonka.AppSync.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 ListResolvers = ListResolvers'
{
ListResolvers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolvers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListResolvers -> Text
apiId :: Prelude.Text,
ListResolvers -> Text
typeName :: Prelude.Text
}
deriving (ListResolvers -> ListResolvers -> Bool
(ListResolvers -> ListResolvers -> Bool)
-> (ListResolvers -> ListResolvers -> Bool) -> Eq ListResolvers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolvers -> ListResolvers -> Bool
$c/= :: ListResolvers -> ListResolvers -> Bool
== :: ListResolvers -> ListResolvers -> Bool
$c== :: ListResolvers -> ListResolvers -> Bool
Prelude.Eq, ReadPrec [ListResolvers]
ReadPrec ListResolvers
Int -> ReadS ListResolvers
ReadS [ListResolvers]
(Int -> ReadS ListResolvers)
-> ReadS [ListResolvers]
-> ReadPrec ListResolvers
-> ReadPrec [ListResolvers]
-> Read ListResolvers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolvers]
$creadListPrec :: ReadPrec [ListResolvers]
readPrec :: ReadPrec ListResolvers
$creadPrec :: ReadPrec ListResolvers
readList :: ReadS [ListResolvers]
$creadList :: ReadS [ListResolvers]
readsPrec :: Int -> ReadS ListResolvers
$creadsPrec :: Int -> ReadS ListResolvers
Prelude.Read, Int -> ListResolvers -> ShowS
[ListResolvers] -> ShowS
ListResolvers -> String
(Int -> ListResolvers -> ShowS)
-> (ListResolvers -> String)
-> ([ListResolvers] -> ShowS)
-> Show ListResolvers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolvers] -> ShowS
$cshowList :: [ListResolvers] -> ShowS
show :: ListResolvers -> String
$cshow :: ListResolvers -> String
showsPrec :: Int -> ListResolvers -> ShowS
$cshowsPrec :: Int -> ListResolvers -> ShowS
Prelude.Show, (forall x. ListResolvers -> Rep ListResolvers x)
-> (forall x. Rep ListResolvers x -> ListResolvers)
-> Generic ListResolvers
forall x. Rep ListResolvers x -> ListResolvers
forall x. ListResolvers -> Rep ListResolvers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListResolvers x -> ListResolvers
$cfrom :: forall x. ListResolvers -> Rep ListResolvers x
Prelude.Generic)
newListResolvers ::
Prelude.Text ->
Prelude.Text ->
ListResolvers
newListResolvers :: Text -> Text -> ListResolvers
newListResolvers Text
pApiId_ Text
pTypeName_ =
ListResolvers' :: Maybe Text -> Maybe Natural -> Text -> Text -> ListResolvers
ListResolvers'
{ $sel:nextToken:ListResolvers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListResolvers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:apiId:ListResolvers' :: Text
apiId = Text
pApiId_,
$sel:typeName:ListResolvers' :: Text
typeName = Text
pTypeName_
}
listResolvers_nextToken :: Lens.Lens' ListResolvers (Prelude.Maybe Prelude.Text)
listResolvers_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListResolvers -> f ListResolvers
listResolvers_nextToken = (ListResolvers -> Maybe Text)
-> (ListResolvers -> Maybe Text -> ListResolvers)
-> Lens ListResolvers ListResolvers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolvers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolvers' :: ListResolvers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolvers
s@ListResolvers' {} Maybe Text
a -> ListResolvers
s {$sel:nextToken:ListResolvers' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolvers)
listResolvers_maxResults :: Lens.Lens' ListResolvers (Prelude.Maybe Prelude.Natural)
listResolvers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListResolvers -> f ListResolvers
listResolvers_maxResults = (ListResolvers -> Maybe Natural)
-> (ListResolvers -> Maybe Natural -> ListResolvers)
-> Lens ListResolvers ListResolvers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolvers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResolvers' :: ListResolvers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResolvers
s@ListResolvers' {} Maybe Natural
a -> ListResolvers
s {$sel:maxResults:ListResolvers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResolvers)
listResolvers_apiId :: Lens.Lens' ListResolvers Prelude.Text
listResolvers_apiId :: (Text -> f Text) -> ListResolvers -> f ListResolvers
listResolvers_apiId = (ListResolvers -> Text)
-> (ListResolvers -> Text -> ListResolvers)
-> Lens ListResolvers ListResolvers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolvers' {Text
apiId :: Text
$sel:apiId:ListResolvers' :: ListResolvers -> Text
apiId} -> Text
apiId) (\s :: ListResolvers
s@ListResolvers' {} Text
a -> ListResolvers
s {$sel:apiId:ListResolvers' :: Text
apiId = Text
a} :: ListResolvers)
listResolvers_typeName :: Lens.Lens' ListResolvers Prelude.Text
listResolvers_typeName :: (Text -> f Text) -> ListResolvers -> f ListResolvers
listResolvers_typeName = (ListResolvers -> Text)
-> (ListResolvers -> Text -> ListResolvers)
-> Lens ListResolvers ListResolvers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolvers' {Text
typeName :: Text
$sel:typeName:ListResolvers' :: ListResolvers -> Text
typeName} -> Text
typeName) (\s :: ListResolvers
s@ListResolvers' {} Text
a -> ListResolvers
s {$sel:typeName:ListResolvers' :: Text
typeName = Text
a} :: ListResolvers)
instance Core.AWSPager ListResolvers where
page :: ListResolvers -> AWSResponse ListResolvers -> Maybe ListResolvers
page ListResolvers
rq AWSResponse ListResolvers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolvers
ListResolversResponse
rs
ListResolversResponse
-> Getting (First Text) ListResolversResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversResponse
-> Const (First Text) ListResolversResponse
Lens' ListResolversResponse (Maybe Text)
listResolversResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversResponse
-> Const (First Text) ListResolversResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResolversResponse 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 ListResolvers
forall a. Maybe a
Prelude.Nothing
| Maybe [Resolver] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolvers
ListResolversResponse
rs
ListResolversResponse
-> Getting (First [Resolver]) ListResolversResponse [Resolver]
-> Maybe [Resolver]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver]))
-> ListResolversResponse
-> Const (First [Resolver]) ListResolversResponse
Lens' ListResolversResponse (Maybe [Resolver])
listResolversResponse_resolvers ((Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver]))
-> ListResolversResponse
-> Const (First [Resolver]) ListResolversResponse)
-> (([Resolver] -> Const (First [Resolver]) [Resolver])
-> Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver]))
-> Getting (First [Resolver]) ListResolversResponse [Resolver]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Resolver] -> Const (First [Resolver]) [Resolver])
-> Maybe [Resolver] -> Const (First [Resolver]) (Maybe [Resolver])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListResolvers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListResolvers -> Maybe ListResolvers
forall a. a -> Maybe a
Prelude.Just (ListResolvers -> Maybe ListResolvers)
-> ListResolvers -> Maybe ListResolvers
forall a b. (a -> b) -> a -> b
Prelude.$
ListResolvers
rq
ListResolvers -> (ListResolvers -> ListResolvers) -> ListResolvers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListResolvers -> Identity ListResolvers
Lens ListResolvers ListResolvers (Maybe Text) (Maybe Text)
listResolvers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListResolvers -> Identity ListResolvers)
-> Maybe Text -> ListResolvers -> ListResolvers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResolvers
ListResolversResponse
rs
ListResolversResponse
-> Getting (First Text) ListResolversResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversResponse
-> Const (First Text) ListResolversResponse
Lens' ListResolversResponse (Maybe Text)
listResolversResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolversResponse
-> Const (First Text) ListResolversResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResolversResponse 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 ListResolvers where
type
AWSResponse ListResolvers =
ListResolversResponse
request :: ListResolvers -> Request ListResolvers
request = Service -> ListResolvers -> Request ListResolvers
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListResolvers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListResolvers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListResolvers))
-> Logger
-> Service
-> Proxy ListResolvers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListResolvers)))
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 [Resolver] -> Int -> ListResolversResponse
ListResolversResponse'
(Maybe Text -> Maybe [Resolver] -> Int -> ListResolversResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Resolver] -> Int -> ListResolversResponse)
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 [Resolver] -> Int -> ListResolversResponse)
-> Either String (Maybe [Resolver])
-> Either String (Int -> ListResolversResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Resolver]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resolvers" Either String (Maybe (Maybe [Resolver]))
-> Maybe [Resolver] -> Either String (Maybe [Resolver])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Resolver]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListResolversResponse)
-> Either String Int -> Either String ListResolversResponse
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 ListResolvers
instance Prelude.NFData ListResolvers
instance Core.ToHeaders ListResolvers where
toHeaders :: ListResolvers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListResolvers -> 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 ListResolvers where
toPath :: ListResolvers -> ByteString
toPath ListResolvers' {Maybe Natural
Maybe Text
Text
typeName :: Text
apiId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:typeName:ListResolvers' :: ListResolvers -> Text
$sel:apiId:ListResolvers' :: ListResolvers -> Text
$sel:maxResults:ListResolvers' :: ListResolvers -> Maybe Natural
$sel:nextToken:ListResolvers' :: ListResolvers -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/apis/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId,
ByteString
"/types/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
typeName,
ByteString
"/resolvers"
]
instance Core.ToQuery ListResolvers where
toQuery :: ListResolvers -> QueryString
toQuery ListResolvers' {Maybe Natural
Maybe Text
Text
typeName :: Text
apiId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:typeName:ListResolvers' :: ListResolvers -> Text
$sel:apiId:ListResolvers' :: ListResolvers -> Text
$sel:maxResults:ListResolvers' :: ListResolvers -> Maybe Natural
$sel:nextToken:ListResolvers' :: ListResolvers -> 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 ListResolversResponse = ListResolversResponse'
{
ListResolversResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolversResponse -> Maybe [Resolver]
resolvers :: Prelude.Maybe [Resolver],
ListResolversResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListResolversResponse -> ListResolversResponse -> Bool
(ListResolversResponse -> ListResolversResponse -> Bool)
-> (ListResolversResponse -> ListResolversResponse -> Bool)
-> Eq ListResolversResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolversResponse -> ListResolversResponse -> Bool
$c/= :: ListResolversResponse -> ListResolversResponse -> Bool
== :: ListResolversResponse -> ListResolversResponse -> Bool
$c== :: ListResolversResponse -> ListResolversResponse -> Bool
Prelude.Eq, ReadPrec [ListResolversResponse]
ReadPrec ListResolversResponse
Int -> ReadS ListResolversResponse
ReadS [ListResolversResponse]
(Int -> ReadS ListResolversResponse)
-> ReadS [ListResolversResponse]
-> ReadPrec ListResolversResponse
-> ReadPrec [ListResolversResponse]
-> Read ListResolversResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolversResponse]
$creadListPrec :: ReadPrec [ListResolversResponse]
readPrec :: ReadPrec ListResolversResponse
$creadPrec :: ReadPrec ListResolversResponse
readList :: ReadS [ListResolversResponse]
$creadList :: ReadS [ListResolversResponse]
readsPrec :: Int -> ReadS ListResolversResponse
$creadsPrec :: Int -> ReadS ListResolversResponse
Prelude.Read, Int -> ListResolversResponse -> ShowS
[ListResolversResponse] -> ShowS
ListResolversResponse -> String
(Int -> ListResolversResponse -> ShowS)
-> (ListResolversResponse -> String)
-> ([ListResolversResponse] -> ShowS)
-> Show ListResolversResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolversResponse] -> ShowS
$cshowList :: [ListResolversResponse] -> ShowS
show :: ListResolversResponse -> String
$cshow :: ListResolversResponse -> String
showsPrec :: Int -> ListResolversResponse -> ShowS
$cshowsPrec :: Int -> ListResolversResponse -> ShowS
Prelude.Show, (forall x. ListResolversResponse -> Rep ListResolversResponse x)
-> (forall x. Rep ListResolversResponse x -> ListResolversResponse)
-> Generic ListResolversResponse
forall x. Rep ListResolversResponse x -> ListResolversResponse
forall x. ListResolversResponse -> Rep ListResolversResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListResolversResponse x -> ListResolversResponse
$cfrom :: forall x. ListResolversResponse -> Rep ListResolversResponse x
Prelude.Generic)
newListResolversResponse ::
Prelude.Int ->
ListResolversResponse
newListResolversResponse :: Int -> ListResolversResponse
newListResolversResponse Int
pHttpStatus_ =
ListResolversResponse' :: Maybe Text -> Maybe [Resolver] -> Int -> ListResolversResponse
ListResolversResponse'
{ $sel:nextToken:ListResolversResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resolvers:ListResolversResponse' :: Maybe [Resolver]
resolvers = Maybe [Resolver]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListResolversResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listResolversResponse_nextToken :: Lens.Lens' ListResolversResponse (Prelude.Maybe Prelude.Text)
listResolversResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResolversResponse -> f ListResolversResponse
listResolversResponse_nextToken = (ListResolversResponse -> Maybe Text)
-> (ListResolversResponse -> Maybe Text -> ListResolversResponse)
-> Lens' ListResolversResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolversResponse' :: ListResolversResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolversResponse
s@ListResolversResponse' {} Maybe Text
a -> ListResolversResponse
s {$sel:nextToken:ListResolversResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolversResponse)
listResolversResponse_resolvers :: Lens.Lens' ListResolversResponse (Prelude.Maybe [Resolver])
listResolversResponse_resolvers :: (Maybe [Resolver] -> f (Maybe [Resolver]))
-> ListResolversResponse -> f ListResolversResponse
listResolversResponse_resolvers = (ListResolversResponse -> Maybe [Resolver])
-> (ListResolversResponse
-> Maybe [Resolver] -> ListResolversResponse)
-> Lens' ListResolversResponse (Maybe [Resolver])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversResponse' {Maybe [Resolver]
resolvers :: Maybe [Resolver]
$sel:resolvers:ListResolversResponse' :: ListResolversResponse -> Maybe [Resolver]
resolvers} -> Maybe [Resolver]
resolvers) (\s :: ListResolversResponse
s@ListResolversResponse' {} Maybe [Resolver]
a -> ListResolversResponse
s {$sel:resolvers:ListResolversResponse' :: Maybe [Resolver]
resolvers = Maybe [Resolver]
a} :: ListResolversResponse) ((Maybe [Resolver] -> f (Maybe [Resolver]))
-> ListResolversResponse -> f ListResolversResponse)
-> ((Maybe [Resolver] -> f (Maybe [Resolver]))
-> Maybe [Resolver] -> f (Maybe [Resolver]))
-> (Maybe [Resolver] -> f (Maybe [Resolver]))
-> ListResolversResponse
-> f ListResolversResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Resolver] [Resolver] [Resolver] [Resolver]
-> Iso
(Maybe [Resolver])
(Maybe [Resolver])
(Maybe [Resolver])
(Maybe [Resolver])
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 [Resolver] [Resolver] [Resolver] [Resolver]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listResolversResponse_httpStatus :: Lens.Lens' ListResolversResponse Prelude.Int
listResolversResponse_httpStatus :: (Int -> f Int) -> ListResolversResponse -> f ListResolversResponse
listResolversResponse_httpStatus = (ListResolversResponse -> Int)
-> (ListResolversResponse -> Int -> ListResolversResponse)
-> Lens ListResolversResponse ListResolversResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolversResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResolversResponse' :: ListResolversResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResolversResponse
s@ListResolversResponse' {} Int
a -> ListResolversResponse
s {$sel:httpStatus:ListResolversResponse' :: Int
httpStatus = Int
a} :: ListResolversResponse)
instance Prelude.NFData ListResolversResponse