{-# 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.StorageGateway.ListGateways
(
ListGateways (..),
newListGateways,
listGateways_marker,
listGateways_limit,
ListGatewaysResponse (..),
newListGatewaysResponse,
listGatewaysResponse_marker,
listGatewaysResponse_gateways,
listGatewaysResponse_httpStatus,
)
where
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
import Amazonka.StorageGateway.Types
data ListGateways = ListGateways'
{
ListGateways -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListGateways -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (ListGateways -> ListGateways -> Bool
(ListGateways -> ListGateways -> Bool)
-> (ListGateways -> ListGateways -> Bool) -> Eq ListGateways
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGateways -> ListGateways -> Bool
$c/= :: ListGateways -> ListGateways -> Bool
== :: ListGateways -> ListGateways -> Bool
$c== :: ListGateways -> ListGateways -> Bool
Prelude.Eq, ReadPrec [ListGateways]
ReadPrec ListGateways
Int -> ReadS ListGateways
ReadS [ListGateways]
(Int -> ReadS ListGateways)
-> ReadS [ListGateways]
-> ReadPrec ListGateways
-> ReadPrec [ListGateways]
-> Read ListGateways
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGateways]
$creadListPrec :: ReadPrec [ListGateways]
readPrec :: ReadPrec ListGateways
$creadPrec :: ReadPrec ListGateways
readList :: ReadS [ListGateways]
$creadList :: ReadS [ListGateways]
readsPrec :: Int -> ReadS ListGateways
$creadsPrec :: Int -> ReadS ListGateways
Prelude.Read, Int -> ListGateways -> ShowS
[ListGateways] -> ShowS
ListGateways -> String
(Int -> ListGateways -> ShowS)
-> (ListGateways -> String)
-> ([ListGateways] -> ShowS)
-> Show ListGateways
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGateways] -> ShowS
$cshowList :: [ListGateways] -> ShowS
show :: ListGateways -> String
$cshow :: ListGateways -> String
showsPrec :: Int -> ListGateways -> ShowS
$cshowsPrec :: Int -> ListGateways -> ShowS
Prelude.Show, (forall x. ListGateways -> Rep ListGateways x)
-> (forall x. Rep ListGateways x -> ListGateways)
-> Generic ListGateways
forall x. Rep ListGateways x -> ListGateways
forall x. ListGateways -> Rep ListGateways x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListGateways x -> ListGateways
$cfrom :: forall x. ListGateways -> Rep ListGateways x
Prelude.Generic)
newListGateways ::
ListGateways
newListGateways :: ListGateways
newListGateways =
ListGateways' :: Maybe Text -> Maybe Natural -> ListGateways
ListGateways'
{ $sel:marker:ListGateways' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListGateways' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listGateways_marker :: Lens.Lens' ListGateways (Prelude.Maybe Prelude.Text)
listGateways_marker :: (Maybe Text -> f (Maybe Text)) -> ListGateways -> f ListGateways
listGateways_marker = (ListGateways -> Maybe Text)
-> (ListGateways -> Maybe Text -> ListGateways)
-> Lens ListGateways ListGateways (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGateways' {Maybe Text
marker :: Maybe Text
$sel:marker:ListGateways' :: ListGateways -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListGateways
s@ListGateways' {} Maybe Text
a -> ListGateways
s {$sel:marker:ListGateways' :: Maybe Text
marker = Maybe Text
a} :: ListGateways)
listGateways_limit :: Lens.Lens' ListGateways (Prelude.Maybe Prelude.Natural)
listGateways_limit :: (Maybe Natural -> f (Maybe Natural))
-> ListGateways -> f ListGateways
listGateways_limit = (ListGateways -> Maybe Natural)
-> (ListGateways -> Maybe Natural -> ListGateways)
-> Lens ListGateways ListGateways (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGateways' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListGateways' :: ListGateways -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListGateways
s@ListGateways' {} Maybe Natural
a -> ListGateways
s {$sel:limit:ListGateways' :: Maybe Natural
limit = Maybe Natural
a} :: ListGateways)
instance Core.AWSPager ListGateways where
page :: ListGateways -> AWSResponse ListGateways -> Maybe ListGateways
page ListGateways
rq AWSResponse ListGateways
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGateways
ListGatewaysResponse
rs
ListGatewaysResponse
-> Getting (First Text) ListGatewaysResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGatewaysResponse -> Const (First Text) ListGatewaysResponse
Lens' ListGatewaysResponse (Maybe Text)
listGatewaysResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGatewaysResponse -> Const (First Text) ListGatewaysResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGatewaysResponse 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 ListGateways
forall a. Maybe a
Prelude.Nothing
| Maybe [GatewayInfo] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGateways
ListGatewaysResponse
rs
ListGatewaysResponse
-> Getting (First [GatewayInfo]) ListGatewaysResponse [GatewayInfo]
-> Maybe [GatewayInfo]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [GatewayInfo]
-> Const (First [GatewayInfo]) (Maybe [GatewayInfo]))
-> ListGatewaysResponse
-> Const (First [GatewayInfo]) ListGatewaysResponse
Lens' ListGatewaysResponse (Maybe [GatewayInfo])
listGatewaysResponse_gateways ((Maybe [GatewayInfo]
-> Const (First [GatewayInfo]) (Maybe [GatewayInfo]))
-> ListGatewaysResponse
-> Const (First [GatewayInfo]) ListGatewaysResponse)
-> (([GatewayInfo] -> Const (First [GatewayInfo]) [GatewayInfo])
-> Maybe [GatewayInfo]
-> Const (First [GatewayInfo]) (Maybe [GatewayInfo]))
-> Getting (First [GatewayInfo]) ListGatewaysResponse [GatewayInfo]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([GatewayInfo] -> Const (First [GatewayInfo]) [GatewayInfo])
-> Maybe [GatewayInfo]
-> Const (First [GatewayInfo]) (Maybe [GatewayInfo])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListGateways
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListGateways -> Maybe ListGateways
forall a. a -> Maybe a
Prelude.Just (ListGateways -> Maybe ListGateways)
-> ListGateways -> Maybe ListGateways
forall a b. (a -> b) -> a -> b
Prelude.$
ListGateways
rq
ListGateways -> (ListGateways -> ListGateways) -> ListGateways
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListGateways -> Identity ListGateways
Lens ListGateways ListGateways (Maybe Text) (Maybe Text)
listGateways_marker
((Maybe Text -> Identity (Maybe Text))
-> ListGateways -> Identity ListGateways)
-> Maybe Text -> ListGateways -> ListGateways
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListGateways
ListGatewaysResponse
rs
ListGatewaysResponse
-> Getting (First Text) ListGatewaysResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGatewaysResponse -> Const (First Text) ListGatewaysResponse
Lens' ListGatewaysResponse (Maybe Text)
listGatewaysResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGatewaysResponse -> Const (First Text) ListGatewaysResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGatewaysResponse 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 ListGateways where
type AWSResponse ListGateways = ListGatewaysResponse
request :: ListGateways -> Request ListGateways
request = Service -> ListGateways -> Request ListGateways
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListGateways
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListGateways)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListGateways))
-> Logger
-> Service
-> Proxy ListGateways
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListGateways)))
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 -> Maybe [GatewayInfo] -> Int -> ListGatewaysResponse
ListGatewaysResponse'
(Maybe Text -> Maybe [GatewayInfo] -> Int -> ListGatewaysResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [GatewayInfo] -> Int -> ListGatewaysResponse)
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
"Marker")
Either String (Maybe [GatewayInfo] -> Int -> ListGatewaysResponse)
-> Either String (Maybe [GatewayInfo])
-> Either String (Int -> ListGatewaysResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [GatewayInfo]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Gateways" Either String (Maybe (Maybe [GatewayInfo]))
-> Maybe [GatewayInfo] -> Either String (Maybe [GatewayInfo])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [GatewayInfo]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListGatewaysResponse)
-> Either String Int -> Either String ListGatewaysResponse
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 ListGateways
instance Prelude.NFData ListGateways
instance Core.ToHeaders ListGateways where
toHeaders :: ListGateways -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListGateways -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StorageGateway_20130630.ListGateways" ::
Prelude.ByteString
),
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 ListGateways where
toJSON :: ListGateways -> Value
toJSON ListGateways' {Maybe Natural
Maybe Text
limit :: Maybe Natural
marker :: Maybe Text
$sel:limit:ListGateways' :: ListGateways -> Maybe Natural
$sel:marker:ListGateways' :: ListGateways -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Marker" 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
marker,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit
]
)
instance Core.ToPath ListGateways where
toPath :: ListGateways -> ByteString
toPath = ByteString -> ListGateways -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListGateways where
toQuery :: ListGateways -> QueryString
toQuery = QueryString -> ListGateways -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListGatewaysResponse = ListGatewaysResponse'
{
ListGatewaysResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListGatewaysResponse -> Maybe [GatewayInfo]
gateways :: Prelude.Maybe [GatewayInfo],
ListGatewaysResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListGatewaysResponse -> ListGatewaysResponse -> Bool
(ListGatewaysResponse -> ListGatewaysResponse -> Bool)
-> (ListGatewaysResponse -> ListGatewaysResponse -> Bool)
-> Eq ListGatewaysResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGatewaysResponse -> ListGatewaysResponse -> Bool
$c/= :: ListGatewaysResponse -> ListGatewaysResponse -> Bool
== :: ListGatewaysResponse -> ListGatewaysResponse -> Bool
$c== :: ListGatewaysResponse -> ListGatewaysResponse -> Bool
Prelude.Eq, ReadPrec [ListGatewaysResponse]
ReadPrec ListGatewaysResponse
Int -> ReadS ListGatewaysResponse
ReadS [ListGatewaysResponse]
(Int -> ReadS ListGatewaysResponse)
-> ReadS [ListGatewaysResponse]
-> ReadPrec ListGatewaysResponse
-> ReadPrec [ListGatewaysResponse]
-> Read ListGatewaysResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGatewaysResponse]
$creadListPrec :: ReadPrec [ListGatewaysResponse]
readPrec :: ReadPrec ListGatewaysResponse
$creadPrec :: ReadPrec ListGatewaysResponse
readList :: ReadS [ListGatewaysResponse]
$creadList :: ReadS [ListGatewaysResponse]
readsPrec :: Int -> ReadS ListGatewaysResponse
$creadsPrec :: Int -> ReadS ListGatewaysResponse
Prelude.Read, Int -> ListGatewaysResponse -> ShowS
[ListGatewaysResponse] -> ShowS
ListGatewaysResponse -> String
(Int -> ListGatewaysResponse -> ShowS)
-> (ListGatewaysResponse -> String)
-> ([ListGatewaysResponse] -> ShowS)
-> Show ListGatewaysResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGatewaysResponse] -> ShowS
$cshowList :: [ListGatewaysResponse] -> ShowS
show :: ListGatewaysResponse -> String
$cshow :: ListGatewaysResponse -> String
showsPrec :: Int -> ListGatewaysResponse -> ShowS
$cshowsPrec :: Int -> ListGatewaysResponse -> ShowS
Prelude.Show, (forall x. ListGatewaysResponse -> Rep ListGatewaysResponse x)
-> (forall x. Rep ListGatewaysResponse x -> ListGatewaysResponse)
-> Generic ListGatewaysResponse
forall x. Rep ListGatewaysResponse x -> ListGatewaysResponse
forall x. ListGatewaysResponse -> Rep ListGatewaysResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListGatewaysResponse x -> ListGatewaysResponse
$cfrom :: forall x. ListGatewaysResponse -> Rep ListGatewaysResponse x
Prelude.Generic)
newListGatewaysResponse ::
Prelude.Int ->
ListGatewaysResponse
newListGatewaysResponse :: Int -> ListGatewaysResponse
newListGatewaysResponse Int
pHttpStatus_ =
ListGatewaysResponse' :: Maybe Text -> Maybe [GatewayInfo] -> Int -> ListGatewaysResponse
ListGatewaysResponse'
{ $sel:marker:ListGatewaysResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gateways:ListGatewaysResponse' :: Maybe [GatewayInfo]
gateways = Maybe [GatewayInfo]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListGatewaysResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listGatewaysResponse_marker :: Lens.Lens' ListGatewaysResponse (Prelude.Maybe Prelude.Text)
listGatewaysResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListGatewaysResponse -> f ListGatewaysResponse
listGatewaysResponse_marker = (ListGatewaysResponse -> Maybe Text)
-> (ListGatewaysResponse -> Maybe Text -> ListGatewaysResponse)
-> Lens' ListGatewaysResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGatewaysResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListGatewaysResponse' :: ListGatewaysResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListGatewaysResponse
s@ListGatewaysResponse' {} Maybe Text
a -> ListGatewaysResponse
s {$sel:marker:ListGatewaysResponse' :: Maybe Text
marker = Maybe Text
a} :: ListGatewaysResponse)
listGatewaysResponse_gateways :: Lens.Lens' ListGatewaysResponse (Prelude.Maybe [GatewayInfo])
listGatewaysResponse_gateways :: (Maybe [GatewayInfo] -> f (Maybe [GatewayInfo]))
-> ListGatewaysResponse -> f ListGatewaysResponse
listGatewaysResponse_gateways = (ListGatewaysResponse -> Maybe [GatewayInfo])
-> (ListGatewaysResponse
-> Maybe [GatewayInfo] -> ListGatewaysResponse)
-> Lens' ListGatewaysResponse (Maybe [GatewayInfo])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGatewaysResponse' {Maybe [GatewayInfo]
gateways :: Maybe [GatewayInfo]
$sel:gateways:ListGatewaysResponse' :: ListGatewaysResponse -> Maybe [GatewayInfo]
gateways} -> Maybe [GatewayInfo]
gateways) (\s :: ListGatewaysResponse
s@ListGatewaysResponse' {} Maybe [GatewayInfo]
a -> ListGatewaysResponse
s {$sel:gateways:ListGatewaysResponse' :: Maybe [GatewayInfo]
gateways = Maybe [GatewayInfo]
a} :: ListGatewaysResponse) ((Maybe [GatewayInfo] -> f (Maybe [GatewayInfo]))
-> ListGatewaysResponse -> f ListGatewaysResponse)
-> ((Maybe [GatewayInfo] -> f (Maybe [GatewayInfo]))
-> Maybe [GatewayInfo] -> f (Maybe [GatewayInfo]))
-> (Maybe [GatewayInfo] -> f (Maybe [GatewayInfo]))
-> ListGatewaysResponse
-> f ListGatewaysResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [GatewayInfo] [GatewayInfo] [GatewayInfo] [GatewayInfo]
-> Iso
(Maybe [GatewayInfo])
(Maybe [GatewayInfo])
(Maybe [GatewayInfo])
(Maybe [GatewayInfo])
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 [GatewayInfo] [GatewayInfo] [GatewayInfo] [GatewayInfo]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listGatewaysResponse_httpStatus :: Lens.Lens' ListGatewaysResponse Prelude.Int
listGatewaysResponse_httpStatus :: (Int -> f Int) -> ListGatewaysResponse -> f ListGatewaysResponse
listGatewaysResponse_httpStatus = (ListGatewaysResponse -> Int)
-> (ListGatewaysResponse -> Int -> ListGatewaysResponse)
-> Lens ListGatewaysResponse ListGatewaysResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGatewaysResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListGatewaysResponse' :: ListGatewaysResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListGatewaysResponse
s@ListGatewaysResponse' {} Int
a -> ListGatewaysResponse
s {$sel:httpStatus:ListGatewaysResponse' :: Int
httpStatus = Int
a} :: ListGatewaysResponse)
instance Prelude.NFData ListGatewaysResponse