{-# 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.AppMesh.ListRoutes
(
ListRoutes (..),
newListRoutes,
listRoutes_meshOwner,
listRoutes_nextToken,
listRoutes_limit,
listRoutes_meshName,
listRoutes_virtualRouterName,
ListRoutesResponse (..),
newListRoutesResponse,
listRoutesResponse_nextToken,
listRoutesResponse_httpStatus,
listRoutesResponse_routes,
)
where
import Amazonka.AppMesh.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 ListRoutes = ListRoutes'
{
ListRoutes -> Maybe Text
meshOwner :: Prelude.Maybe Prelude.Text,
ListRoutes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRoutes -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
ListRoutes -> Text
meshName :: Prelude.Text,
ListRoutes -> Text
virtualRouterName :: Prelude.Text
}
deriving (ListRoutes -> ListRoutes -> Bool
(ListRoutes -> ListRoutes -> Bool)
-> (ListRoutes -> ListRoutes -> Bool) -> Eq ListRoutes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutes -> ListRoutes -> Bool
$c/= :: ListRoutes -> ListRoutes -> Bool
== :: ListRoutes -> ListRoutes -> Bool
$c== :: ListRoutes -> ListRoutes -> Bool
Prelude.Eq, ReadPrec [ListRoutes]
ReadPrec ListRoutes
Int -> ReadS ListRoutes
ReadS [ListRoutes]
(Int -> ReadS ListRoutes)
-> ReadS [ListRoutes]
-> ReadPrec ListRoutes
-> ReadPrec [ListRoutes]
-> Read ListRoutes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutes]
$creadListPrec :: ReadPrec [ListRoutes]
readPrec :: ReadPrec ListRoutes
$creadPrec :: ReadPrec ListRoutes
readList :: ReadS [ListRoutes]
$creadList :: ReadS [ListRoutes]
readsPrec :: Int -> ReadS ListRoutes
$creadsPrec :: Int -> ReadS ListRoutes
Prelude.Read, Int -> ListRoutes -> ShowS
[ListRoutes] -> ShowS
ListRoutes -> String
(Int -> ListRoutes -> ShowS)
-> (ListRoutes -> String)
-> ([ListRoutes] -> ShowS)
-> Show ListRoutes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutes] -> ShowS
$cshowList :: [ListRoutes] -> ShowS
show :: ListRoutes -> String
$cshow :: ListRoutes -> String
showsPrec :: Int -> ListRoutes -> ShowS
$cshowsPrec :: Int -> ListRoutes -> ShowS
Prelude.Show, (forall x. ListRoutes -> Rep ListRoutes x)
-> (forall x. Rep ListRoutes x -> ListRoutes) -> Generic ListRoutes
forall x. Rep ListRoutes x -> ListRoutes
forall x. ListRoutes -> Rep ListRoutes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRoutes x -> ListRoutes
$cfrom :: forall x. ListRoutes -> Rep ListRoutes x
Prelude.Generic)
newListRoutes ::
Prelude.Text ->
Prelude.Text ->
ListRoutes
newListRoutes :: Text -> Text -> ListRoutes
newListRoutes Text
pMeshName_ Text
pVirtualRouterName_ =
ListRoutes' :: Maybe Text
-> Maybe Text -> Maybe Natural -> Text -> Text -> ListRoutes
ListRoutes'
{ $sel:meshOwner:ListRoutes' :: Maybe Text
meshOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListRoutes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListRoutes' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:meshName:ListRoutes' :: Text
meshName = Text
pMeshName_,
$sel:virtualRouterName:ListRoutes' :: Text
virtualRouterName = Text
pVirtualRouterName_
}
listRoutes_meshOwner :: Lens.Lens' ListRoutes (Prelude.Maybe Prelude.Text)
listRoutes_meshOwner :: (Maybe Text -> f (Maybe Text)) -> ListRoutes -> f ListRoutes
listRoutes_meshOwner = (ListRoutes -> Maybe Text)
-> (ListRoutes -> Maybe Text -> ListRoutes)
-> Lens ListRoutes ListRoutes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Maybe Text
meshOwner :: Maybe Text
$sel:meshOwner:ListRoutes' :: ListRoutes -> Maybe Text
meshOwner} -> Maybe Text
meshOwner) (\s :: ListRoutes
s@ListRoutes' {} Maybe Text
a -> ListRoutes
s {$sel:meshOwner:ListRoutes' :: Maybe Text
meshOwner = Maybe Text
a} :: ListRoutes)
listRoutes_nextToken :: Lens.Lens' ListRoutes (Prelude.Maybe Prelude.Text)
listRoutes_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListRoutes -> f ListRoutes
listRoutes_nextToken = (ListRoutes -> Maybe Text)
-> (ListRoutes -> Maybe Text -> ListRoutes)
-> Lens ListRoutes ListRoutes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutes
s@ListRoutes' {} Maybe Text
a -> ListRoutes
s {$sel:nextToken:ListRoutes' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutes)
listRoutes_limit :: Lens.Lens' ListRoutes (Prelude.Maybe Prelude.Natural)
listRoutes_limit :: (Maybe Natural -> f (Maybe Natural)) -> ListRoutes -> f ListRoutes
listRoutes_limit = (ListRoutes -> Maybe Natural)
-> (ListRoutes -> Maybe Natural -> ListRoutes)
-> Lens ListRoutes ListRoutes (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListRoutes' :: ListRoutes -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListRoutes
s@ListRoutes' {} Maybe Natural
a -> ListRoutes
s {$sel:limit:ListRoutes' :: Maybe Natural
limit = Maybe Natural
a} :: ListRoutes)
listRoutes_meshName :: Lens.Lens' ListRoutes Prelude.Text
listRoutes_meshName :: (Text -> f Text) -> ListRoutes -> f ListRoutes
listRoutes_meshName = (ListRoutes -> Text)
-> (ListRoutes -> Text -> ListRoutes)
-> Lens ListRoutes ListRoutes Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Text
meshName :: Text
$sel:meshName:ListRoutes' :: ListRoutes -> Text
meshName} -> Text
meshName) (\s :: ListRoutes
s@ListRoutes' {} Text
a -> ListRoutes
s {$sel:meshName:ListRoutes' :: Text
meshName = Text
a} :: ListRoutes)
listRoutes_virtualRouterName :: Lens.Lens' ListRoutes Prelude.Text
listRoutes_virtualRouterName :: (Text -> f Text) -> ListRoutes -> f ListRoutes
listRoutes_virtualRouterName = (ListRoutes -> Text)
-> (ListRoutes -> Text -> ListRoutes)
-> Lens ListRoutes ListRoutes Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Text
virtualRouterName :: Text
$sel:virtualRouterName:ListRoutes' :: ListRoutes -> Text
virtualRouterName} -> Text
virtualRouterName) (\s :: ListRoutes
s@ListRoutes' {} Text
a -> ListRoutes
s {$sel:virtualRouterName:ListRoutes' :: Text
virtualRouterName = Text
a} :: ListRoutes)
instance Core.AWSPager ListRoutes where
page :: ListRoutes -> AWSResponse ListRoutes -> Maybe ListRoutes
page ListRoutes
rq AWSResponse ListRoutes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRoutes
ListRoutesResponse
rs
ListRoutesResponse
-> Getting (First Text) ListRoutesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutesResponse -> Const (First Text) ListRoutesResponse
Lens' ListRoutesResponse (Maybe Text)
listRoutesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutesResponse -> Const (First Text) ListRoutesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRoutesResponse 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 ListRoutes
forall a. Maybe a
Prelude.Nothing
| [RouteRef] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop (AWSResponse ListRoutes
ListRoutesResponse
rs ListRoutesResponse
-> Getting [RouteRef] ListRoutesResponse [RouteRef] -> [RouteRef]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [RouteRef] ListRoutesResponse [RouteRef]
Lens' ListRoutesResponse [RouteRef]
listRoutesResponse_routes) =
Maybe ListRoutes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListRoutes -> Maybe ListRoutes
forall a. a -> Maybe a
Prelude.Just (ListRoutes -> Maybe ListRoutes) -> ListRoutes -> Maybe ListRoutes
forall a b. (a -> b) -> a -> b
Prelude.$
ListRoutes
rq
ListRoutes -> (ListRoutes -> ListRoutes) -> ListRoutes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListRoutes -> Identity ListRoutes
Lens ListRoutes ListRoutes (Maybe Text) (Maybe Text)
listRoutes_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListRoutes -> Identity ListRoutes)
-> Maybe Text -> ListRoutes -> ListRoutes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRoutes
ListRoutesResponse
rs
ListRoutesResponse
-> Getting (First Text) ListRoutesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutesResponse -> Const (First Text) ListRoutesResponse
Lens' ListRoutesResponse (Maybe Text)
listRoutesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutesResponse -> Const (First Text) ListRoutesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRoutesResponse 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 ListRoutes where
type AWSResponse ListRoutes = ListRoutesResponse
request :: ListRoutes -> Request ListRoutes
request = Service -> ListRoutes -> Request ListRoutes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListRoutes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRoutes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListRoutes))
-> Logger
-> Service
-> Proxy ListRoutes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRoutes)))
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 -> Int -> [RouteRef] -> ListRoutesResponse
ListRoutesResponse'
(Maybe Text -> Int -> [RouteRef] -> ListRoutesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [RouteRef] -> ListRoutesResponse)
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 (Int -> [RouteRef] -> ListRoutesResponse)
-> Either String Int
-> Either String ([RouteRef] -> ListRoutesResponse)
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))
Either String ([RouteRef] -> ListRoutesResponse)
-> Either String [RouteRef] -> Either String ListRoutesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [RouteRef])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"routes" Either String (Maybe [RouteRef])
-> [RouteRef] -> Either String [RouteRef]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [RouteRef]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListRoutes
instance Prelude.NFData ListRoutes
instance Core.ToHeaders ListRoutes where
toHeaders :: ListRoutes -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListRoutes -> 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 ListRoutes where
toPath :: ListRoutes -> ByteString
toPath ListRoutes' {Maybe Natural
Maybe Text
Text
virtualRouterName :: Text
meshName :: Text
limit :: Maybe Natural
nextToken :: Maybe Text
meshOwner :: Maybe Text
$sel:virtualRouterName:ListRoutes' :: ListRoutes -> Text
$sel:meshName:ListRoutes' :: ListRoutes -> Text
$sel:limit:ListRoutes' :: ListRoutes -> Maybe Natural
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
$sel:meshOwner:ListRoutes' :: ListRoutes -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v20190125/meshes/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
meshName,
ByteString
"/virtualRouter/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
virtualRouterName,
ByteString
"/routes"
]
instance Core.ToQuery ListRoutes where
toQuery :: ListRoutes -> QueryString
toQuery ListRoutes' {Maybe Natural
Maybe Text
Text
virtualRouterName :: Text
meshName :: Text
limit :: Maybe Natural
nextToken :: Maybe Text
meshOwner :: Maybe Text
$sel:virtualRouterName:ListRoutes' :: ListRoutes -> Text
$sel:meshName:ListRoutes' :: ListRoutes -> Text
$sel:limit:ListRoutes' :: ListRoutes -> Maybe Natural
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
$sel:meshOwner:ListRoutes' :: ListRoutes -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"meshOwner" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
meshOwner,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"limit" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
limit
]
data ListRoutesResponse = ListRoutesResponse'
{
ListRoutesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRoutesResponse -> Int
httpStatus :: Prelude.Int,
ListRoutesResponse -> [RouteRef]
routes :: [RouteRef]
}
deriving (ListRoutesResponse -> ListRoutesResponse -> Bool
(ListRoutesResponse -> ListRoutesResponse -> Bool)
-> (ListRoutesResponse -> ListRoutesResponse -> Bool)
-> Eq ListRoutesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutesResponse -> ListRoutesResponse -> Bool
$c/= :: ListRoutesResponse -> ListRoutesResponse -> Bool
== :: ListRoutesResponse -> ListRoutesResponse -> Bool
$c== :: ListRoutesResponse -> ListRoutesResponse -> Bool
Prelude.Eq, ReadPrec [ListRoutesResponse]
ReadPrec ListRoutesResponse
Int -> ReadS ListRoutesResponse
ReadS [ListRoutesResponse]
(Int -> ReadS ListRoutesResponse)
-> ReadS [ListRoutesResponse]
-> ReadPrec ListRoutesResponse
-> ReadPrec [ListRoutesResponse]
-> Read ListRoutesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutesResponse]
$creadListPrec :: ReadPrec [ListRoutesResponse]
readPrec :: ReadPrec ListRoutesResponse
$creadPrec :: ReadPrec ListRoutesResponse
readList :: ReadS [ListRoutesResponse]
$creadList :: ReadS [ListRoutesResponse]
readsPrec :: Int -> ReadS ListRoutesResponse
$creadsPrec :: Int -> ReadS ListRoutesResponse
Prelude.Read, Int -> ListRoutesResponse -> ShowS
[ListRoutesResponse] -> ShowS
ListRoutesResponse -> String
(Int -> ListRoutesResponse -> ShowS)
-> (ListRoutesResponse -> String)
-> ([ListRoutesResponse] -> ShowS)
-> Show ListRoutesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutesResponse] -> ShowS
$cshowList :: [ListRoutesResponse] -> ShowS
show :: ListRoutesResponse -> String
$cshow :: ListRoutesResponse -> String
showsPrec :: Int -> ListRoutesResponse -> ShowS
$cshowsPrec :: Int -> ListRoutesResponse -> ShowS
Prelude.Show, (forall x. ListRoutesResponse -> Rep ListRoutesResponse x)
-> (forall x. Rep ListRoutesResponse x -> ListRoutesResponse)
-> Generic ListRoutesResponse
forall x. Rep ListRoutesResponse x -> ListRoutesResponse
forall x. ListRoutesResponse -> Rep ListRoutesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRoutesResponse x -> ListRoutesResponse
$cfrom :: forall x. ListRoutesResponse -> Rep ListRoutesResponse x
Prelude.Generic)
newListRoutesResponse ::
Prelude.Int ->
ListRoutesResponse
newListRoutesResponse :: Int -> ListRoutesResponse
newListRoutesResponse Int
pHttpStatus_ =
ListRoutesResponse' :: Maybe Text -> Int -> [RouteRef] -> ListRoutesResponse
ListRoutesResponse'
{ $sel:nextToken:ListRoutesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListRoutesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:routes:ListRoutesResponse' :: [RouteRef]
routes = [RouteRef]
forall a. Monoid a => a
Prelude.mempty
}
listRoutesResponse_nextToken :: Lens.Lens' ListRoutesResponse (Prelude.Maybe Prelude.Text)
listRoutesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRoutesResponse -> f ListRoutesResponse
listRoutesResponse_nextToken = (ListRoutesResponse -> Maybe Text)
-> (ListRoutesResponse -> Maybe Text -> ListRoutesResponse)
-> Lens' ListRoutesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutesResponse' :: ListRoutesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutesResponse
s@ListRoutesResponse' {} Maybe Text
a -> ListRoutesResponse
s {$sel:nextToken:ListRoutesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutesResponse)
listRoutesResponse_httpStatus :: Lens.Lens' ListRoutesResponse Prelude.Int
listRoutesResponse_httpStatus :: (Int -> f Int) -> ListRoutesResponse -> f ListRoutesResponse
listRoutesResponse_httpStatus = (ListRoutesResponse -> Int)
-> (ListRoutesResponse -> Int -> ListRoutesResponse)
-> Lens ListRoutesResponse ListRoutesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRoutesResponse' :: ListRoutesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRoutesResponse
s@ListRoutesResponse' {} Int
a -> ListRoutesResponse
s {$sel:httpStatus:ListRoutesResponse' :: Int
httpStatus = Int
a} :: ListRoutesResponse)
listRoutesResponse_routes :: Lens.Lens' ListRoutesResponse [RouteRef]
listRoutesResponse_routes :: ([RouteRef] -> f [RouteRef])
-> ListRoutesResponse -> f ListRoutesResponse
listRoutesResponse_routes = (ListRoutesResponse -> [RouteRef])
-> (ListRoutesResponse -> [RouteRef] -> ListRoutesResponse)
-> Lens' ListRoutesResponse [RouteRef]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutesResponse' {[RouteRef]
routes :: [RouteRef]
$sel:routes:ListRoutesResponse' :: ListRoutesResponse -> [RouteRef]
routes} -> [RouteRef]
routes) (\s :: ListRoutesResponse
s@ListRoutesResponse' {} [RouteRef]
a -> ListRoutesResponse
s {$sel:routes:ListRoutesResponse' :: [RouteRef]
routes = [RouteRef]
a} :: ListRoutesResponse) (([RouteRef] -> f [RouteRef])
-> ListRoutesResponse -> f ListRoutesResponse)
-> (([RouteRef] -> f [RouteRef]) -> [RouteRef] -> f [RouteRef])
-> ([RouteRef] -> f [RouteRef])
-> ListRoutesResponse
-> f ListRoutesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RouteRef] -> f [RouteRef]) -> [RouteRef] -> f [RouteRef]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListRoutesResponse