{-# 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.GetRouteResponses
(
GetRouteResponses (..),
newGetRouteResponses,
getRouteResponses_nextToken,
getRouteResponses_maxResults,
getRouteResponses_routeId,
getRouteResponses_apiId,
GetRouteResponsesResponse (..),
newGetRouteResponsesResponse,
getRouteResponsesResponse_items,
getRouteResponsesResponse_nextToken,
getRouteResponsesResponse_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 GetRouteResponses = GetRouteResponses'
{
GetRouteResponses -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetRouteResponses -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
GetRouteResponses -> Text
routeId :: Prelude.Text,
GetRouteResponses -> Text
apiId :: Prelude.Text
}
deriving (GetRouteResponses -> GetRouteResponses -> Bool
(GetRouteResponses -> GetRouteResponses -> Bool)
-> (GetRouteResponses -> GetRouteResponses -> Bool)
-> Eq GetRouteResponses
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRouteResponses -> GetRouteResponses -> Bool
$c/= :: GetRouteResponses -> GetRouteResponses -> Bool
== :: GetRouteResponses -> GetRouteResponses -> Bool
$c== :: GetRouteResponses -> GetRouteResponses -> Bool
Prelude.Eq, ReadPrec [GetRouteResponses]
ReadPrec GetRouteResponses
Int -> ReadS GetRouteResponses
ReadS [GetRouteResponses]
(Int -> ReadS GetRouteResponses)
-> ReadS [GetRouteResponses]
-> ReadPrec GetRouteResponses
-> ReadPrec [GetRouteResponses]
-> Read GetRouteResponses
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRouteResponses]
$creadListPrec :: ReadPrec [GetRouteResponses]
readPrec :: ReadPrec GetRouteResponses
$creadPrec :: ReadPrec GetRouteResponses
readList :: ReadS [GetRouteResponses]
$creadList :: ReadS [GetRouteResponses]
readsPrec :: Int -> ReadS GetRouteResponses
$creadsPrec :: Int -> ReadS GetRouteResponses
Prelude.Read, Int -> GetRouteResponses -> ShowS
[GetRouteResponses] -> ShowS
GetRouteResponses -> String
(Int -> GetRouteResponses -> ShowS)
-> (GetRouteResponses -> String)
-> ([GetRouteResponses] -> ShowS)
-> Show GetRouteResponses
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRouteResponses] -> ShowS
$cshowList :: [GetRouteResponses] -> ShowS
show :: GetRouteResponses -> String
$cshow :: GetRouteResponses -> String
showsPrec :: Int -> GetRouteResponses -> ShowS
$cshowsPrec :: Int -> GetRouteResponses -> ShowS
Prelude.Show, (forall x. GetRouteResponses -> Rep GetRouteResponses x)
-> (forall x. Rep GetRouteResponses x -> GetRouteResponses)
-> Generic GetRouteResponses
forall x. Rep GetRouteResponses x -> GetRouteResponses
forall x. GetRouteResponses -> Rep GetRouteResponses x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetRouteResponses x -> GetRouteResponses
$cfrom :: forall x. GetRouteResponses -> Rep GetRouteResponses x
Prelude.Generic)
newGetRouteResponses ::
Prelude.Text ->
Prelude.Text ->
GetRouteResponses
newGetRouteResponses :: Text -> Text -> GetRouteResponses
newGetRouteResponses Text
pRouteId_ Text
pApiId_ =
GetRouteResponses' :: Maybe Text -> Maybe Text -> Text -> Text -> GetRouteResponses
GetRouteResponses'
{ $sel:nextToken:GetRouteResponses' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetRouteResponses' :: Maybe Text
maxResults = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:routeId:GetRouteResponses' :: Text
routeId = Text
pRouteId_,
$sel:apiId:GetRouteResponses' :: Text
apiId = Text
pApiId_
}
getRouteResponses_nextToken :: Lens.Lens' GetRouteResponses (Prelude.Maybe Prelude.Text)
getRouteResponses_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetRouteResponses -> f GetRouteResponses
getRouteResponses_nextToken = (GetRouteResponses -> Maybe Text)
-> (GetRouteResponses -> Maybe Text -> GetRouteResponses)
-> Lens
GetRouteResponses GetRouteResponses (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRouteResponses' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetRouteResponses' :: GetRouteResponses -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetRouteResponses
s@GetRouteResponses' {} Maybe Text
a -> GetRouteResponses
s {$sel:nextToken:GetRouteResponses' :: Maybe Text
nextToken = Maybe Text
a} :: GetRouteResponses)
getRouteResponses_maxResults :: Lens.Lens' GetRouteResponses (Prelude.Maybe Prelude.Text)
getRouteResponses_maxResults :: (Maybe Text -> f (Maybe Text))
-> GetRouteResponses -> f GetRouteResponses
getRouteResponses_maxResults = (GetRouteResponses -> Maybe Text)
-> (GetRouteResponses -> Maybe Text -> GetRouteResponses)
-> Lens
GetRouteResponses GetRouteResponses (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRouteResponses' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:GetRouteResponses' :: GetRouteResponses -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: GetRouteResponses
s@GetRouteResponses' {} Maybe Text
a -> GetRouteResponses
s {$sel:maxResults:GetRouteResponses' :: Maybe Text
maxResults = Maybe Text
a} :: GetRouteResponses)
getRouteResponses_routeId :: Lens.Lens' GetRouteResponses Prelude.Text
getRouteResponses_routeId :: (Text -> f Text) -> GetRouteResponses -> f GetRouteResponses
getRouteResponses_routeId = (GetRouteResponses -> Text)
-> (GetRouteResponses -> Text -> GetRouteResponses)
-> Lens GetRouteResponses GetRouteResponses Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRouteResponses' {Text
routeId :: Text
$sel:routeId:GetRouteResponses' :: GetRouteResponses -> Text
routeId} -> Text
routeId) (\s :: GetRouteResponses
s@GetRouteResponses' {} Text
a -> GetRouteResponses
s {$sel:routeId:GetRouteResponses' :: Text
routeId = Text
a} :: GetRouteResponses)
getRouteResponses_apiId :: Lens.Lens' GetRouteResponses Prelude.Text
getRouteResponses_apiId :: (Text -> f Text) -> GetRouteResponses -> f GetRouteResponses
getRouteResponses_apiId = (GetRouteResponses -> Text)
-> (GetRouteResponses -> Text -> GetRouteResponses)
-> Lens GetRouteResponses GetRouteResponses Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRouteResponses' {Text
apiId :: Text
$sel:apiId:GetRouteResponses' :: GetRouteResponses -> Text
apiId} -> Text
apiId) (\s :: GetRouteResponses
s@GetRouteResponses' {} Text
a -> GetRouteResponses
s {$sel:apiId:GetRouteResponses' :: Text
apiId = Text
a} :: GetRouteResponses)
instance Core.AWSPager GetRouteResponses where
page :: GetRouteResponses
-> AWSResponse GetRouteResponses -> Maybe GetRouteResponses
page GetRouteResponses
rq AWSResponse GetRouteResponses
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRouteResponses
GetRouteResponsesResponse
rs
GetRouteResponsesResponse
-> Getting (First Text) GetRouteResponsesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRouteResponsesResponse
-> Const (First Text) GetRouteResponsesResponse
Lens' GetRouteResponsesResponse (Maybe Text)
getRouteResponsesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRouteResponsesResponse
-> Const (First Text) GetRouteResponsesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetRouteResponsesResponse 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 GetRouteResponses
forall a. Maybe a
Prelude.Nothing
| Maybe [RouteResponse] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRouteResponses
GetRouteResponsesResponse
rs
GetRouteResponsesResponse
-> Getting
(First [RouteResponse]) GetRouteResponsesResponse [RouteResponse]
-> Maybe [RouteResponse]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [RouteResponse]
-> Const (First [RouteResponse]) (Maybe [RouteResponse]))
-> GetRouteResponsesResponse
-> Const (First [RouteResponse]) GetRouteResponsesResponse
Lens' GetRouteResponsesResponse (Maybe [RouteResponse])
getRouteResponsesResponse_items ((Maybe [RouteResponse]
-> Const (First [RouteResponse]) (Maybe [RouteResponse]))
-> GetRouteResponsesResponse
-> Const (First [RouteResponse]) GetRouteResponsesResponse)
-> (([RouteResponse]
-> Const (First [RouteResponse]) [RouteResponse])
-> Maybe [RouteResponse]
-> Const (First [RouteResponse]) (Maybe [RouteResponse]))
-> Getting
(First [RouteResponse]) GetRouteResponsesResponse [RouteResponse]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RouteResponse] -> Const (First [RouteResponse]) [RouteResponse])
-> Maybe [RouteResponse]
-> Const (First [RouteResponse]) (Maybe [RouteResponse])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetRouteResponses
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetRouteResponses -> Maybe GetRouteResponses
forall a. a -> Maybe a
Prelude.Just (GetRouteResponses -> Maybe GetRouteResponses)
-> GetRouteResponses -> Maybe GetRouteResponses
forall a b. (a -> b) -> a -> b
Prelude.$
GetRouteResponses
rq
GetRouteResponses
-> (GetRouteResponses -> GetRouteResponses) -> GetRouteResponses
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetRouteResponses -> Identity GetRouteResponses
Lens GetRouteResponses GetRouteResponses (Maybe Text) (Maybe Text)
getRouteResponses_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetRouteResponses -> Identity GetRouteResponses)
-> Maybe Text -> GetRouteResponses -> GetRouteResponses
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetRouteResponses
GetRouteResponsesResponse
rs
GetRouteResponsesResponse
-> Getting (First Text) GetRouteResponsesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRouteResponsesResponse
-> Const (First Text) GetRouteResponsesResponse
Lens' GetRouteResponsesResponse (Maybe Text)
getRouteResponsesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRouteResponsesResponse
-> Const (First Text) GetRouteResponsesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetRouteResponsesResponse 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 GetRouteResponses where
type
AWSResponse GetRouteResponses =
GetRouteResponsesResponse
request :: GetRouteResponses -> Request GetRouteResponses
request = Service -> GetRouteResponses -> Request GetRouteResponses
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetRouteResponses
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetRouteResponses)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetRouteResponses))
-> Logger
-> Service
-> Proxy GetRouteResponses
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetRouteResponses)))
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 [RouteResponse]
-> Maybe Text -> Int -> GetRouteResponsesResponse
GetRouteResponsesResponse'
(Maybe [RouteResponse]
-> Maybe Text -> Int -> GetRouteResponsesResponse)
-> Either String (Maybe [RouteResponse])
-> Either String (Maybe Text -> Int -> GetRouteResponsesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [RouteResponse]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"items" Either String (Maybe (Maybe [RouteResponse]))
-> Maybe [RouteResponse] -> Either String (Maybe [RouteResponse])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RouteResponse]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> GetRouteResponsesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetRouteResponsesResponse)
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 -> GetRouteResponsesResponse)
-> Either String Int -> Either String GetRouteResponsesResponse
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 GetRouteResponses
instance Prelude.NFData GetRouteResponses
instance Core.ToHeaders GetRouteResponses where
toHeaders :: GetRouteResponses -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetRouteResponses -> 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 GetRouteResponses where
toPath :: GetRouteResponses -> ByteString
toPath GetRouteResponses' {Maybe Text
Text
apiId :: Text
routeId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:apiId:GetRouteResponses' :: GetRouteResponses -> Text
$sel:routeId:GetRouteResponses' :: GetRouteResponses -> Text
$sel:maxResults:GetRouteResponses' :: GetRouteResponses -> Maybe Text
$sel:nextToken:GetRouteResponses' :: GetRouteResponses -> 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/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
routeId,
ByteString
"/routeresponses"
]
instance Core.ToQuery GetRouteResponses where
toQuery :: GetRouteResponses -> QueryString
toQuery GetRouteResponses' {Maybe Text
Text
apiId :: Text
routeId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:apiId:GetRouteResponses' :: GetRouteResponses -> Text
$sel:routeId:GetRouteResponses' :: GetRouteResponses -> Text
$sel:maxResults:GetRouteResponses' :: GetRouteResponses -> Maybe Text
$sel:nextToken:GetRouteResponses' :: GetRouteResponses -> 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 GetRouteResponsesResponse = GetRouteResponsesResponse'
{
GetRouteResponsesResponse -> Maybe [RouteResponse]
items :: Prelude.Maybe [RouteResponse],
GetRouteResponsesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetRouteResponsesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetRouteResponsesResponse -> GetRouteResponsesResponse -> Bool
(GetRouteResponsesResponse -> GetRouteResponsesResponse -> Bool)
-> (GetRouteResponsesResponse -> GetRouteResponsesResponse -> Bool)
-> Eq GetRouteResponsesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRouteResponsesResponse -> GetRouteResponsesResponse -> Bool
$c/= :: GetRouteResponsesResponse -> GetRouteResponsesResponse -> Bool
== :: GetRouteResponsesResponse -> GetRouteResponsesResponse -> Bool
$c== :: GetRouteResponsesResponse -> GetRouteResponsesResponse -> Bool
Prelude.Eq, ReadPrec [GetRouteResponsesResponse]
ReadPrec GetRouteResponsesResponse
Int -> ReadS GetRouteResponsesResponse
ReadS [GetRouteResponsesResponse]
(Int -> ReadS GetRouteResponsesResponse)
-> ReadS [GetRouteResponsesResponse]
-> ReadPrec GetRouteResponsesResponse
-> ReadPrec [GetRouteResponsesResponse]
-> Read GetRouteResponsesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRouteResponsesResponse]
$creadListPrec :: ReadPrec [GetRouteResponsesResponse]
readPrec :: ReadPrec GetRouteResponsesResponse
$creadPrec :: ReadPrec GetRouteResponsesResponse
readList :: ReadS [GetRouteResponsesResponse]
$creadList :: ReadS [GetRouteResponsesResponse]
readsPrec :: Int -> ReadS GetRouteResponsesResponse
$creadsPrec :: Int -> ReadS GetRouteResponsesResponse
Prelude.Read, Int -> GetRouteResponsesResponse -> ShowS
[GetRouteResponsesResponse] -> ShowS
GetRouteResponsesResponse -> String
(Int -> GetRouteResponsesResponse -> ShowS)
-> (GetRouteResponsesResponse -> String)
-> ([GetRouteResponsesResponse] -> ShowS)
-> Show GetRouteResponsesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRouteResponsesResponse] -> ShowS
$cshowList :: [GetRouteResponsesResponse] -> ShowS
show :: GetRouteResponsesResponse -> String
$cshow :: GetRouteResponsesResponse -> String
showsPrec :: Int -> GetRouteResponsesResponse -> ShowS
$cshowsPrec :: Int -> GetRouteResponsesResponse -> ShowS
Prelude.Show, (forall x.
GetRouteResponsesResponse -> Rep GetRouteResponsesResponse x)
-> (forall x.
Rep GetRouteResponsesResponse x -> GetRouteResponsesResponse)
-> Generic GetRouteResponsesResponse
forall x.
Rep GetRouteResponsesResponse x -> GetRouteResponsesResponse
forall x.
GetRouteResponsesResponse -> Rep GetRouteResponsesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRouteResponsesResponse x -> GetRouteResponsesResponse
$cfrom :: forall x.
GetRouteResponsesResponse -> Rep GetRouteResponsesResponse x
Prelude.Generic)
newGetRouteResponsesResponse ::
Prelude.Int ->
GetRouteResponsesResponse
newGetRouteResponsesResponse :: Int -> GetRouteResponsesResponse
newGetRouteResponsesResponse Int
pHttpStatus_ =
GetRouteResponsesResponse' :: Maybe [RouteResponse]
-> Maybe Text -> Int -> GetRouteResponsesResponse
GetRouteResponsesResponse'
{ $sel:items:GetRouteResponsesResponse' :: Maybe [RouteResponse]
items = Maybe [RouteResponse]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetRouteResponsesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetRouteResponsesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getRouteResponsesResponse_items :: Lens.Lens' GetRouteResponsesResponse (Prelude.Maybe [RouteResponse])
getRouteResponsesResponse_items :: (Maybe [RouteResponse] -> f (Maybe [RouteResponse]))
-> GetRouteResponsesResponse -> f GetRouteResponsesResponse
getRouteResponsesResponse_items = (GetRouteResponsesResponse -> Maybe [RouteResponse])
-> (GetRouteResponsesResponse
-> Maybe [RouteResponse] -> GetRouteResponsesResponse)
-> Lens' GetRouteResponsesResponse (Maybe [RouteResponse])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRouteResponsesResponse' {Maybe [RouteResponse]
items :: Maybe [RouteResponse]
$sel:items:GetRouteResponsesResponse' :: GetRouteResponsesResponse -> Maybe [RouteResponse]
items} -> Maybe [RouteResponse]
items) (\s :: GetRouteResponsesResponse
s@GetRouteResponsesResponse' {} Maybe [RouteResponse]
a -> GetRouteResponsesResponse
s {$sel:items:GetRouteResponsesResponse' :: Maybe [RouteResponse]
items = Maybe [RouteResponse]
a} :: GetRouteResponsesResponse) ((Maybe [RouteResponse] -> f (Maybe [RouteResponse]))
-> GetRouteResponsesResponse -> f GetRouteResponsesResponse)
-> ((Maybe [RouteResponse] -> f (Maybe [RouteResponse]))
-> Maybe [RouteResponse] -> f (Maybe [RouteResponse]))
-> (Maybe [RouteResponse] -> f (Maybe [RouteResponse]))
-> GetRouteResponsesResponse
-> f GetRouteResponsesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RouteResponse] [RouteResponse] [RouteResponse] [RouteResponse]
-> Iso
(Maybe [RouteResponse])
(Maybe [RouteResponse])
(Maybe [RouteResponse])
(Maybe [RouteResponse])
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
[RouteResponse] [RouteResponse] [RouteResponse] [RouteResponse]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getRouteResponsesResponse_nextToken :: Lens.Lens' GetRouteResponsesResponse (Prelude.Maybe Prelude.Text)
getRouteResponsesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetRouteResponsesResponse -> f GetRouteResponsesResponse
getRouteResponsesResponse_nextToken = (GetRouteResponsesResponse -> Maybe Text)
-> (GetRouteResponsesResponse
-> Maybe Text -> GetRouteResponsesResponse)
-> Lens' GetRouteResponsesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRouteResponsesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetRouteResponsesResponse' :: GetRouteResponsesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetRouteResponsesResponse
s@GetRouteResponsesResponse' {} Maybe Text
a -> GetRouteResponsesResponse
s {$sel:nextToken:GetRouteResponsesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetRouteResponsesResponse)
getRouteResponsesResponse_httpStatus :: Lens.Lens' GetRouteResponsesResponse Prelude.Int
getRouteResponsesResponse_httpStatus :: (Int -> f Int)
-> GetRouteResponsesResponse -> f GetRouteResponsesResponse
getRouteResponsesResponse_httpStatus = (GetRouteResponsesResponse -> Int)
-> (GetRouteResponsesResponse -> Int -> GetRouteResponsesResponse)
-> Lens GetRouteResponsesResponse GetRouteResponsesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRouteResponsesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRouteResponsesResponse' :: GetRouteResponsesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRouteResponsesResponse
s@GetRouteResponsesResponse' {} Int
a -> GetRouteResponsesResponse
s {$sel:httpStatus:GetRouteResponsesResponse' :: Int
httpStatus = Int
a} :: GetRouteResponsesResponse)
instance Prelude.NFData GetRouteResponsesResponse