{-# 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.ApiGatewayV2.GetRoutes
(
GetRoutes (..),
newGetRoutes,
getRoutes_nextToken,
getRoutes_maxResults,
getRoutes_apiId,
GetRoutesResponse (..),
newGetRoutesResponse,
getRoutesResponse_items,
getRoutesResponse_nextToken,
getRoutesResponse_httpStatus,
)
where
import Amazonka.ApiGatewayV2.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 GetRoutes = GetRoutes'
{
GetRoutes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetRoutes -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
GetRoutes -> Text
apiId :: Prelude.Text
}
deriving (GetRoutes -> GetRoutes -> Bool
(GetRoutes -> GetRoutes -> Bool)
-> (GetRoutes -> GetRoutes -> Bool) -> Eq GetRoutes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRoutes -> GetRoutes -> Bool
$c/= :: GetRoutes -> GetRoutes -> Bool
== :: GetRoutes -> GetRoutes -> Bool
$c== :: GetRoutes -> GetRoutes -> Bool
Prelude.Eq, ReadPrec [GetRoutes]
ReadPrec GetRoutes
Int -> ReadS GetRoutes
ReadS [GetRoutes]
(Int -> ReadS GetRoutes)
-> ReadS [GetRoutes]
-> ReadPrec GetRoutes
-> ReadPrec [GetRoutes]
-> Read GetRoutes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRoutes]
$creadListPrec :: ReadPrec [GetRoutes]
readPrec :: ReadPrec GetRoutes
$creadPrec :: ReadPrec GetRoutes
readList :: ReadS [GetRoutes]
$creadList :: ReadS [GetRoutes]
readsPrec :: Int -> ReadS GetRoutes
$creadsPrec :: Int -> ReadS GetRoutes
Prelude.Read, Int -> GetRoutes -> ShowS
[GetRoutes] -> ShowS
GetRoutes -> String
(Int -> GetRoutes -> ShowS)
-> (GetRoutes -> String)
-> ([GetRoutes] -> ShowS)
-> Show GetRoutes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRoutes] -> ShowS
$cshowList :: [GetRoutes] -> ShowS
show :: GetRoutes -> String
$cshow :: GetRoutes -> String
showsPrec :: Int -> GetRoutes -> ShowS
$cshowsPrec :: Int -> GetRoutes -> ShowS
Prelude.Show, (forall x. GetRoutes -> Rep GetRoutes x)
-> (forall x. Rep GetRoutes x -> GetRoutes) -> Generic GetRoutes
forall x. Rep GetRoutes x -> GetRoutes
forall x. GetRoutes -> Rep GetRoutes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetRoutes x -> GetRoutes
$cfrom :: forall x. GetRoutes -> Rep GetRoutes x
Prelude.Generic)
newGetRoutes ::
Prelude.Text ->
GetRoutes
newGetRoutes :: Text -> GetRoutes
newGetRoutes Text
pApiId_ =
GetRoutes' :: Maybe Text -> Maybe Text -> Text -> GetRoutes
GetRoutes'
{ $sel:nextToken:GetRoutes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetRoutes' :: Maybe Text
maxResults = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:apiId:GetRoutes' :: Text
apiId = Text
pApiId_
}
getRoutes_nextToken :: Lens.Lens' GetRoutes (Prelude.Maybe Prelude.Text)
getRoutes_nextToken :: (Maybe Text -> f (Maybe Text)) -> GetRoutes -> f GetRoutes
getRoutes_nextToken = (GetRoutes -> Maybe Text)
-> (GetRoutes -> Maybe Text -> GetRoutes)
-> Lens GetRoutes GetRoutes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRoutes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetRoutes' :: GetRoutes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetRoutes
s@GetRoutes' {} Maybe Text
a -> GetRoutes
s {$sel:nextToken:GetRoutes' :: Maybe Text
nextToken = Maybe Text
a} :: GetRoutes)
getRoutes_maxResults :: Lens.Lens' GetRoutes (Prelude.Maybe Prelude.Text)
getRoutes_maxResults :: (Maybe Text -> f (Maybe Text)) -> GetRoutes -> f GetRoutes
getRoutes_maxResults = (GetRoutes -> Maybe Text)
-> (GetRoutes -> Maybe Text -> GetRoutes)
-> Lens GetRoutes GetRoutes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRoutes' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:GetRoutes' :: GetRoutes -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: GetRoutes
s@GetRoutes' {} Maybe Text
a -> GetRoutes
s {$sel:maxResults:GetRoutes' :: Maybe Text
maxResults = Maybe Text
a} :: GetRoutes)
getRoutes_apiId :: Lens.Lens' GetRoutes Prelude.Text
getRoutes_apiId :: (Text -> f Text) -> GetRoutes -> f GetRoutes
getRoutes_apiId = (GetRoutes -> Text)
-> (GetRoutes -> Text -> GetRoutes)
-> Lens GetRoutes GetRoutes Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRoutes' {Text
apiId :: Text
$sel:apiId:GetRoutes' :: GetRoutes -> Text
apiId} -> Text
apiId) (\s :: GetRoutes
s@GetRoutes' {} Text
a -> GetRoutes
s {$sel:apiId:GetRoutes' :: Text
apiId = Text
a} :: GetRoutes)
instance Core.AWSPager GetRoutes where
page :: GetRoutes -> AWSResponse GetRoutes -> Maybe GetRoutes
page GetRoutes
rq AWSResponse GetRoutes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRoutes
GetRoutesResponse
rs
GetRoutesResponse
-> Getting (First Text) GetRoutesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRoutesResponse -> Const (First Text) GetRoutesResponse
Lens' GetRoutesResponse (Maybe Text)
getRoutesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRoutesResponse -> Const (First Text) GetRoutesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetRoutesResponse 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 GetRoutes
forall a. Maybe a
Prelude.Nothing
| Maybe [Route] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRoutes
GetRoutesResponse
rs
GetRoutesResponse
-> Getting (First [Route]) GetRoutesResponse [Route]
-> Maybe [Route]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Route] -> Const (First [Route]) (Maybe [Route]))
-> GetRoutesResponse -> Const (First [Route]) GetRoutesResponse
Lens' GetRoutesResponse (Maybe [Route])
getRoutesResponse_items ((Maybe [Route] -> Const (First [Route]) (Maybe [Route]))
-> GetRoutesResponse -> Const (First [Route]) GetRoutesResponse)
-> (([Route] -> Const (First [Route]) [Route])
-> Maybe [Route] -> Const (First [Route]) (Maybe [Route]))
-> Getting (First [Route]) GetRoutesResponse [Route]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Route] -> Const (First [Route]) [Route])
-> Maybe [Route] -> Const (First [Route]) (Maybe [Route])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetRoutes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetRoutes -> Maybe GetRoutes
forall a. a -> Maybe a
Prelude.Just (GetRoutes -> Maybe GetRoutes) -> GetRoutes -> Maybe GetRoutes
forall a b. (a -> b) -> a -> b
Prelude.$
GetRoutes
rq
GetRoutes -> (GetRoutes -> GetRoutes) -> GetRoutes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetRoutes -> Identity GetRoutes
Lens GetRoutes GetRoutes (Maybe Text) (Maybe Text)
getRoutes_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetRoutes -> Identity GetRoutes)
-> Maybe Text -> GetRoutes -> GetRoutes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetRoutes
GetRoutesResponse
rs
GetRoutesResponse
-> Getting (First Text) GetRoutesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRoutesResponse -> Const (First Text) GetRoutesResponse
Lens' GetRoutesResponse (Maybe Text)
getRoutesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRoutesResponse -> Const (First Text) GetRoutesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetRoutesResponse 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 GetRoutes where
type AWSResponse GetRoutes = GetRoutesResponse
request :: GetRoutes -> Request GetRoutes
request = Service -> GetRoutes -> Request GetRoutes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetRoutes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetRoutes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetRoutes))
-> Logger
-> Service
-> Proxy GetRoutes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetRoutes)))
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 [Route] -> Maybe Text -> Int -> GetRoutesResponse
GetRoutesResponse'
(Maybe [Route] -> Maybe Text -> Int -> GetRoutesResponse)
-> Either String (Maybe [Route])
-> Either String (Maybe Text -> Int -> GetRoutesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Route]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"items" Either String (Maybe (Maybe [Route]))
-> Maybe [Route] -> Either String (Maybe [Route])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Route]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> GetRoutesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetRoutesResponse)
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 -> GetRoutesResponse)
-> Either String Int -> Either String GetRoutesResponse
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 GetRoutes
instance Prelude.NFData GetRoutes
instance Core.ToHeaders GetRoutes where
toHeaders :: GetRoutes -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetRoutes -> 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 GetRoutes where
toPath :: GetRoutes -> ByteString
toPath GetRoutes' {Maybe Text
Text
apiId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:apiId:GetRoutes' :: GetRoutes -> Text
$sel:maxResults:GetRoutes' :: GetRoutes -> Maybe Text
$sel:nextToken:GetRoutes' :: GetRoutes -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v2/apis/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId, ByteString
"/routes"]
instance Core.ToQuery GetRoutes where
toQuery :: GetRoutes -> QueryString
toQuery GetRoutes' {Maybe Text
Text
apiId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:apiId:GetRoutes' :: GetRoutes -> Text
$sel:maxResults:GetRoutes' :: GetRoutes -> Maybe Text
$sel:nextToken:GetRoutes' :: GetRoutes -> 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 Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maxResults
]
data GetRoutesResponse = GetRoutesResponse'
{
GetRoutesResponse -> Maybe [Route]
items :: Prelude.Maybe [Route],
GetRoutesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetRoutesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetRoutesResponse -> GetRoutesResponse -> Bool
(GetRoutesResponse -> GetRoutesResponse -> Bool)
-> (GetRoutesResponse -> GetRoutesResponse -> Bool)
-> Eq GetRoutesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRoutesResponse -> GetRoutesResponse -> Bool
$c/= :: GetRoutesResponse -> GetRoutesResponse -> Bool
== :: GetRoutesResponse -> GetRoutesResponse -> Bool
$c== :: GetRoutesResponse -> GetRoutesResponse -> Bool
Prelude.Eq, ReadPrec [GetRoutesResponse]
ReadPrec GetRoutesResponse
Int -> ReadS GetRoutesResponse
ReadS [GetRoutesResponse]
(Int -> ReadS GetRoutesResponse)
-> ReadS [GetRoutesResponse]
-> ReadPrec GetRoutesResponse
-> ReadPrec [GetRoutesResponse]
-> Read GetRoutesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRoutesResponse]
$creadListPrec :: ReadPrec [GetRoutesResponse]
readPrec :: ReadPrec GetRoutesResponse
$creadPrec :: ReadPrec GetRoutesResponse
readList :: ReadS [GetRoutesResponse]
$creadList :: ReadS [GetRoutesResponse]
readsPrec :: Int -> ReadS GetRoutesResponse
$creadsPrec :: Int -> ReadS GetRoutesResponse
Prelude.Read, Int -> GetRoutesResponse -> ShowS
[GetRoutesResponse] -> ShowS
GetRoutesResponse -> String
(Int -> GetRoutesResponse -> ShowS)
-> (GetRoutesResponse -> String)
-> ([GetRoutesResponse] -> ShowS)
-> Show GetRoutesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRoutesResponse] -> ShowS
$cshowList :: [GetRoutesResponse] -> ShowS
show :: GetRoutesResponse -> String
$cshow :: GetRoutesResponse -> String
showsPrec :: Int -> GetRoutesResponse -> ShowS
$cshowsPrec :: Int -> GetRoutesResponse -> ShowS
Prelude.Show, (forall x. GetRoutesResponse -> Rep GetRoutesResponse x)
-> (forall x. Rep GetRoutesResponse x -> GetRoutesResponse)
-> Generic GetRoutesResponse
forall x. Rep GetRoutesResponse x -> GetRoutesResponse
forall x. GetRoutesResponse -> Rep GetRoutesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetRoutesResponse x -> GetRoutesResponse
$cfrom :: forall x. GetRoutesResponse -> Rep GetRoutesResponse x
Prelude.Generic)
newGetRoutesResponse ::
Prelude.Int ->
GetRoutesResponse
newGetRoutesResponse :: Int -> GetRoutesResponse
newGetRoutesResponse Int
pHttpStatus_ =
GetRoutesResponse' :: Maybe [Route] -> Maybe Text -> Int -> GetRoutesResponse
GetRoutesResponse'
{ $sel:items:GetRoutesResponse' :: Maybe [Route]
items = Maybe [Route]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetRoutesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetRoutesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getRoutesResponse_items :: Lens.Lens' GetRoutesResponse (Prelude.Maybe [Route])
getRoutesResponse_items :: (Maybe [Route] -> f (Maybe [Route]))
-> GetRoutesResponse -> f GetRoutesResponse
getRoutesResponse_items = (GetRoutesResponse -> Maybe [Route])
-> (GetRoutesResponse -> Maybe [Route] -> GetRoutesResponse)
-> Lens' GetRoutesResponse (Maybe [Route])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRoutesResponse' {Maybe [Route]
items :: Maybe [Route]
$sel:items:GetRoutesResponse' :: GetRoutesResponse -> Maybe [Route]
items} -> Maybe [Route]
items) (\s :: GetRoutesResponse
s@GetRoutesResponse' {} Maybe [Route]
a -> GetRoutesResponse
s {$sel:items:GetRoutesResponse' :: Maybe [Route]
items = Maybe [Route]
a} :: GetRoutesResponse) ((Maybe [Route] -> f (Maybe [Route]))
-> GetRoutesResponse -> f GetRoutesResponse)
-> ((Maybe [Route] -> f (Maybe [Route]))
-> Maybe [Route] -> f (Maybe [Route]))
-> (Maybe [Route] -> f (Maybe [Route]))
-> GetRoutesResponse
-> f GetRoutesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Route] [Route] [Route] [Route]
-> Iso
(Maybe [Route]) (Maybe [Route]) (Maybe [Route]) (Maybe [Route])
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 [Route] [Route] [Route] [Route]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getRoutesResponse_nextToken :: Lens.Lens' GetRoutesResponse (Prelude.Maybe Prelude.Text)
getRoutesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetRoutesResponse -> f GetRoutesResponse
getRoutesResponse_nextToken = (GetRoutesResponse -> Maybe Text)
-> (GetRoutesResponse -> Maybe Text -> GetRoutesResponse)
-> Lens' GetRoutesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRoutesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetRoutesResponse' :: GetRoutesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetRoutesResponse
s@GetRoutesResponse' {} Maybe Text
a -> GetRoutesResponse
s {$sel:nextToken:GetRoutesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetRoutesResponse)
getRoutesResponse_httpStatus :: Lens.Lens' GetRoutesResponse Prelude.Int
getRoutesResponse_httpStatus :: (Int -> f Int) -> GetRoutesResponse -> f GetRoutesResponse
getRoutesResponse_httpStatus = (GetRoutesResponse -> Int)
-> (GetRoutesResponse -> Int -> GetRoutesResponse)
-> Lens GetRoutesResponse GetRoutesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRoutesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRoutesResponse' :: GetRoutesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRoutesResponse
s@GetRoutesResponse' {} Int
a -> GetRoutesResponse
s {$sel:httpStatus:GetRoutesResponse' :: Int
httpStatus = Int
a} :: GetRoutesResponse)
instance Prelude.NFData GetRoutesResponse