{-# 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.ListVirtualServices
(
ListVirtualServices (..),
newListVirtualServices,
listVirtualServices_meshOwner,
listVirtualServices_nextToken,
listVirtualServices_limit,
listVirtualServices_meshName,
ListVirtualServicesResponse (..),
newListVirtualServicesResponse,
listVirtualServicesResponse_nextToken,
listVirtualServicesResponse_httpStatus,
listVirtualServicesResponse_virtualServices,
)
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 ListVirtualServices = ListVirtualServices'
{
ListVirtualServices -> Maybe Text
meshOwner :: Prelude.Maybe Prelude.Text,
ListVirtualServices -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListVirtualServices -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
ListVirtualServices -> Text
meshName :: Prelude.Text
}
deriving (ListVirtualServices -> ListVirtualServices -> Bool
(ListVirtualServices -> ListVirtualServices -> Bool)
-> (ListVirtualServices -> ListVirtualServices -> Bool)
-> Eq ListVirtualServices
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVirtualServices -> ListVirtualServices -> Bool
$c/= :: ListVirtualServices -> ListVirtualServices -> Bool
== :: ListVirtualServices -> ListVirtualServices -> Bool
$c== :: ListVirtualServices -> ListVirtualServices -> Bool
Prelude.Eq, ReadPrec [ListVirtualServices]
ReadPrec ListVirtualServices
Int -> ReadS ListVirtualServices
ReadS [ListVirtualServices]
(Int -> ReadS ListVirtualServices)
-> ReadS [ListVirtualServices]
-> ReadPrec ListVirtualServices
-> ReadPrec [ListVirtualServices]
-> Read ListVirtualServices
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVirtualServices]
$creadListPrec :: ReadPrec [ListVirtualServices]
readPrec :: ReadPrec ListVirtualServices
$creadPrec :: ReadPrec ListVirtualServices
readList :: ReadS [ListVirtualServices]
$creadList :: ReadS [ListVirtualServices]
readsPrec :: Int -> ReadS ListVirtualServices
$creadsPrec :: Int -> ReadS ListVirtualServices
Prelude.Read, Int -> ListVirtualServices -> ShowS
[ListVirtualServices] -> ShowS
ListVirtualServices -> String
(Int -> ListVirtualServices -> ShowS)
-> (ListVirtualServices -> String)
-> ([ListVirtualServices] -> ShowS)
-> Show ListVirtualServices
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVirtualServices] -> ShowS
$cshowList :: [ListVirtualServices] -> ShowS
show :: ListVirtualServices -> String
$cshow :: ListVirtualServices -> String
showsPrec :: Int -> ListVirtualServices -> ShowS
$cshowsPrec :: Int -> ListVirtualServices -> ShowS
Prelude.Show, (forall x. ListVirtualServices -> Rep ListVirtualServices x)
-> (forall x. Rep ListVirtualServices x -> ListVirtualServices)
-> Generic ListVirtualServices
forall x. Rep ListVirtualServices x -> ListVirtualServices
forall x. ListVirtualServices -> Rep ListVirtualServices x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListVirtualServices x -> ListVirtualServices
$cfrom :: forall x. ListVirtualServices -> Rep ListVirtualServices x
Prelude.Generic)
newListVirtualServices ::
Prelude.Text ->
ListVirtualServices
newListVirtualServices :: Text -> ListVirtualServices
newListVirtualServices Text
pMeshName_ =
ListVirtualServices' :: Maybe Text
-> Maybe Text -> Maybe Natural -> Text -> ListVirtualServices
ListVirtualServices'
{ $sel:meshOwner:ListVirtualServices' :: Maybe Text
meshOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListVirtualServices' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListVirtualServices' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:meshName:ListVirtualServices' :: Text
meshName = Text
pMeshName_
}
listVirtualServices_meshOwner :: Lens.Lens' ListVirtualServices (Prelude.Maybe Prelude.Text)
listVirtualServices_meshOwner :: (Maybe Text -> f (Maybe Text))
-> ListVirtualServices -> f ListVirtualServices
listVirtualServices_meshOwner = (ListVirtualServices -> Maybe Text)
-> (ListVirtualServices -> Maybe Text -> ListVirtualServices)
-> Lens
ListVirtualServices ListVirtualServices (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVirtualServices' {Maybe Text
meshOwner :: Maybe Text
$sel:meshOwner:ListVirtualServices' :: ListVirtualServices -> Maybe Text
meshOwner} -> Maybe Text
meshOwner) (\s :: ListVirtualServices
s@ListVirtualServices' {} Maybe Text
a -> ListVirtualServices
s {$sel:meshOwner:ListVirtualServices' :: Maybe Text
meshOwner = Maybe Text
a} :: ListVirtualServices)
listVirtualServices_nextToken :: Lens.Lens' ListVirtualServices (Prelude.Maybe Prelude.Text)
listVirtualServices_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListVirtualServices -> f ListVirtualServices
listVirtualServices_nextToken = (ListVirtualServices -> Maybe Text)
-> (ListVirtualServices -> Maybe Text -> ListVirtualServices)
-> Lens
ListVirtualServices ListVirtualServices (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVirtualServices' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListVirtualServices' :: ListVirtualServices -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListVirtualServices
s@ListVirtualServices' {} Maybe Text
a -> ListVirtualServices
s {$sel:nextToken:ListVirtualServices' :: Maybe Text
nextToken = Maybe Text
a} :: ListVirtualServices)
listVirtualServices_limit :: Lens.Lens' ListVirtualServices (Prelude.Maybe Prelude.Natural)
listVirtualServices_limit :: (Maybe Natural -> f (Maybe Natural))
-> ListVirtualServices -> f ListVirtualServices
listVirtualServices_limit = (ListVirtualServices -> Maybe Natural)
-> (ListVirtualServices -> Maybe Natural -> ListVirtualServices)
-> Lens
ListVirtualServices
ListVirtualServices
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVirtualServices' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListVirtualServices' :: ListVirtualServices -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListVirtualServices
s@ListVirtualServices' {} Maybe Natural
a -> ListVirtualServices
s {$sel:limit:ListVirtualServices' :: Maybe Natural
limit = Maybe Natural
a} :: ListVirtualServices)
listVirtualServices_meshName :: Lens.Lens' ListVirtualServices Prelude.Text
listVirtualServices_meshName :: (Text -> f Text) -> ListVirtualServices -> f ListVirtualServices
listVirtualServices_meshName = (ListVirtualServices -> Text)
-> (ListVirtualServices -> Text -> ListVirtualServices)
-> Lens ListVirtualServices ListVirtualServices Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVirtualServices' {Text
meshName :: Text
$sel:meshName:ListVirtualServices' :: ListVirtualServices -> Text
meshName} -> Text
meshName) (\s :: ListVirtualServices
s@ListVirtualServices' {} Text
a -> ListVirtualServices
s {$sel:meshName:ListVirtualServices' :: Text
meshName = Text
a} :: ListVirtualServices)
instance Core.AWSPager ListVirtualServices where
page :: ListVirtualServices
-> AWSResponse ListVirtualServices -> Maybe ListVirtualServices
page ListVirtualServices
rq AWSResponse ListVirtualServices
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListVirtualServices
ListVirtualServicesResponse
rs
ListVirtualServicesResponse
-> Getting (First Text) ListVirtualServicesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListVirtualServicesResponse
-> Const (First Text) ListVirtualServicesResponse
Lens' ListVirtualServicesResponse (Maybe Text)
listVirtualServicesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListVirtualServicesResponse
-> Const (First Text) ListVirtualServicesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListVirtualServicesResponse 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 ListVirtualServices
forall a. Maybe a
Prelude.Nothing
| [VirtualServiceRef] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListVirtualServices
ListVirtualServicesResponse
rs
ListVirtualServicesResponse
-> Getting
[VirtualServiceRef] ListVirtualServicesResponse [VirtualServiceRef]
-> [VirtualServiceRef]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[VirtualServiceRef] ListVirtualServicesResponse [VirtualServiceRef]
Lens' ListVirtualServicesResponse [VirtualServiceRef]
listVirtualServicesResponse_virtualServices
) =
Maybe ListVirtualServices
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListVirtualServices -> Maybe ListVirtualServices
forall a. a -> Maybe a
Prelude.Just (ListVirtualServices -> Maybe ListVirtualServices)
-> ListVirtualServices -> Maybe ListVirtualServices
forall a b. (a -> b) -> a -> b
Prelude.$
ListVirtualServices
rq
ListVirtualServices
-> (ListVirtualServices -> ListVirtualServices)
-> ListVirtualServices
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListVirtualServices -> Identity ListVirtualServices
Lens
ListVirtualServices ListVirtualServices (Maybe Text) (Maybe Text)
listVirtualServices_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListVirtualServices -> Identity ListVirtualServices)
-> Maybe Text -> ListVirtualServices -> ListVirtualServices
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListVirtualServices
ListVirtualServicesResponse
rs
ListVirtualServicesResponse
-> Getting (First Text) ListVirtualServicesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListVirtualServicesResponse
-> Const (First Text) ListVirtualServicesResponse
Lens' ListVirtualServicesResponse (Maybe Text)
listVirtualServicesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListVirtualServicesResponse
-> Const (First Text) ListVirtualServicesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListVirtualServicesResponse 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 ListVirtualServices where
type
AWSResponse ListVirtualServices =
ListVirtualServicesResponse
request :: ListVirtualServices -> Request ListVirtualServices
request = Service -> ListVirtualServices -> Request ListVirtualServices
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListVirtualServices
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListVirtualServices)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListVirtualServices))
-> Logger
-> Service
-> Proxy ListVirtualServices
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListVirtualServices)))
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 -> [VirtualServiceRef] -> ListVirtualServicesResponse
ListVirtualServicesResponse'
(Maybe Text
-> Int -> [VirtualServiceRef] -> ListVirtualServicesResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [VirtualServiceRef] -> ListVirtualServicesResponse)
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 -> [VirtualServiceRef] -> ListVirtualServicesResponse)
-> Either String Int
-> Either
String ([VirtualServiceRef] -> ListVirtualServicesResponse)
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 ([VirtualServiceRef] -> ListVirtualServicesResponse)
-> Either String [VirtualServiceRef]
-> Either String ListVirtualServicesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [VirtualServiceRef])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"virtualServices"
Either String (Maybe [VirtualServiceRef])
-> [VirtualServiceRef] -> Either String [VirtualServiceRef]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [VirtualServiceRef]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListVirtualServices
instance Prelude.NFData ListVirtualServices
instance Core.ToHeaders ListVirtualServices where
toHeaders :: ListVirtualServices -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListVirtualServices -> 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 ListVirtualServices where
toPath :: ListVirtualServices -> ByteString
toPath ListVirtualServices' {Maybe Natural
Maybe Text
Text
meshName :: Text
limit :: Maybe Natural
nextToken :: Maybe Text
meshOwner :: Maybe Text
$sel:meshName:ListVirtualServices' :: ListVirtualServices -> Text
$sel:limit:ListVirtualServices' :: ListVirtualServices -> Maybe Natural
$sel:nextToken:ListVirtualServices' :: ListVirtualServices -> Maybe Text
$sel:meshOwner:ListVirtualServices' :: ListVirtualServices -> 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
"/virtualServices"
]
instance Core.ToQuery ListVirtualServices where
toQuery :: ListVirtualServices -> QueryString
toQuery ListVirtualServices' {Maybe Natural
Maybe Text
Text
meshName :: Text
limit :: Maybe Natural
nextToken :: Maybe Text
meshOwner :: Maybe Text
$sel:meshName:ListVirtualServices' :: ListVirtualServices -> Text
$sel:limit:ListVirtualServices' :: ListVirtualServices -> Maybe Natural
$sel:nextToken:ListVirtualServices' :: ListVirtualServices -> Maybe Text
$sel:meshOwner:ListVirtualServices' :: ListVirtualServices -> 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 ListVirtualServicesResponse = ListVirtualServicesResponse'
{
ListVirtualServicesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListVirtualServicesResponse -> Int
httpStatus :: Prelude.Int,
ListVirtualServicesResponse -> [VirtualServiceRef]
virtualServices :: [VirtualServiceRef]
}
deriving (ListVirtualServicesResponse -> ListVirtualServicesResponse -> Bool
(ListVirtualServicesResponse
-> ListVirtualServicesResponse -> Bool)
-> (ListVirtualServicesResponse
-> ListVirtualServicesResponse -> Bool)
-> Eq ListVirtualServicesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVirtualServicesResponse -> ListVirtualServicesResponse -> Bool
$c/= :: ListVirtualServicesResponse -> ListVirtualServicesResponse -> Bool
== :: ListVirtualServicesResponse -> ListVirtualServicesResponse -> Bool
$c== :: ListVirtualServicesResponse -> ListVirtualServicesResponse -> Bool
Prelude.Eq, ReadPrec [ListVirtualServicesResponse]
ReadPrec ListVirtualServicesResponse
Int -> ReadS ListVirtualServicesResponse
ReadS [ListVirtualServicesResponse]
(Int -> ReadS ListVirtualServicesResponse)
-> ReadS [ListVirtualServicesResponse]
-> ReadPrec ListVirtualServicesResponse
-> ReadPrec [ListVirtualServicesResponse]
-> Read ListVirtualServicesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVirtualServicesResponse]
$creadListPrec :: ReadPrec [ListVirtualServicesResponse]
readPrec :: ReadPrec ListVirtualServicesResponse
$creadPrec :: ReadPrec ListVirtualServicesResponse
readList :: ReadS [ListVirtualServicesResponse]
$creadList :: ReadS [ListVirtualServicesResponse]
readsPrec :: Int -> ReadS ListVirtualServicesResponse
$creadsPrec :: Int -> ReadS ListVirtualServicesResponse
Prelude.Read, Int -> ListVirtualServicesResponse -> ShowS
[ListVirtualServicesResponse] -> ShowS
ListVirtualServicesResponse -> String
(Int -> ListVirtualServicesResponse -> ShowS)
-> (ListVirtualServicesResponse -> String)
-> ([ListVirtualServicesResponse] -> ShowS)
-> Show ListVirtualServicesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVirtualServicesResponse] -> ShowS
$cshowList :: [ListVirtualServicesResponse] -> ShowS
show :: ListVirtualServicesResponse -> String
$cshow :: ListVirtualServicesResponse -> String
showsPrec :: Int -> ListVirtualServicesResponse -> ShowS
$cshowsPrec :: Int -> ListVirtualServicesResponse -> ShowS
Prelude.Show, (forall x.
ListVirtualServicesResponse -> Rep ListVirtualServicesResponse x)
-> (forall x.
Rep ListVirtualServicesResponse x -> ListVirtualServicesResponse)
-> Generic ListVirtualServicesResponse
forall x.
Rep ListVirtualServicesResponse x -> ListVirtualServicesResponse
forall x.
ListVirtualServicesResponse -> Rep ListVirtualServicesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListVirtualServicesResponse x -> ListVirtualServicesResponse
$cfrom :: forall x.
ListVirtualServicesResponse -> Rep ListVirtualServicesResponse x
Prelude.Generic)
newListVirtualServicesResponse ::
Prelude.Int ->
ListVirtualServicesResponse
newListVirtualServicesResponse :: Int -> ListVirtualServicesResponse
newListVirtualServicesResponse Int
pHttpStatus_ =
ListVirtualServicesResponse' :: Maybe Text
-> Int -> [VirtualServiceRef] -> ListVirtualServicesResponse
ListVirtualServicesResponse'
{ $sel:nextToken:ListVirtualServicesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListVirtualServicesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:virtualServices:ListVirtualServicesResponse' :: [VirtualServiceRef]
virtualServices = [VirtualServiceRef]
forall a. Monoid a => a
Prelude.mempty
}
listVirtualServicesResponse_nextToken :: Lens.Lens' ListVirtualServicesResponse (Prelude.Maybe Prelude.Text)
listVirtualServicesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListVirtualServicesResponse -> f ListVirtualServicesResponse
listVirtualServicesResponse_nextToken = (ListVirtualServicesResponse -> Maybe Text)
-> (ListVirtualServicesResponse
-> Maybe Text -> ListVirtualServicesResponse)
-> Lens' ListVirtualServicesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVirtualServicesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListVirtualServicesResponse' :: ListVirtualServicesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListVirtualServicesResponse
s@ListVirtualServicesResponse' {} Maybe Text
a -> ListVirtualServicesResponse
s {$sel:nextToken:ListVirtualServicesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListVirtualServicesResponse)
listVirtualServicesResponse_httpStatus :: Lens.Lens' ListVirtualServicesResponse Prelude.Int
listVirtualServicesResponse_httpStatus :: (Int -> f Int)
-> ListVirtualServicesResponse -> f ListVirtualServicesResponse
listVirtualServicesResponse_httpStatus = (ListVirtualServicesResponse -> Int)
-> (ListVirtualServicesResponse
-> Int -> ListVirtualServicesResponse)
-> Lens
ListVirtualServicesResponse ListVirtualServicesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVirtualServicesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListVirtualServicesResponse' :: ListVirtualServicesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListVirtualServicesResponse
s@ListVirtualServicesResponse' {} Int
a -> ListVirtualServicesResponse
s {$sel:httpStatus:ListVirtualServicesResponse' :: Int
httpStatus = Int
a} :: ListVirtualServicesResponse)
listVirtualServicesResponse_virtualServices :: Lens.Lens' ListVirtualServicesResponse [VirtualServiceRef]
listVirtualServicesResponse_virtualServices :: ([VirtualServiceRef] -> f [VirtualServiceRef])
-> ListVirtualServicesResponse -> f ListVirtualServicesResponse
listVirtualServicesResponse_virtualServices = (ListVirtualServicesResponse -> [VirtualServiceRef])
-> (ListVirtualServicesResponse
-> [VirtualServiceRef] -> ListVirtualServicesResponse)
-> Lens' ListVirtualServicesResponse [VirtualServiceRef]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVirtualServicesResponse' {[VirtualServiceRef]
virtualServices :: [VirtualServiceRef]
$sel:virtualServices:ListVirtualServicesResponse' :: ListVirtualServicesResponse -> [VirtualServiceRef]
virtualServices} -> [VirtualServiceRef]
virtualServices) (\s :: ListVirtualServicesResponse
s@ListVirtualServicesResponse' {} [VirtualServiceRef]
a -> ListVirtualServicesResponse
s {$sel:virtualServices:ListVirtualServicesResponse' :: [VirtualServiceRef]
virtualServices = [VirtualServiceRef]
a} :: ListVirtualServicesResponse) (([VirtualServiceRef] -> f [VirtualServiceRef])
-> ListVirtualServicesResponse -> f ListVirtualServicesResponse)
-> (([VirtualServiceRef] -> f [VirtualServiceRef])
-> [VirtualServiceRef] -> f [VirtualServiceRef])
-> ([VirtualServiceRef] -> f [VirtualServiceRef])
-> ListVirtualServicesResponse
-> f ListVirtualServicesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([VirtualServiceRef] -> f [VirtualServiceRef])
-> [VirtualServiceRef] -> f [VirtualServiceRef]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListVirtualServicesResponse