{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ServiceQuotas.RequestServiceQuotaIncrease
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Submits a quota increase request for the specified quota.
module Amazonka.ServiceQuotas.RequestServiceQuotaIncrease
  ( -- * Creating a Request
    RequestServiceQuotaIncrease (..),
    newRequestServiceQuotaIncrease,

    -- * Request Lenses
    requestServiceQuotaIncrease_serviceCode,
    requestServiceQuotaIncrease_quotaCode,
    requestServiceQuotaIncrease_desiredValue,

    -- * Destructuring the Response
    RequestServiceQuotaIncreaseResponse (..),
    newRequestServiceQuotaIncreaseResponse,

    -- * Response Lenses
    requestServiceQuotaIncreaseResponse_requestedQuota,
    requestServiceQuotaIncreaseResponse_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

-- | /See:/ 'newRequestServiceQuotaIncrease' smart constructor.
data RequestServiceQuotaIncrease = RequestServiceQuotaIncrease'
  { -- | The service identifier.
    RequestServiceQuotaIncrease -> Text
serviceCode :: Prelude.Text,
    -- | The quota identifier.
    RequestServiceQuotaIncrease -> Text
quotaCode :: Prelude.Text,
    -- | The new, increased value for the quota.
    RequestServiceQuotaIncrease -> Double
desiredValue :: Prelude.Double
  }
  deriving (RequestServiceQuotaIncrease -> RequestServiceQuotaIncrease -> Bool
(RequestServiceQuotaIncrease
 -> RequestServiceQuotaIncrease -> Bool)
-> (RequestServiceQuotaIncrease
    -> RequestServiceQuotaIncrease -> Bool)
-> Eq RequestServiceQuotaIncrease
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RequestServiceQuotaIncrease -> RequestServiceQuotaIncrease -> Bool
$c/= :: RequestServiceQuotaIncrease -> RequestServiceQuotaIncrease -> Bool
== :: RequestServiceQuotaIncrease -> RequestServiceQuotaIncrease -> Bool
$c== :: RequestServiceQuotaIncrease -> RequestServiceQuotaIncrease -> Bool
Prelude.Eq, ReadPrec [RequestServiceQuotaIncrease]
ReadPrec RequestServiceQuotaIncrease
Int -> ReadS RequestServiceQuotaIncrease
ReadS [RequestServiceQuotaIncrease]
(Int -> ReadS RequestServiceQuotaIncrease)
-> ReadS [RequestServiceQuotaIncrease]
-> ReadPrec RequestServiceQuotaIncrease
-> ReadPrec [RequestServiceQuotaIncrease]
-> Read RequestServiceQuotaIncrease
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RequestServiceQuotaIncrease]
$creadListPrec :: ReadPrec [RequestServiceQuotaIncrease]
readPrec :: ReadPrec RequestServiceQuotaIncrease
$creadPrec :: ReadPrec RequestServiceQuotaIncrease
readList :: ReadS [RequestServiceQuotaIncrease]
$creadList :: ReadS [RequestServiceQuotaIncrease]
readsPrec :: Int -> ReadS RequestServiceQuotaIncrease
$creadsPrec :: Int -> ReadS RequestServiceQuotaIncrease
Prelude.Read, Int -> RequestServiceQuotaIncrease -> ShowS
[RequestServiceQuotaIncrease] -> ShowS
RequestServiceQuotaIncrease -> String
(Int -> RequestServiceQuotaIncrease -> ShowS)
-> (RequestServiceQuotaIncrease -> String)
-> ([RequestServiceQuotaIncrease] -> ShowS)
-> Show RequestServiceQuotaIncrease
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RequestServiceQuotaIncrease] -> ShowS
$cshowList :: [RequestServiceQuotaIncrease] -> ShowS
show :: RequestServiceQuotaIncrease -> String
$cshow :: RequestServiceQuotaIncrease -> String
showsPrec :: Int -> RequestServiceQuotaIncrease -> ShowS
$cshowsPrec :: Int -> RequestServiceQuotaIncrease -> ShowS
Prelude.Show, (forall x.
 RequestServiceQuotaIncrease -> Rep RequestServiceQuotaIncrease x)
-> (forall x.
    Rep RequestServiceQuotaIncrease x -> RequestServiceQuotaIncrease)
-> Generic RequestServiceQuotaIncrease
forall x.
Rep RequestServiceQuotaIncrease x -> RequestServiceQuotaIncrease
forall x.
RequestServiceQuotaIncrease -> Rep RequestServiceQuotaIncrease x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RequestServiceQuotaIncrease x -> RequestServiceQuotaIncrease
$cfrom :: forall x.
RequestServiceQuotaIncrease -> Rep RequestServiceQuotaIncrease x
Prelude.Generic)

-- |
-- Create a value of 'RequestServiceQuotaIncrease' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'serviceCode', 'requestServiceQuotaIncrease_serviceCode' - The service identifier.
--
-- 'quotaCode', 'requestServiceQuotaIncrease_quotaCode' - The quota identifier.
--
-- 'desiredValue', 'requestServiceQuotaIncrease_desiredValue' - The new, increased value for the quota.
newRequestServiceQuotaIncrease ::
  -- | 'serviceCode'
  Prelude.Text ->
  -- | 'quotaCode'
  Prelude.Text ->
  -- | 'desiredValue'
  Prelude.Double ->
  RequestServiceQuotaIncrease
newRequestServiceQuotaIncrease :: Text -> Text -> Double -> RequestServiceQuotaIncrease
newRequestServiceQuotaIncrease
  Text
pServiceCode_
  Text
pQuotaCode_
  Double
pDesiredValue_ =
    RequestServiceQuotaIncrease' :: Text -> Text -> Double -> RequestServiceQuotaIncrease
RequestServiceQuotaIncrease'
      { $sel:serviceCode:RequestServiceQuotaIncrease' :: Text
serviceCode =
          Text
pServiceCode_,
        $sel:quotaCode:RequestServiceQuotaIncrease' :: Text
quotaCode = Text
pQuotaCode_,
        $sel:desiredValue:RequestServiceQuotaIncrease' :: Double
desiredValue = Double
pDesiredValue_
      }

-- | The service identifier.
requestServiceQuotaIncrease_serviceCode :: Lens.Lens' RequestServiceQuotaIncrease Prelude.Text
requestServiceQuotaIncrease_serviceCode :: (Text -> f Text)
-> RequestServiceQuotaIncrease -> f RequestServiceQuotaIncrease
requestServiceQuotaIncrease_serviceCode = (RequestServiceQuotaIncrease -> Text)
-> (RequestServiceQuotaIncrease
    -> Text -> RequestServiceQuotaIncrease)
-> Lens
     RequestServiceQuotaIncrease RequestServiceQuotaIncrease Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestServiceQuotaIncrease' {Text
serviceCode :: Text
$sel:serviceCode:RequestServiceQuotaIncrease' :: RequestServiceQuotaIncrease -> Text
serviceCode} -> Text
serviceCode) (\s :: RequestServiceQuotaIncrease
s@RequestServiceQuotaIncrease' {} Text
a -> RequestServiceQuotaIncrease
s {$sel:serviceCode:RequestServiceQuotaIncrease' :: Text
serviceCode = Text
a} :: RequestServiceQuotaIncrease)

-- | The quota identifier.
requestServiceQuotaIncrease_quotaCode :: Lens.Lens' RequestServiceQuotaIncrease Prelude.Text
requestServiceQuotaIncrease_quotaCode :: (Text -> f Text)
-> RequestServiceQuotaIncrease -> f RequestServiceQuotaIncrease
requestServiceQuotaIncrease_quotaCode = (RequestServiceQuotaIncrease -> Text)
-> (RequestServiceQuotaIncrease
    -> Text -> RequestServiceQuotaIncrease)
-> Lens
     RequestServiceQuotaIncrease RequestServiceQuotaIncrease Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestServiceQuotaIncrease' {Text
quotaCode :: Text
$sel:quotaCode:RequestServiceQuotaIncrease' :: RequestServiceQuotaIncrease -> Text
quotaCode} -> Text
quotaCode) (\s :: RequestServiceQuotaIncrease
s@RequestServiceQuotaIncrease' {} Text
a -> RequestServiceQuotaIncrease
s {$sel:quotaCode:RequestServiceQuotaIncrease' :: Text
quotaCode = Text
a} :: RequestServiceQuotaIncrease)

