{-# 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.UpdateVirtualRouter
(
UpdateVirtualRouter (..),
newUpdateVirtualRouter,
updateVirtualRouter_clientToken,
updateVirtualRouter_meshOwner,
updateVirtualRouter_meshName,
updateVirtualRouter_spec,
updateVirtualRouter_virtualRouterName,
UpdateVirtualRouterResponse (..),
newUpdateVirtualRouterResponse,
updateVirtualRouterResponse_httpStatus,
updateVirtualRouterResponse_virtualRouter,
)
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 UpdateVirtualRouter = UpdateVirtualRouter'
{
UpdateVirtualRouter -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
UpdateVirtualRouter -> Maybe Text
meshOwner :: Prelude.Maybe Prelude.Text,
UpdateVirtualRouter -> Text
meshName :: Prelude.Text,
UpdateVirtualRouter -> VirtualRouterSpec
spec :: VirtualRouterSpec,
UpdateVirtualRouter -> Text
virtualRouterName :: Prelude.Text
}
deriving (UpdateVirtualRouter -> UpdateVirtualRouter -> Bool
(UpdateVirtualRouter -> UpdateVirtualRouter -> Bool)
-> (UpdateVirtualRouter -> UpdateVirtualRouter -> Bool)
-> Eq UpdateVirtualRouter
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVirtualRouter -> UpdateVirtualRouter -> Bool
$c/= :: UpdateVirtualRouter -> UpdateVirtualRouter -> Bool
== :: UpdateVirtualRouter -> UpdateVirtualRouter -> Bool
$c== :: UpdateVirtualRouter -> UpdateVirtualRouter -> Bool
Prelude.Eq, ReadPrec [UpdateVirtualRouter]
ReadPrec UpdateVirtualRouter
Int -> ReadS UpdateVirtualRouter
ReadS [UpdateVirtualRouter]
(Int -> ReadS UpdateVirtualRouter)
-> ReadS [UpdateVirtualRouter]
-> ReadPrec UpdateVirtualRouter
-> ReadPrec [UpdateVirtualRouter]
-> Read UpdateVirtualRouter
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVirtualRouter]
$creadListPrec :: ReadPrec [UpdateVirtualRouter]
readPrec :: ReadPrec UpdateVirtualRouter
$creadPrec :: ReadPrec UpdateVirtualRouter
readList :: ReadS [UpdateVirtualRouter]
$creadList :: ReadS [UpdateVirtualRouter]
readsPrec :: Int -> ReadS UpdateVirtualRouter
$creadsPrec :: Int -> ReadS UpdateVirtualRouter
Prelude.Read, Int -> UpdateVirtualRouter -> ShowS
[UpdateVirtualRouter] -> ShowS
UpdateVirtualRouter -> String
(Int -> UpdateVirtualRouter -> ShowS)
-> (UpdateVirtualRouter -> String)
-> ([UpdateVirtualRouter] -> ShowS)
-> Show UpdateVirtualRouter
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVirtualRouter] -> ShowS
$cshowList :: [UpdateVirtualRouter] -> ShowS
show :: UpdateVirtualRouter -> String
$cshow :: UpdateVirtualRouter -> String
showsPrec :: Int -> UpdateVirtualRouter -> ShowS
$cshowsPrec :: Int -> UpdateVirtualRouter -> ShowS
Prelude.Show, (forall x. UpdateVirtualRouter -> Rep UpdateVirtualRouter x)
-> (forall x. Rep UpdateVirtualRouter x -> UpdateVirtualRouter)
-> Generic UpdateVirtualRouter
forall x. Rep UpdateVirtualRouter x -> UpdateVirtualRouter
forall x. UpdateVirtualRouter -> Rep UpdateVirtualRouter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateVirtualRouter x -> UpdateVirtualRouter
$cfrom :: forall x. UpdateVirtualRouter -> Rep UpdateVirtualRouter x
Prelude.Generic)
newUpdateVirtualRouter ::
Prelude.Text ->
VirtualRouterSpec ->
Prelude.Text ->
UpdateVirtualRouter
newUpdateVirtualRouter :: Text -> VirtualRouterSpec -> Text -> UpdateVirtualRouter
newUpdateVirtualRouter
Text
pMeshName_
VirtualRouterSpec
pSpec_
Text
pVirtualRouterName_ =
UpdateVirtualRouter' :: Maybe Text
-> Maybe Text
-> Text
-> VirtualRouterSpec
-> Text
-> UpdateVirtualRouter
UpdateVirtualRouter'
{ $sel:clientToken:UpdateVirtualRouter' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:meshOwner:UpdateVirtualRouter' :: Maybe Text
meshOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:meshName:UpdateVirtualRouter' :: Text
meshName = Text
pMeshName_,
$sel:spec:UpdateVirtualRouter' :: VirtualRouterSpec
spec = VirtualRouterSpec
pSpec_,
$sel:virtualRouterName:UpdateVirtualRouter' :: Text
virtualRouterName = Text
pVirtualRouterName_
}
updateVirtualRouter_clientToken :: Lens.Lens' UpdateVirtualRouter (Prelude.Maybe Prelude.Text)
updateVirtualRouter_clientToken :: (Maybe Text -> f (Maybe Text))
-> UpdateVirtualRouter -> f UpdateVirtualRouter
updateVirtualRouter_clientToken = (UpdateVirtualRouter -> Maybe Text)
-> (UpdateVirtualRouter -> Maybe Text -> UpdateVirtualRouter)
-> Lens
UpdateVirtualRouter UpdateVirtualRouter (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVirtualRouter' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:UpdateVirtualRouter' :: UpdateVirtualRouter -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: UpdateVirtualRouter
s@UpdateVirtualRouter' {} Maybe Text
a -> UpdateVirtualRouter
s {$sel:clientToken:UpdateVirtualRouter' :: Maybe Text
clientToken = Maybe Text
a} :: UpdateVirtualRouter)
updateVirtualRouter_meshOwner :: Lens.Lens' UpdateVirtualRouter (Prelude.Maybe Prelude.Text)
updateVirtualRouter_meshOwner :: (Maybe Text -> f (Maybe Text))
-> UpdateVirtualRouter -> f UpdateVirtualRouter
updateVirtualRouter_meshOwner = (UpdateVirtualRouter -> Maybe Text)
-> (UpdateVirtualRouter -> Maybe Text -> UpdateVirtualRouter)
-> Lens
UpdateVirtualRouter UpdateVirtualRouter (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVirtualRouter' {Maybe Text
meshOwner :: Maybe Text
$sel:meshOwner:UpdateVirtualRouter' :: UpdateVirtualRouter -> Maybe Text
meshOwner} -> Maybe Text
meshOwner) (\s :: UpdateVirtualRouter
s@UpdateVirtualRouter' {} Maybe Text
a -> UpdateVirtualRouter
s {$sel:meshOwner:UpdateVirtualRouter' :: Maybe Text
meshOwner = Maybe Text
a} :: UpdateVirtualRouter)
updateVirtualRouter_meshName :: Lens.Lens' UpdateVirtualRouter Prelude.Text
updateVirtualRouter_meshName :: (Text -> f Text) -> UpdateVirtualRouter -> f UpdateVirtualRouter
updateVirtualRouter_meshName = (UpdateVirtualRouter -> Text)
-> (UpdateVirtualRouter -> Text -> UpdateVirtualRouter)
-> Lens UpdateVirtualRouter UpdateVirtualRouter Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVirtualRouter' {Text
meshName :: Text
$sel:meshName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
meshName} -> Text
meshName) (\s :: UpdateVirtualRouter
s@UpdateVirtualRouter' {} Text
a -> UpdateVirtualRouter
s {$sel:meshName:UpdateVirtualRouter' :: Text
meshName = Text
a} :: UpdateVirtualRouter)
updateVirtualRouter_spec :: Lens.Lens' UpdateVirtualRouter VirtualRouterSpec
updateVirtualRouter_spec :: (VirtualRouterSpec -> f VirtualRouterSpec)
-> UpdateVirtualRouter -> f UpdateVirtualRouter
updateVirtualRouter_spec = (UpdateVirtualRouter -> VirtualRouterSpec)
-> (UpdateVirtualRouter
-> VirtualRouterSpec -> UpdateVirtualRouter)
-> Lens
UpdateVirtualRouter
UpdateVirtualRouter
VirtualRouterSpec
VirtualRouterSpec
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVirtualRouter' {VirtualRouterSpec
spec :: VirtualRouterSpec
$sel:spec:UpdateVirtualRouter' :: UpdateVirtualRouter -> VirtualRouterSpec
spec} -> VirtualRouterSpec
spec) (\s :: UpdateVirtualRouter
s@UpdateVirtualRouter' {} VirtualRouterSpec
a -> UpdateVirtualRouter
s {$sel:spec:UpdateVirtualRouter' :: VirtualRouterSpec
spec = VirtualRouterSpec
a} :: UpdateVirtualRouter)
updateVirtualRouter_virtualRouterName :: Lens.Lens' UpdateVirtualRouter Prelude.Text
updateVirtualRouter_virtualRouterName :: (Text -> f Text) -> UpdateVirtualRouter -> f UpdateVirtualRouter
updateVirtualRouter_virtualRouterName = (UpdateVirtualRouter -> Text)
-> (UpdateVirtualRouter -> Text -> UpdateVirtualRouter)
-> Lens UpdateVirtualRouter UpdateVirtualRouter Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVirtualRouter' {Text
virtualRouterName :: Text
$sel:virtualRouterName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
virtualRouterName} -> Text
virtualRouterName) (\s :: UpdateVirtualRouter
s@UpdateVirtualRouter' {} Text
a -> UpdateVirtualRouter
s {$sel:virtualRouterName:UpdateVirtualRouter' :: Text
virtualRouterName = Text
a} :: UpdateVirtualRouter)
instance Core.AWSRequest UpdateVirtualRouter where
type
AWSResponse UpdateVirtualRouter =
UpdateVirtualRouterResponse
request :: UpdateVirtualRouter -> Request UpdateVirtualRouter
request = Service -> UpdateVirtualRouter -> Request UpdateVirtualRouter
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateVirtualRouter
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateVirtualRouter)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateVirtualRouter))
-> Logger
-> Service
-> Proxy UpdateVirtualRouter
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateVirtualRouter)))
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 -> VirtualRouterData -> UpdateVirtualRouterResponse
UpdateVirtualRouterResponse'
(Int -> VirtualRouterData -> UpdateVirtualRouterResponse)
-> Either String Int
-> Either String (VirtualRouterData -> UpdateVirtualRouterResponse)
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 (VirtualRouterData -> UpdateVirtualRouterResponse)
-> Either String VirtualRouterData
-> Either String UpdateVirtualRouterResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object -> Either String VirtualRouterData
forall a. FromJSON a => Object -> Either String a
Core.eitherParseJSON Object
x)
)
instance Prelude.Hashable UpdateVirtualRouter
instance Prelude.NFData UpdateVirtualRouter
instance Core.ToHeaders UpdateVirtualRouter where
toHeaders :: UpdateVirtualRouter -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateVirtualRouter -> 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 UpdateVirtualRouter where
toJSON :: UpdateVirtualRouter -> Value
toJSON UpdateVirtualRouter' {Maybe Text
Text
VirtualRouterSpec
virtualRouterName :: Text
spec :: VirtualRouterSpec
meshName :: Text
meshOwner :: Maybe Text
clientToken :: Maybe Text
$sel:virtualRouterName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
$sel:spec:UpdateVirtualRouter' :: UpdateVirtualRouter -> VirtualRouterSpec
$sel:meshName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
$sel:meshOwner:UpdateVirtualRouter' :: UpdateVirtualRouter -> Maybe Text
$sel:clientToken:UpdateVirtualRouter' :: UpdateVirtualRouter -> 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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"spec" Text -> VirtualRouterSpec -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= VirtualRouterSpec
spec)
]
)
instance Core.ToPath UpdateVirtualRouter where
toPath :: UpdateVirtualRouter -> ByteString
toPath UpdateVirtualRouter' {Maybe Text
Text
VirtualRouterSpec
virtualRouterName :: Text
spec :: VirtualRouterSpec
meshName :: Text
meshOwner :: Maybe Text
clientToken :: Maybe Text
$sel:virtualRouterName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
$sel:spec:UpdateVirtualRouter' :: UpdateVirtualRouter -> VirtualRouterSpec
$sel:meshName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
$sel:meshOwner:UpdateVirtualRouter' :: UpdateVirtualRouter -> Maybe Text
$sel:clientToken:UpdateVirtualRouter' :: UpdateVirtualRouter -> 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
"/virtualRouters/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
virtualRouterName
]
instance Core.ToQuery UpdateVirtualRouter where
toQuery :: UpdateVirtualRouter -> QueryString
toQuery UpdateVirtualRouter' {Maybe Text
Text
VirtualRouterSpec
virtualRouterName :: Text
spec :: VirtualRouterSpec
meshName :: Text
meshOwner :: Maybe Text
clientToken :: Maybe Text
$sel:virtualRouterName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
$sel:spec:UpdateVirtualRouter' :: UpdateVirtualRouter -> VirtualRouterSpec
$sel:meshName:UpdateVirtualRouter' :: UpdateVirtualRouter -> Text
$sel:meshOwner:UpdateVirtualRouter' :: UpdateVirtualRouter -> Maybe Text
$sel:clientToken:UpdateVirtualRouter' :: UpdateVirtualRouter -> 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 UpdateVirtualRouterResponse = UpdateVirtualRouterResponse'
{
UpdateVirtualRouterResponse -> Int
httpStatus :: Prelude.Int,
UpdateVirtualRouterResponse -> VirtualRouterData
virtualRouter :: VirtualRouterData
}
deriving (UpdateVirtualRouterResponse -> UpdateVirtualRouterResponse -> Bool
(UpdateVirtualRouterResponse
-> UpdateVirtualRouterResponse -> Bool)
-> (UpdateVirtualRouterResponse
-> UpdateVirtualRouterResponse -> Bool)
-> Eq UpdateVirtualRouterResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVirtualRouterResponse -> UpdateVirtualRouterResponse -> Bool
$c/= :: UpdateVirtualRouterResponse -> UpdateVirtualRouterResponse -> Bool
== :: UpdateVirtualRouterResponse -> UpdateVirtualRouterResponse -> Bool
$c== :: UpdateVirtualRouterResponse -> UpdateVirtualRouterResponse -> Bool
Prelude.Eq, ReadPrec [UpdateVirtualRouterResponse]
ReadPrec UpdateVirtualRouterResponse
Int -> ReadS UpdateVirtualRouterResponse
ReadS [UpdateVirtualRouterResponse]
(Int -> ReadS UpdateVirtualRouterResponse)
-> ReadS [UpdateVirtualRouterResponse]
-> ReadPrec UpdateVirtualRouterResponse
-> ReadPrec [UpdateVirtualRouterResponse]
-> Read UpdateVirtualRouterResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVirtualRouterResponse]
$creadListPrec :: ReadPrec [UpdateVirtualRouterResponse]
readPrec :: ReadPrec UpdateVirtualRouterResponse
$creadPrec :: ReadPrec UpdateVirtualRouterResponse
readList :: ReadS [UpdateVirtualRouterResponse]
$creadList :: ReadS [UpdateVirtualRouterResponse]
readsPrec :: Int -> ReadS UpdateVirtualRouterResponse
$creadsPrec :: Int -> ReadS UpdateVirtualRouterResponse
Prelude.Read, Int -> UpdateVirtualRouterResponse -> ShowS
[UpdateVirtualRouterResponse] -> ShowS
UpdateVirtualRouterResponse -> String
(Int -> UpdateVirtualRouterResponse -> ShowS)
-> (UpdateVirtualRouterResponse -> String)
-> ([UpdateVirtualRouterResponse] -> ShowS)
-> Show UpdateVirtualRouterResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVirtualRouterResponse] -> ShowS
$cshowList :: [UpdateVirtualRouterResponse] -> ShowS
show :: UpdateVirtualRouterResponse -> String
$cshow :: UpdateVirtualRouterResponse -> String
showsPrec :: Int -> UpdateVirtualRouterResponse -> ShowS
$cshowsPrec :: Int -> UpdateVirtualRouterResponse -> ShowS
Prelude.Show, (forall x.
UpdateVirtualRouterResponse -> Rep UpdateVirtualRouterResponse x)
-> (forall x.
Rep UpdateVirtualRouterResponse x -> UpdateVirtualRouterResponse)
-> Generic UpdateVirtualRouterResponse
forall x.
Rep UpdateVirtualRouterResponse x -> UpdateVirtualRouterResponse
forall x.
UpdateVirtualRouterResponse -> Rep UpdateVirtualRouterResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateVirtualRouterResponse x -> UpdateVirtualRouterResponse
$cfrom :: forall x.
UpdateVirtualRouterResponse -> Rep UpdateVirtualRouterResponse x
Prelude.Generic)
newUpdateVirtualRouterResponse ::
Prelude.Int ->
VirtualRouterData ->
UpdateVirtualRouterResponse
newUpdateVirtualRouterResponse :: Int -> VirtualRouterData -> UpdateVirtualRouterResponse
newUpdateVirtualRouterResponse
Int
pHttpStatus_
VirtualRouterData
pVirtualRouter_ =
UpdateVirtualRouterResponse' :: Int -> VirtualRouterData -> UpdateVirtualRouterResponse
UpdateVirtualRouterResponse'
{ $sel:httpStatus:UpdateVirtualRouterResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:virtualRouter:UpdateVirtualRouterResponse' :: VirtualRouterData
virtualRouter = VirtualRouterData
pVirtualRouter_
}
updateVirtualRouterResponse_httpStatus :: Lens.Lens' UpdateVirtualRouterResponse Prelude.Int
updateVirtualRouterResponse_httpStatus :: (Int -> f Int)
-> UpdateVirtualRouterResponse -> f UpdateVirtualRouterResponse
updateVirtualRouterResponse_httpStatus = (UpdateVirtualRouterResponse -> Int)
-> (UpdateVirtualRouterResponse
-> Int -> UpdateVirtualRouterResponse)
-> Lens
UpdateVirtualRouterResponse UpdateVirtualRouterResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVirtualRouterResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateVirtualRouterResponse' :: UpdateVirtualRouterResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateVirtualRouterResponse
s@UpdateVirtualRouterResponse' {} Int
a -> UpdateVirtualRouterResponse
s {$sel:httpStatus:UpdateVirtualRouterResponse' :: Int
httpStatus = Int
a} :: UpdateVirtualRouterResponse)
updateVirtualRouterResponse_virtualRouter :: Lens.Lens' UpdateVirtualRouterResponse VirtualRouterData
updateVirtualRouterResponse_virtualRouter :: (VirtualRouterData -> f VirtualRouterData)
-> UpdateVirtualRouterResponse -> f UpdateVirtualRouterResponse
updateVirtualRouterResponse_virtualRouter = (UpdateVirtualRouterResponse -> VirtualRouterData)
-> (UpdateVirtualRouterResponse
-> VirtualRouterData -> UpdateVirtualRouterResponse)
-> Lens
UpdateVirtualRouterResponse
UpdateVirtualRouterResponse
VirtualRouterData
VirtualRouterData
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVirtualRouterResponse' {VirtualRouterData
virtualRouter :: VirtualRouterData
$sel:virtualRouter:UpdateVirtualRouterResponse' :: UpdateVirtualRouterResponse -> VirtualRouterData
virtualRouter} -> VirtualRouterData
virtualRouter) (\s :: UpdateVirtualRouterResponse
s@UpdateVirtualRouterResponse' {} VirtualRouterData
a -> UpdateVirtualRouterResponse
s {$sel:virtualRouter:UpdateVirtualRouterResponse' :: VirtualRouterData
virtualRouter = VirtualRouterData
a} :: UpdateVirtualRouterResponse)
instance Prelude.NFData UpdateVirtualRouterResponse