{-# 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.CreateRoute
(
CreateRoute (..),
newCreateRoute,
createRoute_clientToken,
createRoute_meshOwner,
createRoute_tags,
createRoute_meshName,
createRoute_routeName,
createRoute_spec,
createRoute_virtualRouterName,
CreateRouteResponse (..),
newCreateRouteResponse,
createRouteResponse_httpStatus,
createRouteResponse_route,
)
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 CreateRoute = CreateRoute'
{
CreateRoute -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateRoute -> Maybe Text
meshOwner :: Prelude.Maybe Prelude.Text,
CreateRoute -> Maybe [TagRef]
tags :: Prelude.Maybe [TagRef],
CreateRoute -> Text
meshName :: Prelude.Text,
CreateRoute -> Text
routeName :: Prelude.Text,
CreateRoute -> RouteSpec
spec :: RouteSpec,
CreateRoute -> Text
virtualRouterName :: Prelude.Text
}
deriving (CreateRoute -> CreateRoute -> Bool
(CreateRoute -> CreateRoute -> Bool)
-> (CreateRoute -> CreateRoute -> Bool) -> Eq CreateRoute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRoute -> CreateRoute -> Bool
$c/= :: CreateRoute -> CreateRoute -> Bool
== :: CreateRoute -> CreateRoute -> Bool
$c== :: CreateRoute -> CreateRoute -> Bool
Prelude.Eq, ReadPrec [CreateRoute]
ReadPrec CreateRoute
Int -> ReadS CreateRoute
ReadS [CreateRoute]
(Int -> ReadS CreateRoute)
-> ReadS [CreateRoute]
-> ReadPrec CreateRoute
-> ReadPrec [CreateRoute]
-> Read CreateRoute
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRoute]
$creadListPrec :: ReadPrec [CreateRoute]
readPrec :: ReadPrec CreateRoute
$creadPrec :: ReadPrec CreateRoute
readList :: ReadS [CreateRoute]
$creadList :: ReadS [CreateRoute]
readsPrec :: Int -> ReadS CreateRoute
$creadsPrec :: Int -> ReadS CreateRoute
Prelude.Read, Int -> CreateRoute -> ShowS
[CreateRoute] -> ShowS
CreateRoute -> String
(Int -> CreateRoute -> ShowS)
-> (CreateRoute -> String)
-> ([CreateRoute] -> ShowS)
-> Show CreateRoute
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRoute] -> ShowS
$cshowList :: [CreateRoute] -> ShowS
show :: CreateRoute -> String
$cshow :: CreateRoute -> String
showsPrec :: Int -> CreateRoute -> ShowS
$cshowsPrec :: Int -> CreateRoute -> ShowS
Prelude.Show, (forall x. CreateRoute -> Rep CreateRoute x)
-> (forall x. Rep CreateRoute x -> CreateRoute)
-> Generic CreateRoute
forall x. Rep CreateRoute x -> CreateRoute
forall x. CreateRoute -> Rep CreateRoute x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateRoute x -> CreateRoute
$cfrom :: forall x. CreateRoute -> Rep CreateRoute x
Prelude.Generic)
newCreateRoute ::
Prelude.Text ->
Prelude.Text ->
RouteSpec ->
Prelude.Text ->
CreateRoute
newCreateRoute :: Text -> Text -> RouteSpec -> Text -> CreateRoute
newCreateRoute
Text
pMeshName_
Text
pRouteName_
RouteSpec
pSpec_
Text
pVirtualRouterName_ =
CreateRoute' :: Maybe Text
-> Maybe Text
-> Maybe [TagRef]
-> Text
-> Text
-> RouteSpec
-> Text
-> CreateRoute
CreateRoute'
{ $sel:clientToken:CreateRoute' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:meshOwner:CreateRoute' :: Maybe Text
meshOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateRoute' :: Maybe [TagRef]
tags = Maybe [TagRef]
forall a. Maybe a
Prelude.Nothing,
$sel:meshName:CreateRoute' :: Text
meshName = Text
pMeshName_,
$sel:routeName:CreateRoute' :: Text
routeName = Text
pRouteName_,
$sel:spec:CreateRoute' :: RouteSpec
spec = RouteSpec
pSpec_,
$sel:virtualRouterName:CreateRoute' :: Text
virtualRouterName = Text
pVirtualRouterName_
}
createRoute_clientToken :: Lens.Lens' CreateRoute (Prelude.Maybe Prelude.Text)
createRoute_clientToken :: (Maybe Text -> f (Maybe Text)) -> CreateRoute -> f CreateRoute
createRoute_clientToken = (CreateRoute -> Maybe Text)
-> (CreateRoute -> Maybe Text -> CreateRoute)
-> Lens CreateRoute CreateRoute (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRoute' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateRoute' :: CreateRoute -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateRoute
s@CreateRoute' {} Maybe Text
a -> CreateRoute
s {$sel:clientToken:CreateRoute' :: Maybe Text
clientToken = Maybe Text
a} :: CreateRoute)
createRoute_meshOwner :: Lens.Lens' CreateRoute (Prelude.Maybe Prelude.Text)
createRoute_meshOwner :: (Maybe Text -> f (Maybe Text)) -> CreateRoute -> f CreateRoute
createRoute_meshOwner = (CreateRoute -> Maybe Text)
-> (CreateRoute -> Maybe Text -> CreateRoute)
-> Lens CreateRoute CreateRoute (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRoute' {Maybe Text
meshOwner :: Maybe Text
$sel:meshOwner:CreateRoute' :: CreateRoute -> Maybe Text
meshOwner} -> Maybe Text
meshOwner) (\s :: CreateRoute
s@CreateRoute' {} Maybe Text
a -> CreateRoute
s {$sel:meshOwner:CreateRoute' :: Maybe Text
meshOwner = Maybe Text
a} :: CreateRoute)
createRoute_tags :: Lens.Lens' CreateRoute (Prelude.Maybe [TagRef])
createRoute_tags :: (Maybe [TagRef] -> f (Maybe [TagRef]))
-> CreateRoute -> f CreateRoute
createRoute_tags = (CreateRoute -> Maybe [TagRef])
-> (CreateRoute -> Maybe [TagRef] -> CreateRoute)
-> Lens CreateRoute CreateRoute (Maybe [TagRef]) (Maybe [TagRef])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRoute' {Maybe [TagRef]
tags :: Maybe [TagRef]
$sel:tags:CreateRoute' :: CreateRoute -> Maybe [TagRef]
tags} -> Maybe [TagRef]
tags) (\s :: CreateRoute
s@CreateRoute' {} Maybe [TagRef]
a -> CreateRoute
s {$sel:tags:CreateRoute' :: Maybe [TagRef]
tags = Maybe [TagRef]
a} :: CreateRoute) ((Maybe [TagRef] -> f (Maybe [TagRef]))
-> CreateRoute -> f CreateRoute)
-> ((Maybe [TagRef] -> f (Maybe [TagRef]))
-> Maybe [TagRef] -> f (Maybe [TagRef]))
-> (Maybe [TagRef] -> f (Maybe [TagRef]))
-> CreateRoute
-> f CreateRoute
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [TagRef] [TagRef] [TagRef] [TagRef]
-> Iso
(Maybe [TagRef]) (Maybe [TagRef]) (Maybe [TagRef]) (Maybe [TagRef])
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 [TagRef] [TagRef] [TagRef] [TagRef]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createRoute_meshName :: Lens.Lens' CreateRoute Prelude.Text
createRoute_meshName :: (Text -> f Text) -> CreateRoute -> f CreateRoute
createRoute_meshName = (CreateRoute -> Text)
-> (CreateRoute -> Text -> CreateRoute)
-> Lens CreateRoute CreateRoute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRoute' {Text
meshName :: Text
$sel:meshName:CreateRoute' :: CreateRoute -> Text
meshName} -> Text
meshName) (\s :: CreateRoute
s@CreateRoute' {} Text
a -> CreateRoute
s {$sel:meshName:CreateRoute' :: Text
meshName = Text
a} :: CreateRoute)
createRoute_routeName :: Lens.Lens' CreateRoute Prelude.Text
createRoute_routeName :: (Text -> f Text) -> CreateRoute -> f CreateRoute
createRoute_routeName = (CreateRoute -> Text)
-> (CreateRoute -> Text -> CreateRoute)
-> Lens CreateRoute CreateRoute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRoute' {Text
routeName :: Text
$sel:routeName:CreateRoute' :: CreateRoute -> Text
routeName} -> Text
routeName) (\s :: CreateRoute
s@CreateRoute' {} Text
a -> CreateRoute
s {$sel:routeName:CreateRoute' :: Text
routeName = Text
a} :: CreateRoute)
createRoute_spec :: Lens.Lens' CreateRoute RouteSpec
createRoute_spec :: (RouteSpec -> f RouteSpec) -> CreateRoute -> f CreateRoute
createRoute_spec = (CreateRoute -> RouteSpec)
-> (CreateRoute -> RouteSpec -> CreateRoute)
-> Lens CreateRoute CreateRoute RouteSpec RouteSpec
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRoute' {RouteSpec
spec :: RouteSpec
$sel:spec:CreateRoute' :: CreateRoute -> RouteSpec
spec} -> RouteSpec
spec) (\s :: CreateRoute
s@CreateRoute' {} RouteSpec
a -> CreateRoute
s {$sel:spec:CreateRoute' :: RouteSpec
spec = RouteSpec
a} :: CreateRoute)
createRoute_virtualRouterName :: Lens.Lens' CreateRoute Prelude.Text
createRoute_virtualRouterName :: (Text -> f Text) -> CreateRoute -> f CreateRoute
createRoute_virtualRouterName = (CreateRoute -> Text)
-> (CreateRoute -> Text -> CreateRoute)
-> Lens CreateRoute CreateRoute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRoute' {Text
virtualRouterName :: Text
$sel:virtualRouterName:CreateRoute' :: CreateRoute -> Text
virtualRouterName} -> Text
virtualRouterName) (\s :: CreateRoute
s@CreateRoute' {} Text
a -> CreateRoute
s {$sel:virtualRouterName:CreateRoute' :: Text
virtualRouterName = Text
a} :: CreateRoute)
instance Core.AWSRequest CreateRoute where
type AWSResponse CreateRoute = CreateRouteResponse
request :: CreateRoute -> Request CreateRoute
request = Service -> CreateRoute -> Request CreateRoute
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateRoute
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateRoute)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateRoute))
-> Logger
-> Service
-> Proxy CreateRoute
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateRoute)))
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 ->
Int -> RouteData -> CreateRouteResponse
CreateRouteResponse'
(Int -> RouteData -> CreateRouteResponse)
-> Either String Int
-> Either String (RouteData -> CreateRouteResponse)
forall (f :: * -> *) a b. Functor 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 (RouteData -> CreateRouteResponse)
-> Either String RouteData -> Either String CreateRouteResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object -> Either String RouteData
forall a. FromJSON a => Object -> Either String a
Core.eitherParseJSON Object
x)
)
instance Prelude.Hashable CreateRoute
instance Prelude.NFData CreateRoute
instance Core.ToHeaders CreateRoute where
toHeaders :: CreateRoute -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateRoute -> 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.ToJSON CreateRoute where
toJSON :: CreateRoute -> Value
toJSON CreateRoute' {Maybe [TagRef]
Maybe Text
Text
RouteSpec
virtualRouterName :: Text
spec :: RouteSpec
routeName :: Text
meshName :: Text
tags :: Maybe [TagRef]
meshOwner :: Maybe Text
clientToken :: Maybe Text
$sel:virtualRouterName:CreateRoute' :: CreateRoute -> Text
$sel:spec:CreateRoute' :: CreateRoute -> RouteSpec
$sel:routeName:CreateRoute' :: CreateRoute -> Text
$sel:meshName:CreateRoute' :: CreateRoute -> Text
$sel:tags:CreateRoute' :: CreateRoute -> Maybe [TagRef]
$sel:meshOwner:CreateRoute' :: CreateRoute -> Maybe Text
$sel:clientToken:CreateRoute' :: CreateRoute -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"clientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientToken,
(Text
"tags" Text -> [TagRef] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([TagRef] -> Pair) -> Maybe [TagRef] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TagRef]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"routeName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
routeName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"spec" Text -> RouteSpec -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= RouteSpec
spec)
]
)
instance Core.ToPath CreateRoute where
toPath :: CreateRoute -> ByteString
toPath CreateRoute' {Maybe [TagRef]
Maybe Text
Text
RouteSpec
virtualRouterName :: Text
spec :: RouteSpec
routeName :: Text
meshName :: Text
tags :: Maybe [TagRef]
meshOwner :: Maybe Text
clientToken :: Maybe Text
$sel:virtualRouterName:CreateRoute' :: CreateRoute -> Text
$sel:spec:CreateRoute' :: CreateRoute -> RouteSpec
$sel:routeName:CreateRoute' :: CreateRoute -> Text
$sel:meshName:CreateRoute' :: CreateRoute -> Text
$sel:tags:CreateRoute' :: CreateRoute -> Maybe [TagRef]
$sel:meshOwner:CreateRoute' :: CreateRoute -> Maybe Text
$sel:clientToken:CreateRoute' :: CreateRoute -> 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 CreateRoute where
toQuery :: CreateRoute -> QueryString
toQuery CreateRoute' {Maybe [TagRef]
Maybe Text
Text
RouteSpec
virtualRouterName :: Text
spec :: RouteSpec
routeName :: Text
meshName :: Text
tags :: Maybe [TagRef]
meshOwner :: Maybe Text
clientToken :: Maybe Text
$sel:virtualRouterName:CreateRoute' :: CreateRoute -> Text
$sel:spec:CreateRoute' :: CreateRoute -> RouteSpec
$sel:routeName:CreateRoute' :: CreateRoute -> Text
$sel:meshName:CreateRoute' :: CreateRoute -> Text
$sel:tags:CreateRoute' :: CreateRoute -> Maybe [TagRef]
$sel:meshOwner:CreateRoute' :: CreateRoute -> Maybe Text
$sel:clientToken:CreateRoute' :: CreateRoute -> 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]
data CreateRouteResponse = CreateRouteResponse'
{
CreateRouteResponse -> Int
httpStatus :: Prelude.Int,
CreateRouteResponse -> RouteData
route :: RouteData
}
deriving (CreateRouteResponse -> CreateRouteResponse -> Bool
(CreateRouteResponse -> CreateRouteResponse -> Bool)
-> (CreateRouteResponse -> CreateRouteResponse -> Bool)
-> Eq CreateRouteResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRouteResponse -> CreateRouteResponse -> Bool
$c/= :: CreateRouteResponse -> CreateRouteResponse -> Bool
== :: CreateRouteResponse -> CreateRouteResponse -> Bool
$c== :: CreateRouteResponse -> CreateRouteResponse -> Bool
Prelude.Eq, ReadPrec [CreateRouteResponse]
ReadPrec CreateRouteResponse
Int -> ReadS CreateRouteResponse
ReadS [CreateRouteResponse]
(Int -> ReadS CreateRouteResponse)
-> ReadS [CreateRouteResponse]
-> ReadPrec CreateRouteResponse
-> ReadPrec [CreateRouteResponse]
-> Read CreateRouteResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRouteResponse]
$creadListPrec :: ReadPrec [CreateRouteResponse]
readPrec :: ReadPrec CreateRouteResponse
$creadPrec :: ReadPrec CreateRouteResponse
readList :: ReadS [CreateRouteResponse]
$creadList :: ReadS [CreateRouteResponse]
readsPrec :: Int -> ReadS CreateRouteResponse
$creadsPrec :: Int -> ReadS CreateRouteResponse
Prelude.Read, Int -> CreateRouteResponse -> ShowS
[CreateRouteResponse] -> ShowS
CreateRouteResponse -> String
(Int -> CreateRouteResponse -> ShowS)
-> (CreateRouteResponse -> String)
-> ([CreateRouteResponse] -> ShowS)
-> Show CreateRouteResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRouteResponse] -> ShowS
$cshowList :: [CreateRouteResponse] -> ShowS
show :: CreateRouteResponse -> String
$cshow :: CreateRouteResponse -> String
showsPrec :: Int -> CreateRouteResponse -> ShowS
$cshowsPrec :: Int -> CreateRouteResponse -> ShowS
Prelude.Show, (forall x. CreateRouteResponse -> Rep CreateRouteResponse x)
-> (forall x. Rep CreateRouteResponse x -> CreateRouteResponse)
-> Generic CreateRouteResponse
forall x. Rep CreateRouteResponse x -> CreateRouteResponse
forall x. CreateRouteResponse -> Rep CreateRouteResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateRouteResponse x -> CreateRouteResponse
$cfrom :: forall x. CreateRouteResponse -> Rep CreateRouteResponse x
Prelude.Generic)
newCreateRouteResponse ::
Prelude.Int ->
RouteData ->
CreateRouteResponse
newCreateRouteResponse :: Int -> RouteData -> CreateRouteResponse
newCreateRouteResponse Int
pHttpStatus_ RouteData
pRoute_ =
CreateRouteResponse' :: Int -> RouteData -> CreateRouteResponse
CreateRouteResponse'
{ $sel:httpStatus:CreateRouteResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:route:CreateRouteResponse' :: RouteData
route = RouteData
pRoute_
}
createRouteResponse_httpStatus :: Lens.Lens' CreateRouteResponse Prelude.Int
createRouteResponse_httpStatus :: (Int -> f Int) -> CreateRouteResponse -> f CreateRouteResponse
createRouteResponse_httpStatus = (CreateRouteResponse -> Int)
-> (CreateRouteResponse -> Int -> CreateRouteResponse)
-> Lens CreateRouteResponse CreateRouteResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRouteResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateRouteResponse' :: CreateRouteResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateRouteResponse
s@CreateRouteResponse' {} Int
a -> CreateRouteResponse
s {$sel:httpStatus:CreateRouteResponse' :: Int
httpStatus = Int
a} :: CreateRouteResponse)
createRouteResponse_route :: Lens.Lens' CreateRouteResponse RouteData
createRouteResponse_route :: (RouteData -> f RouteData)
-> CreateRouteResponse -> f CreateRouteResponse
createRouteResponse_route = (CreateRouteResponse -> RouteData)
-> (CreateRouteResponse -> RouteData -> CreateRouteResponse)
-> Lens CreateRouteResponse CreateRouteResponse RouteData RouteData
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRouteResponse' {RouteData
route :: RouteData
$sel:route:CreateRouteResponse' :: CreateRouteResponse -> RouteData
route} -> RouteData
route) (\s :: CreateRouteResponse
s@CreateRouteResponse' {} RouteData
a -> CreateRouteResponse
s {$sel:route:CreateRouteResponse' :: RouteData
route = RouteData
a} :: CreateRouteResponse)
instance Prelude.NFData CreateRouteResponse