-- | The new, increased value for the quota.
requestServiceQuotaIncrease_desiredValue :: Lens.Lens' RequestServiceQuotaIncrease Prelude.Double
requestServiceQuotaIncrease_desiredValue :: (Double -> f Double)
-> RequestServiceQuotaIncrease -> f RequestServiceQuotaIncrease
requestServiceQuotaIncrease_desiredValue = (RequestServiceQuotaIncrease -> Double)
-> (RequestServiceQuotaIncrease
    -> Double -> RequestServiceQuotaIncrease)
-> Lens
     RequestServiceQuotaIncrease
     RequestServiceQuotaIncrease
     Double
     Double
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestServiceQuotaIncrease' {Double
desiredValue :: Double
$sel:desiredValue:RequestServiceQuotaIncrease' :: RequestServiceQuotaIncrease -> Double
desiredValue} -> Double
desiredValue) (\s :: RequestServiceQuotaIncrease
s@RequestServiceQuotaIncrease' {} Double
a -> RequestServiceQuotaIncrease
s {$sel:desiredValue:RequestServiceQuotaIncrease' :: Double
desiredValue = Double
a} :: RequestServiceQuotaIncrease)

instance Core.AWSRequest RequestServiceQuotaIncrease where
  type
    AWSResponse RequestServiceQuotaIncrease =
      RequestServiceQuotaIncreaseResponse
  request :: RequestServiceQuotaIncrease -> Request RequestServiceQuotaIncrease
request = Service
-> RequestServiceQuotaIncrease
-> Request RequestServiceQuotaIncrease
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy RequestServiceQuotaIncrease
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RequestServiceQuotaIncrease)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse RequestServiceQuotaIncrease))
-> Logger
-> Service
-> Proxy RequestServiceQuotaIncrease
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RequestServiceQuotaIncrease)))
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 RequestedServiceQuotaChange
-> Int -> RequestServiceQuotaIncreaseResponse
RequestServiceQuotaIncreaseResponse'
            (Maybe RequestedServiceQuotaChange
 -> Int -> RequestServiceQuotaIncreaseResponse)
-> Either String (Maybe RequestedServiceQuotaChange)
-> Either String (Int -> RequestServiceQuotaIncreaseResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RequestedServiceQuotaChange)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RequestedQuota")
            Either String (Int -> RequestServiceQuotaIncreaseResponse)
-> Either String Int
-> Either String RequestServiceQuotaIncreaseResponse
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 RequestServiceQuotaIncrease

instance Prelude.NFData RequestServiceQuotaIncrease

instance Core.ToHeaders RequestServiceQuotaIncrease where
  toHeaders :: RequestServiceQuotaIncrease -> ResponseHeaders
toHeaders =
    ResponseHeaders -> RequestServiceQuotaIncrease -> 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.RequestServiceQuotaIncrease" ::
                          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 RequestServiceQuotaIncrease where
  toJSON :: RequestServiceQuotaIncrease -> Value
toJSON RequestServiceQuotaIncrease' {Double
Text
desiredValue :: Double
quotaCode :: Text
serviceCode :: Text
$sel:desiredValue:RequestServiceQuotaIncrease' :: RequestServiceQuotaIncrease -> Double
$sel:quotaCode:RequestServiceQuotaIncrease' :: RequestServiceQuotaIncrease -> Text
$sel:serviceCode:RequestServiceQuotaIncrease' :: RequestServiceQuotaIncrease -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ 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),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"QuotaCode" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
quotaCode),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DesiredValue" Text -> Double -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Double
desiredValue)
          ]
      )

instance Core.ToPath RequestServiceQuotaIncrease where
  toPath :: RequestServiceQuotaIncrease -> ByteString
toPath = ByteString -> RequestServiceQuotaIncrease -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery RequestServiceQuotaIncrease where
  toQuery :: RequestServiceQuotaIncrease -> QueryString
