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