{-# 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.ServiceQuotas.ListServiceQuotas
(
ListServiceQuotas (..),
newListServiceQuotas,
listServiceQuotas_nextToken,
listServiceQuotas_maxResults,
listServiceQuotas_serviceCode,
ListServiceQuotasResponse (..),
newListServiceQuotasResponse,
listServiceQuotasResponse_nextToken,
listServiceQuotasResponse_quotas,
listServiceQuotasResponse_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.ServiceQuotas.Types
data ListServiceQuotas = ListServiceQuotas'
{
ListServiceQuotas -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListServiceQuotas -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListServiceQuotas -> Text
serviceCode :: Prelude.Text
}
deriving (ListServiceQuotas -> ListServiceQuotas -> Bool
(ListServiceQuotas -> ListServiceQuotas -> Bool)
-> (ListServiceQuotas -> ListServiceQuotas -> Bool)
-> Eq ListServiceQuotas
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListServiceQuotas -> ListServiceQuotas -> Bool
$c/= :: ListServiceQuotas -> ListServiceQuotas -> Bool
== :: ListServiceQuotas -> ListServiceQuotas -> Bool
$c== :: ListServiceQuotas -> ListServiceQuotas -> Bool
Prelude.Eq, ReadPrec [ListServiceQuotas]
ReadPrec ListServiceQuotas
Int -> ReadS ListServiceQuotas
ReadS [ListServiceQuotas]
(Int -> ReadS ListServiceQuotas)
-> ReadS [ListServiceQuotas]
-> ReadPrec ListServiceQuotas
-> ReadPrec [ListServiceQuotas]
-> Read ListServiceQuotas
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListServiceQuotas]
$creadListPrec :: ReadPrec [ListServiceQuotas]
readPrec :: ReadPrec ListServiceQuotas
$creadPrec :: ReadPrec ListServiceQuotas
readList :: ReadS [ListServiceQuotas]
$creadList :: ReadS [ListServiceQuotas]
readsPrec :: Int -> ReadS ListServiceQuotas
$creadsPrec :: Int -> ReadS ListServiceQuotas
Prelude.Read, Int -> ListServiceQuotas -> ShowS
[ListServiceQuotas] -> ShowS
ListServiceQuotas -> String
(Int -> ListServiceQuotas -> ShowS)
-> (ListServiceQuotas -> String)
-> ([ListServiceQuotas] -> ShowS)
-> Show ListServiceQuotas
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListServiceQuotas] -> ShowS
$cshowList :: [ListServiceQuotas] -> ShowS
show :: ListServiceQuotas -> String
$cshow :: ListServiceQuotas -> String
showsPrec :: Int -> ListServiceQuotas -> ShowS
$cshowsPrec :: Int -> ListServiceQuotas -> ShowS
Prelude.Show, (forall x. ListServiceQuotas -> Rep ListServiceQuotas x)
-> (forall x. Rep ListServiceQuotas x -> ListServiceQuotas)
-> Generic ListServiceQuotas
forall x. Rep ListServiceQuotas x -> ListServiceQuotas
forall x. ListServiceQuotas -> Rep ListServiceQuotas x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListServiceQuotas x -> ListServiceQuotas
$cfrom :: forall x. ListServiceQuotas -> Rep ListServiceQuotas x
Prelude.Generic)
newListServiceQuotas ::
Prelude.Text ->
ListServiceQuotas
newListServiceQuotas :: Text -> ListServiceQuotas
newListServiceQuotas Text
pServiceCode_ =
ListServiceQuotas' :: Maybe Text -> Maybe Natural -> Text -> ListServiceQuotas
ListServiceQuotas'
{ $sel:nextToken:ListServiceQuotas' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListServiceQuotas' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:serviceCode:ListServiceQuotas' :: Text
serviceCode = Text
pServiceCode_
}
listServiceQuotas_nextToken :: Lens.Lens' ListServiceQuotas (Prelude.Maybe Prelude.Text)
listServiceQuotas_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListServiceQuotas -> f ListServiceQuotas
listServiceQuotas_nextToken = (ListServiceQuotas -> Maybe Text)
-> (ListServiceQuotas -> Maybe Text -> ListServiceQuotas)
-> Lens
ListServiceQuotas ListServiceQuotas (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceQuotas' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListServiceQuotas' :: ListServiceQuotas -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListServiceQuotas
s@ListServiceQuotas' {} Maybe Text
a -> ListServiceQuotas
s {$sel:nextToken:ListServiceQuotas' :: Maybe Text
nextToken = Maybe Text
a} :: ListServiceQuotas)
listServiceQuotas_maxResults :: Lens.Lens' ListServiceQuotas (Prelude.Maybe Prelude.Natural)
listServiceQuotas_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListServiceQuotas -> f ListServiceQuotas
listServiceQuotas_maxResults = (ListServiceQuotas -> Maybe Natural)
-> (ListServiceQuotas -> Maybe Natural -> ListServiceQuotas)
-> Lens
ListServiceQuotas ListServiceQuotas (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceQuotas' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListServiceQuotas' :: ListServiceQuotas -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListServiceQuotas
s@ListServiceQuotas' {} Maybe Natural
a -> ListServiceQuotas
s {$sel:maxResults:ListServiceQuotas' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListServiceQuotas)
listServiceQuotas_serviceCode :: Lens.Lens' ListServiceQuotas Prelude.Text
listServiceQuotas_serviceCode :: (Text -> f Text) -> ListServiceQuotas -> f ListServiceQuotas
listServiceQuotas_serviceCode = (ListServiceQuotas -> Text)
-> (ListServiceQuotas -> Text -> ListServiceQuotas)
-> Lens ListServiceQuotas ListServiceQuotas Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceQuotas' {Text
serviceCode :: Text
$sel:serviceCode:ListServiceQuotas' :: ListServiceQuotas -> Text
serviceCode} -> Text
serviceCode) (\s :: ListServiceQuotas
s@ListServiceQuotas' {} Text
a -> ListServiceQuotas
s {$sel:serviceCode:ListServiceQuotas' :: Text
serviceCode = Text
a} :: ListServiceQuotas)
instance Core.AWSPager ListServiceQuotas where
page :: ListServiceQuotas
-> AWSResponse ListServiceQuotas -> Maybe ListServiceQuotas
page ListServiceQuotas
rq AWSResponse ListServiceQuotas
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListServiceQuotas
ListServiceQuotasResponse
rs
ListServiceQuotasResponse
-> Getting (First Text) ListServiceQuotasResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceQuotasResponse
-> Const (First Text) ListServiceQuotasResponse
Lens' ListServiceQuotasResponse (Maybe Text)
listServiceQuotasResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceQuotasResponse
-> Const (First Text) ListServiceQuotasResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListServiceQuotasResponse 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 ListServiceQuotas
forall a. Maybe a
Prelude.Nothing
| Maybe [ServiceQuota] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListServiceQuotas
ListServiceQuotasResponse
rs
ListServiceQuotasResponse
-> Getting
(First [ServiceQuota]) ListServiceQuotasResponse [ServiceQuota]
-> Maybe [ServiceQuota]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ServiceQuota]
-> Const (First [ServiceQuota]) (Maybe [ServiceQuota]))
-> ListServiceQuotasResponse
-> Const (First [ServiceQuota]) ListServiceQuotasResponse
Lens' ListServiceQuotasResponse (Maybe [ServiceQuota])
listServiceQuotasResponse_quotas
((Maybe [ServiceQuota]
-> Const (First [ServiceQuota]) (Maybe [ServiceQuota]))
-> ListServiceQuotasResponse
-> Const (First [ServiceQuota]) ListServiceQuotasResponse)
-> (([ServiceQuota] -> Const (First [ServiceQuota]) [ServiceQuota])
-> Maybe [ServiceQuota]
-> Const (First [ServiceQuota]) (Maybe [ServiceQuota]))
-> Getting
(First [ServiceQuota]) ListServiceQuotasResponse [ServiceQuota]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ServiceQuota] -> Const (First [ServiceQuota]) [ServiceQuota])
-> Maybe [ServiceQuota]
-> Const (First [ServiceQuota]) (Maybe [ServiceQuota])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListServiceQuotas
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListServiceQuotas -> Maybe ListServiceQuotas
forall a. a -> Maybe a
Prelude.Just (ListServiceQuotas -> Maybe ListServiceQuotas)
-> ListServiceQuotas -> Maybe ListServiceQuotas
forall a b. (a -> b) -> a -> b
Prelude.$
ListServiceQuotas
rq
ListServiceQuotas
-> (ListServiceQuotas -> ListServiceQuotas) -> ListServiceQuotas
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListServiceQuotas -> Identity ListServiceQuotas
Lens ListServiceQuotas ListServiceQuotas (Maybe Text) (Maybe Text)
listServiceQuotas_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListServiceQuotas -> Identity ListServiceQuotas)
-> Maybe Text -> ListServiceQuotas -> ListServiceQuotas
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListServiceQuotas
ListServiceQuotasResponse
rs
ListServiceQuotasResponse
-> Getting (First Text) ListServiceQuotasResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceQuotasResponse
-> Const (First Text) ListServiceQuotasResponse
Lens' ListServiceQuotasResponse (Maybe Text)
listServiceQuotasResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceQuotasResponse
-> Const (First Text) ListServiceQuotasResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListServiceQuotasResponse 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 ListServiceQuotas where
type
AWSResponse ListServiceQuotas =
ListServiceQuotasResponse
request :: ListServiceQuotas -> Request ListServiceQuotas
request = Service -> ListServiceQuotas -> Request ListServiceQuotas
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListServiceQuotas
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListServiceQuotas)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListServiceQuotas))
-> Logger
-> Service
-> Proxy ListServiceQuotas
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListServiceQuotas)))
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 [ServiceQuota] -> Int -> ListServiceQuotasResponse
ListServiceQuotasResponse'
(Maybe Text
-> Maybe [ServiceQuota] -> Int -> ListServiceQuotasResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [ServiceQuota] -> Int -> ListServiceQuotasResponse)
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 (Maybe [ServiceQuota] -> Int -> ListServiceQuotasResponse)
-> Either String (Maybe [ServiceQuota])
-> Either String (Int -> ListServiceQuotasResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ServiceQuota]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Quotas" Either String (Maybe (Maybe [ServiceQuota]))
-> Maybe [ServiceQuota] -> Either String (Maybe [ServiceQuota])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ServiceQuota]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListServiceQuotasResponse)
-> Either String Int -> Either String ListServiceQuotasResponse
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 ListServiceQuotas
instance Prelude.NFData ListServiceQuotas
instance Core.ToHeaders ListServiceQuotas where
toHeaders :: ListServiceQuotas -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListServiceQuotas -> 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
"ServiceQuotasV20190624.ListServiceQuotas" ::
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 ListServiceQuotas where
toJSON :: ListServiceQuotas -> Value
toJSON ListServiceQuotas' {Maybe Natural
Maybe Text
Text
serviceCode :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:serviceCode:ListServiceQuotas' :: ListServiceQuotas -> Text
$sel:maxResults:ListServiceQuotas' :: ListServiceQuotas -> Maybe Natural
$sel:nextToken:ListServiceQuotas' :: ListServiceQuotas -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"MaxResults" 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
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ServiceCode" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
serviceCode)
]
)
instance Core.ToPath ListServiceQuotas where
toPath :: ListServiceQuotas -> ByteString
toPath = ByteString -> ListServiceQuotas -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListServiceQuotas where
toQuery :: ListServiceQuotas -> QueryString
toQuery = QueryString -> ListServiceQuotas -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListServiceQuotasResponse = ListServiceQuotasResponse'
{
ListServiceQuotasResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListServiceQuotasResponse -> Maybe [ServiceQuota]
quotas :: Prelude.Maybe [ServiceQuota],
ListServiceQuotasResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListServiceQuotasResponse -> ListServiceQuotasResponse -> Bool
(ListServiceQuotasResponse -> ListServiceQuotasResponse -> Bool)
-> (ListServiceQuotasResponse -> ListServiceQuotasResponse -> Bool)
-> Eq ListServiceQuotasResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListServiceQuotasResponse -> ListServiceQuotasResponse -> Bool
$c/= :: ListServiceQuotasResponse -> ListServiceQuotasResponse -> Bool
== :: ListServiceQuotasResponse -> ListServiceQuotasResponse -> Bool
$c== :: ListServiceQuotasResponse -> ListServiceQuotasResponse -> Bool
Prelude.Eq, ReadPrec [ListServiceQuotasResponse]
ReadPrec ListServiceQuotasResponse
Int -> ReadS ListServiceQuotasResponse
ReadS [ListServiceQuotasResponse]
(Int -> ReadS ListServiceQuotasResponse)
-> ReadS [ListServiceQuotasResponse]
-> ReadPrec ListServiceQuotasResponse
-> ReadPrec [ListServiceQuotasResponse]
-> Read ListServiceQuotasResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListServiceQuotasResponse]
$creadListPrec :: ReadPrec [ListServiceQuotasResponse]
readPrec :: ReadPrec ListServiceQuotasResponse
$creadPrec :: ReadPrec ListServiceQuotasResponse
readList :: ReadS [ListServiceQuotasResponse]
$creadList :: ReadS [ListServiceQuotasResponse]
readsPrec :: Int -> ReadS ListServiceQuotasResponse
$creadsPrec :: Int -> ReadS ListServiceQuotasResponse
Prelude.Read, Int -> ListServiceQuotasResponse -> ShowS
[ListServiceQuotasResponse] -> ShowS
ListServiceQuotasResponse -> String
(Int -> ListServiceQuotasResponse -> ShowS)
-> (ListServiceQuotasResponse -> String)
-> ([ListServiceQuotasResponse] -> ShowS)
-> Show ListServiceQuotasResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListServiceQuotasResponse] -> ShowS
$cshowList :: [ListServiceQuotasResponse] -> ShowS
show :: ListServiceQuotasResponse -> String
$cshow :: ListServiceQuotasResponse -> String
showsPrec :: Int -> ListServiceQuotasResponse -> ShowS
$cshowsPrec :: Int -> ListServiceQuotasResponse -> ShowS
Prelude.Show, (forall x.
ListServiceQuotasResponse -> Rep ListServiceQuotasResponse x)
-> (forall x.
Rep ListServiceQuotasResponse x -> ListServiceQuotasResponse)
-> Generic ListServiceQuotasResponse
forall x.
Rep ListServiceQuotasResponse x -> ListServiceQuotasResponse
forall x.
ListServiceQuotasResponse -> Rep ListServiceQuotasResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListServiceQuotasResponse x -> ListServiceQuotasResponse
$cfrom :: forall x.
ListServiceQuotasResponse -> Rep ListServiceQuotasResponse x
Prelude.Generic)
newListServiceQuotasResponse ::
Prelude.Int ->
ListServiceQuotasResponse
newListServiceQuotasResponse :: Int -> ListServiceQuotasResponse
newListServiceQuotasResponse Int
pHttpStatus_ =
ListServiceQuotasResponse' :: Maybe Text
-> Maybe [ServiceQuota] -> Int -> ListServiceQuotasResponse
ListServiceQuotasResponse'
{ $sel:nextToken:ListServiceQuotasResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:quotas:ListServiceQuotasResponse' :: Maybe [ServiceQuota]
quotas = Maybe [ServiceQuota]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListServiceQuotasResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listServiceQuotasResponse_nextToken :: Lens.Lens' ListServiceQuotasResponse (Prelude.Maybe Prelude.Text)
listServiceQuotasResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListServiceQuotasResponse -> f ListServiceQuotasResponse
listServiceQuotasResponse_nextToken = (ListServiceQuotasResponse -> Maybe Text)
-> (ListServiceQuotasResponse
-> Maybe Text -> ListServiceQuotasResponse)
-> Lens' ListServiceQuotasResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceQuotasResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListServiceQuotasResponse' :: ListServiceQuotasResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListServiceQuotasResponse
s@ListServiceQuotasResponse' {} Maybe Text
a -> ListServiceQuotasResponse
s {$sel:nextToken:ListServiceQuotasResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListServiceQuotasResponse)
listServiceQuotasResponse_quotas :: Lens.Lens' ListServiceQuotasResponse (Prelude.Maybe [ServiceQuota])
listServiceQuotasResponse_quotas :: (Maybe [ServiceQuota] -> f (Maybe [ServiceQuota]))
-> ListServiceQuotasResponse -> f ListServiceQuotasResponse
listServiceQuotasResponse_quotas = (ListServiceQuotasResponse -> Maybe [ServiceQuota])
-> (ListServiceQuotasResponse
-> Maybe [ServiceQuota] -> ListServiceQuotasResponse)
-> Lens' ListServiceQuotasResponse (Maybe [ServiceQuota])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceQuotasResponse' {Maybe [ServiceQuota]
quotas :: Maybe [ServiceQuota]
$sel:quotas:ListServiceQuotasResponse' :: ListServiceQuotasResponse -> Maybe [ServiceQuota]
quotas} -> Maybe [ServiceQuota]
quotas) (\s :: ListServiceQuotasResponse
s@ListServiceQuotasResponse' {} Maybe [ServiceQuota]
a -> ListServiceQuotasResponse
s {$sel:quotas:ListServiceQuotasResponse' :: Maybe [ServiceQuota]
quotas = Maybe [ServiceQuota]
a} :: ListServiceQuotasResponse) ((Maybe [ServiceQuota] -> f (Maybe [ServiceQuota]))
-> ListServiceQuotasResponse -> f ListServiceQuotasResponse)
-> ((Maybe [ServiceQuota] -> f (Maybe [ServiceQuota]))
-> Maybe [ServiceQuota] -> f (Maybe [ServiceQuota]))
-> (Maybe [ServiceQuota] -> f (Maybe [ServiceQuota]))
-> ListServiceQuotasResponse
-> f ListServiceQuotasResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ServiceQuota] [ServiceQuota] [ServiceQuota] [ServiceQuota]
-> Iso
(Maybe [ServiceQuota])
(Maybe [ServiceQuota])
(Maybe [ServiceQuota])
(Maybe [ServiceQuota])
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 [ServiceQuota] [ServiceQuota] [ServiceQuota] [ServiceQuota]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listServiceQuotasResponse_httpStatus :: Lens.Lens' ListServiceQuotasResponse Prelude.Int
listServiceQuotasResponse_httpStatus :: (Int -> f Int)
-> ListServiceQuotasResponse -> f ListServiceQuotasResponse
listServiceQuotasResponse_httpStatus = (ListServiceQuotasResponse -> Int)
-> (ListServiceQuotasResponse -> Int -> ListServiceQuotasResponse)
-> Lens ListServiceQuotasResponse ListServiceQuotasResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceQuotasResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListServiceQuotasResponse' :: ListServiceQuotasResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListServiceQuotasResponse
s@ListServiceQuotasResponse' {} Int
a -> ListServiceQuotasResponse
s {$sel:httpStatus:ListServiceQuotasResponse' :: Int
httpStatus = Int
a} :: ListServiceQuotasResponse)
instance Prelude.NFData ListServiceQuotasResponse