toQuery = QueryString -> RequestServiceQuotaIncrease -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newRequestServiceQuotaIncreaseResponse' smart constructor.
data RequestServiceQuotaIncreaseResponse = RequestServiceQuotaIncreaseResponse'
  { -- | Information about the quota increase request.
    RequestServiceQuotaIncreaseResponse
-> Maybe RequestedServiceQuotaChange
requestedQuota :: Prelude.Maybe RequestedServiceQuotaChange,
    -- | The response's http status code.
    RequestServiceQuotaIncreaseResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (RequestServiceQuotaIncreaseResponse
-> RequestServiceQuotaIncreaseResponse -> Bool
(RequestServiceQuotaIncreaseResponse
 -> RequestServiceQuotaIncreaseResponse -> Bool)
-> (RequestServiceQuotaIncreaseResponse
    -> RequestServiceQuotaIncreaseResponse -> Bool)
-> Eq RequestServiceQuotaIncreaseResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RequestServiceQuotaIncreaseResponse
-> RequestServiceQuotaIncreaseResponse -> Bool
$c/= :: RequestServiceQuotaIncreaseResponse
-> RequestServiceQuotaIncreaseResponse -> Bool
== :: RequestServiceQuotaIncreaseResponse
-> RequestServiceQuotaIncreaseResponse -> Bool
$c== :: RequestServiceQuotaIncreaseResponse
-> RequestServiceQuotaIncreaseResponse -> Bool
Prelude.Eq, ReadPrec [RequestServiceQuotaIncreaseResponse]
ReadPrec RequestServiceQuotaIncreaseResponse
Int -> ReadS RequestServiceQuotaIncreaseResponse
ReadS [RequestServiceQuotaIncreaseResponse]
(Int -> ReadS RequestServiceQuotaIncreaseResponse)
-> ReadS [RequestServiceQuotaIncreaseResponse]
-> ReadPrec RequestServiceQuotaIncreaseResponse
-> ReadPrec [RequestServiceQuotaIncreaseResponse]
-> Read RequestServiceQuotaIncreaseResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RequestServiceQuotaIncreaseResponse]
$creadListPrec :: ReadPrec [RequestServiceQuotaIncreaseResponse]
readPrec :: ReadPrec RequestServiceQuotaIncreaseResponse
$creadPrec :: ReadPrec RequestServiceQuotaIncreaseResponse
readList :: ReadS [RequestServiceQuotaIncreaseResponse]
$creadList :: ReadS [RequestServiceQuotaIncreaseResponse]
readsPrec :: Int -> ReadS RequestServiceQuotaIncreaseResponse
$creadsPrec :: Int -> ReadS RequestServiceQuotaIncreaseResponse
Prelude.Read, Int -> RequestServiceQuotaIncreaseResponse -> ShowS
[RequestServiceQuotaIncreaseResponse] -> ShowS
RequestServiceQuotaIncreaseResponse -> String
(Int -> RequestServiceQuotaIncreaseResponse -> ShowS)
-> (RequestServiceQuotaIncreaseResponse -> String)
-> ([RequestServiceQuotaIncreaseResponse] -> ShowS)
-> Show RequestServiceQuotaIncreaseResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RequestServiceQuotaIncreaseResponse] -> ShowS
$cshowList :: [RequestServiceQuotaIncreaseResponse] -> ShowS
show :: RequestServiceQuotaIncreaseResponse -> String
$cshow :: RequestServiceQuotaIncreaseResponse -> String
showsPrec :: Int -> RequestServiceQuotaIncreaseResponse -> ShowS
$cshowsPrec :: Int -> RequestServiceQuotaIncreaseResponse -> ShowS
Prelude.Show, (forall x.
 RequestServiceQuotaIncreaseResponse
 -> Rep RequestServiceQuotaIncreaseResponse x)
-> (forall x.
    Rep RequestServiceQuotaIncreaseResponse x
    -> RequestServiceQuotaIncreaseResponse)
-> Generic RequestServiceQuotaIncreaseResponse
forall x.
Rep RequestServiceQuotaIncreaseResponse x
-> RequestServiceQuotaIncreaseResponse
forall x.
RequestServiceQuotaIncreaseResponse
-> Rep RequestServiceQuotaIncreaseResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RequestServiceQuotaIncreaseResponse x
-> RequestServiceQuotaIncreaseResponse
$cfrom :: forall x.
RequestServiceQuotaIncreaseResponse
-> Rep RequestServiceQuotaIncreaseResponse x
Prelude.Generic)

-- |
-- Create a value of 'RequestServiceQuotaIncreaseResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'requestedQuota', 'requestServiceQuotaIncreaseResponse_requestedQuota' - Information about the quota increase request.
--
-- 'httpStatus', 'requestServiceQuotaIncreaseResponse_httpStatus' - The response's http status code.
newRequestServiceQuotaIncreaseResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RequestServiceQuotaIncreaseResponse
newRequestServiceQuotaIncreaseResponse :: Int -> RequestServiceQuotaIncreaseResponse
newRequestServiceQuotaIncreaseResponse Int
pHttpStatus_ =
  RequestServiceQuotaIncreaseResponse' :: Maybe RequestedServiceQuotaChange
-> Int -> RequestServiceQuotaIncreaseResponse
RequestServiceQuotaIncreaseResponse'
    { $sel:requestedQuota:RequestServiceQuotaIncreaseResponse' :: Maybe RequestedServiceQuotaChange
requestedQuota =
        Maybe RequestedServiceQuotaChange
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:RequestServiceQuotaIncreaseResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the quota increase request.
requestServiceQuotaIncreaseResponse_requestedQuota :: Lens.Lens' RequestServiceQuotaIncreaseResponse (Prelude.Maybe RequestedServiceQuotaChange)
requestServiceQuotaIncreaseResponse_requestedQuota :: (Maybe RequestedServiceQuotaChange
 -> f (Maybe RequestedServiceQuotaChange))
-> RequestServiceQuotaIncreaseResponse
-> f RequestServiceQuotaIncreaseResponse
requestServiceQuotaIncreaseResponse_requestedQuota = (RequestServiceQuotaIncreaseResponse
 -> Maybe RequestedServiceQuotaChange)
-> (RequestServiceQuotaIncreaseResponse
    -> Maybe RequestedServiceQuotaChange
    -> RequestServiceQuotaIncreaseResponse)
-> Lens
     RequestServiceQuotaIncreaseResponse
     RequestServiceQuotaIncreaseResponse
     (Maybe RequestedServiceQuotaChange)
     (Maybe RequestedServiceQuotaChange)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestServiceQuotaIncreaseResponse' {Maybe RequestedServiceQuotaChange
requestedQuota :: Maybe RequestedServiceQuotaChange
$sel:requestedQuota:RequestServiceQuotaIncreaseResponse' :: RequestServiceQuotaIncreaseResponse
-> Maybe RequestedServiceQuotaChange
requestedQuota} -> Maybe RequestedServiceQuotaChange
requestedQuota) (\s :: RequestServiceQuotaIncreaseResponse
s@RequestServiceQuotaIncreaseResponse' {} Maybe RequestedServiceQuotaChange
a -> RequestServiceQuotaIncreaseResponse
s {$sel:requestedQuota:RequestServiceQuotaIncreaseResponse' :: Maybe RequestedServiceQuotaChange
requestedQuota = Maybe RequestedServiceQuotaChange
a} :: RequestServiceQuotaIncreaseResponse)

-- | The response's http status code.
requestServiceQuotaIncreaseResponse_httpStatus :: Lens.Lens' RequestServiceQuotaIncreaseResponse Prelude.Int
requestServiceQuotaIncreaseResponse_httpStatus :: (Int -> f Int)
-> RequestServiceQuotaIncreaseResponse
-> f RequestServiceQuotaIncreaseResponse
requestServiceQuotaIncreaseResponse_httpStatus = (RequestServiceQuotaIncreaseResponse -> Int)
-> (RequestServiceQuotaIncreaseResponse
    -> Int -> RequestServiceQuotaIncreaseResponse)
-> Lens
     RequestServiceQuotaIncreaseResponse
     RequestServiceQuotaIncreaseResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestServiceQuotaIncreaseResponse' {Int
httpStatus :: Int
$sel:httpStatus:RequestServiceQuotaIncreaseResponse' :: RequestServiceQuotaIncreaseResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RequestServiceQuotaIncreaseResponse
s@RequestServiceQuotaIncreaseResponse' {} Int
a -> RequestServiceQuotaIncreaseResponse
s {$sel:httpStatus:RequestServiceQuotaIncreaseResponse' :: Int
httpStatus = Int
a} :: RequestServiceQuotaIncreaseResponse)

instance
  Prelude.NFData
    RequestServiceQuotaIncreaseResponse