{-# 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.PutServiceQuotaIncreaseRequestIntoTemplate
-- 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)
--
-- Adds a quota increase request to your quota request template.
module Amazonka.ServiceQuotas.PutServiceQuotaIncreaseRequestIntoTemplate
  ( -- * Creating a Request
    PutServiceQuotaIncreaseRequestIntoTemplate (..),
    newPutServiceQuotaIncreaseRequestIntoTemplate,

    -- * Request Lenses
    putServiceQuotaIncreaseRequestIntoTemplate_quotaCode,
    putServiceQuotaIncreaseRequestIntoTemplate_serviceCode,
    putServiceQuotaIncreaseRequestIntoTemplate_awsRegion,
    putServiceQuotaIncreaseRequestIntoTemplate_desiredValue,

    -- * Destructuring the Response
    PutServiceQuotaIncreaseRequestIntoTemplateResponse (..),
    newPutServiceQuotaIncreaseRequestIntoTemplateResponse,

    -- * Response Lenses
    putServiceQuotaIncreaseRequestIntoTemplateResponse_serviceQuotaIncreaseRequestInTemplate,
    putServiceQuotaIncreaseRequestIntoTemplateResponse_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:/ 'newPutServiceQuotaIncreaseRequestIntoTemplate' smart constructor.
data PutServiceQuotaIncreaseRequestIntoTemplate = PutServiceQuotaIncreaseRequestIntoTemplate'
  { -- | The quota identifier.
    PutServiceQuotaIncreaseRequestIntoTemplate -> Text
quotaCode :: Prelude.Text,
    -- | The service identifier.
    PutServiceQuotaIncreaseRequestIntoTemplate -> Text
serviceCode :: Prelude.Text,
    -- | The AWS Region.
    PutServiceQuotaIncreaseRequestIntoTemplate -> Text
awsRegion :: Prelude.Text,
    -- | The new, increased value for the quota.
    PutServiceQuotaIncreaseRequestIntoTemplate -> Double
desiredValue :: Prelude.Double
  }
  deriving (PutServiceQuotaIncreaseRequestIntoTemplate
-> PutServiceQuotaIncreaseRequestIntoTemplate -> Bool
(PutServiceQuotaIncreaseRequestIntoTemplate
 -> PutServiceQuotaIncreaseRequestIntoTemplate -> Bool)
-> (PutServiceQuotaIncreaseRequestIntoTemplate
    -> PutServiceQuotaIncreaseRequestIntoTemplate -> Bool)
-> Eq PutServiceQuotaIncreaseRequestIntoTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutServiceQuotaIncreaseRequestIntoTemplate
-> PutServiceQuotaIncreaseRequestIntoTemplate -> Bool
$c/= :: PutServiceQuotaIncreaseRequestIntoTemplate
-> PutServiceQuotaIncreaseRequestIntoTemplate -> Bool
== :: PutServiceQuotaIncreaseRequestIntoTemplate
-> PutServiceQuotaIncreaseRequestIntoTemplate -> Bool
$c== :: PutServiceQuotaIncreaseRequestIntoTemplate
-> PutServiceQuotaIncreaseRequestIntoTemplate -> Bool
Prelude.Eq, ReadPrec [PutServiceQuotaIncreaseRequestIntoTemplate]
ReadPrec PutServiceQuotaIncreaseRequestIntoTemplate
Int -> ReadS PutServiceQuotaIncreaseRequestIntoTemplate
ReadS [PutServiceQuotaIncreaseRequestIntoTemplate]
(Int -> ReadS PutServiceQuotaIncreaseRequestIntoTemplate)
-> ReadS [PutServiceQuotaIncreaseRequestIntoTemplate]
-> ReadPrec PutServiceQuotaIncreaseRequestIntoTemplate
-> ReadPrec [PutServiceQuotaIncreaseRequestIntoTemplate]
-> Read PutServiceQuotaIncreaseRequestIntoTemplate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutServiceQuotaIncreaseRequestIntoTemplate]
$creadListPrec :: ReadPrec [PutServiceQuotaIncreaseRequestIntoTemplate]
readPrec :: ReadPrec PutServiceQuotaIncreaseRequestIntoTemplate
$creadPrec :: ReadPrec PutServiceQuotaIncreaseRequestIntoTemplate
readList :: ReadS [PutServiceQuotaIncreaseRequestIntoTemplate]
$creadList :: ReadS [PutServiceQuotaIncreaseRequestIntoTemplate]
readsPrec :: Int -> ReadS PutServiceQuotaIncreaseRequestIntoTemplate
$creadsPrec :: Int -> ReadS PutServiceQuotaIncreaseRequestIntoTemplate
Prelude.Read, Int -> PutServiceQuotaIncreaseRequestIntoTemplate -> ShowS
[PutServiceQuotaIncreaseRequestIntoTemplate] -> ShowS
PutServiceQuotaIncreaseRequestIntoTemplate -> String
(Int -> PutServiceQuotaIncreaseRequestIntoTemplate -> ShowS)
-> (PutServiceQuotaIncreaseRequestIntoTemplate -> String)
-> ([PutServiceQuotaIncreaseRequestIntoTemplate] -> ShowS)
-> Show PutServiceQuotaIncreaseRequestIntoTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutServiceQuotaIncreaseRequestIntoTemplate] -> ShowS
$cshowList :: [PutServiceQuotaIncreaseRequestIntoTemplate] -> ShowS
show :: PutServiceQuotaIncreaseRequestIntoTemplate -> String
$cshow :: PutServiceQuotaIncreaseRequestIntoTemplate -> String
showsPrec :: Int -> PutServiceQuotaIncreaseRequestIntoTemplate -> ShowS
$cshowsPrec :: Int -> PutServiceQuotaIncreaseRequestIntoTemplate -> ShowS
Prelude.Show, (forall x.
 PutServiceQuotaIncreaseRequestIntoTemplate
 -> Rep PutServiceQuotaIncreaseRequestIntoTemplate x)
-> (forall x.
    Rep PutServiceQuotaIncreaseRequestIntoTemplate x
    -> PutServiceQuotaIncreaseRequestIntoTemplate)
-> Generic PutServiceQuotaIncreaseRequestIntoTemplate
forall x.
Rep PutServiceQuotaIncreaseRequestIntoTemplate x
-> PutServiceQuotaIncreaseRequestIntoTemplate
forall x.
PutServiceQuotaIncreaseRequestIntoTemplate
-> Rep PutServiceQuotaIncreaseRequestIntoTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutServiceQuotaIncreaseRequestIntoTemplate x
-> PutServiceQuotaIncreaseRequestIntoTemplate
$cfrom :: forall x.
PutServiceQuotaIncreaseRequestIntoTemplate
-> Rep PutServiceQuotaIncreaseRequestIntoTemplate x
Prelude.Generic)

-- |
-- Create a value of 'PutServiceQuotaIncreaseRequestIntoTemplate' 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:
--
-- 'quotaCode', 'putServiceQuotaIncreaseRequestIntoTemplate_quotaCode' - The quota identifier.
--
-- 'serviceCode', 'putServiceQuotaIncreaseRequestIntoTemplate_serviceCode' - The service identifier.
--
-- 'awsRegion', 'putServiceQuotaIncreaseRequestIntoTemplate_awsRegion' - The AWS Region.
--
-- 'desiredValue', 'putServiceQuotaIncreaseRequestIntoTemplate_desiredValue' - The new, increased value for the quota.
newPutServiceQuotaIncreaseRequestIntoTemplate ::
  -- | 'quotaCode'
  Prelude.Text ->
  -- | 'serviceCode'
  Prelude.Text ->
  -- | 'awsRegion'
  Prelude.Text ->
  -- | 'desiredValue'
  Prelude.Double ->
  PutServiceQuotaIncreaseRequestIntoTemplate
newPutServiceQuotaIncreaseRequestIntoTemplate :: Text
-> Text
-> Text
-> Double
-> PutServiceQuotaIncreaseRequestIntoTemplate
newPutServiceQuotaIncreaseRequestIntoTemplate
  Text
pQuotaCode_
  Text
pServiceCode_
  Text
pAwsRegion_
  Double
pDesiredValue_ =
    PutServiceQuotaIncreaseRequestIntoTemplate' :: Text
-> Text
-> Text
-> Double
-> PutServiceQuotaIncreaseRequestIntoTemplate
PutServiceQuotaIncreaseRequestIntoTemplate'
      { $sel:quotaCode:PutServiceQuotaIncreaseRequestIntoTemplate' :: Text
quotaCode =
          Text
pQuotaCode_,
        $sel:serviceCode:PutServiceQuotaIncreaseRequestIntoTemplate' :: Text
serviceCode = Text
pServiceCode_,
        $sel:awsRegion:PutServiceQuotaIncreaseRequestIntoTemplate' :: Text
awsRegion = Text
pAwsRegion_,
        $sel:desiredValue:PutServiceQuotaIncreaseRequestIntoTemplate' :: Double
desiredValue = Double
pDesiredValue_
      }

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

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

-- | The AWS Region.
putServiceQuotaIncreaseRequestIntoTemplate_awsRegion :: Lens.Lens' PutServiceQuotaIncreaseRequestIntoTemplate Prelude.Text
putServiceQuotaIncreaseRequestIntoTemplate_awsRegion :: (Text -> f Text)
-> PutServiceQuotaIncreaseRequestIntoTemplate
-> f PutServiceQuotaIncreaseRequestIntoTemplate
putServiceQuotaIncreaseRequestIntoTemplate_awsRegion = (PutServiceQuotaIncreaseRequestIntoTemplate -> Text)
-> (PutServiceQuotaIncreaseRequestIntoTemplate
    -> Text -> PutServiceQuotaIncreaseRequestIntoTemplate)
-> Lens
     PutServiceQuotaIncreaseRequestIntoTemplate
     PutServiceQuotaIncreaseRequestIntoTemplate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutServiceQuotaIncreaseRequestIntoTemplate' {Text
awsRegion :: Text
$sel:awsRegion:PutServiceQuotaIncreaseRequestIntoTemplate' :: PutServiceQuotaIncreaseRequestIntoTemplate -> Text
awsRegion} -> Text
awsRegion) (\s :: PutServiceQuotaIncreaseRequestIntoTemplate
s@PutServiceQuotaIncreaseRequestIntoTemplate' {} Text
a -> PutServiceQuotaIncreaseRequestIntoTemplate
s {$sel:awsRegion:PutServiceQuotaIncreaseRequestIntoTemplate' :: Text
awsRegion = Text
a} :: PutServiceQuotaIncreaseRequestIntoTemplate)

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

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

instance
  Prelude.NFData
    PutServiceQuotaIncreaseRequestIntoTemplate

instance
  Core.ToHeaders
    PutServiceQuotaIncreaseRequestIntoTemplate
  where
  toHeaders :: PutServiceQuotaIncreaseRequestIntoTemplate -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> PutServiceQuotaIncreaseRequestIntoTemplate -> 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.PutServiceQuotaIncreaseRequestIntoTemplate" ::
                          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
    PutServiceQuotaIncreaseRequestIntoTemplate
  where
  toJSON :: PutServiceQuotaIncreaseRequestIntoTemplate -> Value
toJSON
    PutServiceQuotaIncreaseRequestIntoTemplate' {Double
Text
desiredValue :: Double
awsRegion :: Text
serviceCode :: Text
quotaCode :: Text
$sel:desiredValue:PutServiceQuotaIncreaseRequestIntoTemplate' :: PutServiceQuotaIncreaseRequestIntoTemplate -> Double
$sel:awsRegion:PutServiceQuotaIncreaseRequestIntoTemplate' :: PutServiceQuotaIncreaseRequestIntoTemplate -> Text
$sel:serviceCode:PutServiceQuotaIncreaseRequestIntoTemplate' :: PutServiceQuotaIncreaseRequestIntoTemplate -> Text
$sel:quotaCode:PutServiceQuotaIncreaseRequestIntoTemplate' :: PutServiceQuotaIncreaseRequestIntoTemplate -> 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
"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
"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
"AwsRegion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
awsRegion),
              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
    PutServiceQuotaIncreaseRequestIntoTemplate
  where
  toPath :: PutServiceQuotaIncreaseRequestIntoTemplate -> ByteString
toPath = ByteString
-> PutServiceQuotaIncreaseRequestIntoTemplate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

-- |
-- Create a value of 'PutServiceQuotaIncreaseRequestIntoTemplateResponse' 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:
--
-- 'serviceQuotaIncreaseRequestInTemplate', 'putServiceQuotaIncreaseRequestIntoTemplateResponse_serviceQuotaIncreaseRequestInTemplate' - Information about the quota increase request.
--
-- 'httpStatus', 'putServiceQuotaIncreaseRequestIntoTemplateResponse_httpStatus' - The response's http status code.
newPutServiceQuotaIncreaseRequestIntoTemplateResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutServiceQuotaIncreaseRequestIntoTemplateResponse
newPutServiceQuotaIncreaseRequestIntoTemplateResponse :: Int -> PutServiceQuotaIncreaseRequestIntoTemplateResponse
newPutServiceQuotaIncreaseRequestIntoTemplateResponse
  Int
pHttpStatus_ =
    PutServiceQuotaIncreaseRequestIntoTemplateResponse' :: Maybe ServiceQuotaIncreaseRequestInTemplate
-> Int -> PutServiceQuotaIncreaseRequestIntoTemplateResponse
PutServiceQuotaIncreaseRequestIntoTemplateResponse'
      { $sel:serviceQuotaIncreaseRequestInTemplate:PutServiceQuotaIncreaseRequestIntoTemplateResponse' :: Maybe ServiceQuotaIncreaseRequestInTemplate
serviceQuotaIncreaseRequestInTemplate =
          Maybe ServiceQuotaIncreaseRequestInTemplate
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:PutServiceQuotaIncreaseRequestIntoTemplateResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | Information about the quota increase request.
putServiceQuotaIncreaseRequestIntoTemplateResponse_serviceQuotaIncreaseRequestInTemplate :: Lens.Lens' PutServiceQuotaIncreaseRequestIntoTemplateResponse (Prelude.Maybe ServiceQuotaIncreaseRequestInTemplate)
putServiceQuotaIncreaseRequestIntoTemplateResponse_serviceQuotaIncreaseRequestInTemplate :: (Maybe ServiceQuotaIncreaseRequestInTemplate
 -> f (Maybe ServiceQuotaIncreaseRequestInTemplate))
-> PutServiceQuotaIncreaseRequestIntoTemplateResponse
-> f PutServiceQuotaIncreaseRequestIntoTemplateResponse
putServiceQuotaIncreaseRequestIntoTemplateResponse_serviceQuotaIncreaseRequestInTemplate = (PutServiceQuotaIncreaseRequestIntoTemplateResponse
 -> Maybe ServiceQuotaIncreaseRequestInTemplate)
-> (PutServiceQuotaIncreaseRequestIntoTemplateResponse
    -> Maybe ServiceQuotaIncreaseRequestInTemplate
    -> PutServiceQuotaIncreaseRequestIntoTemplateResponse)
-> Lens
     PutServiceQuotaIncreaseRequestIntoTemplateResponse
     PutServiceQuotaIncreaseRequestIntoTemplateResponse
     (Maybe ServiceQuotaIncreaseRequestInTemplate)
     (Maybe ServiceQuotaIncreaseRequestInTemplate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutServiceQuotaIncreaseRequestIntoTemplateResponse' {Maybe ServiceQuotaIncreaseRequestInTemplate
serviceQuotaIncreaseRequestInTemplate :: Maybe ServiceQuotaIncreaseRequestInTemplate
$sel:serviceQuotaIncreaseRequestInTemplate:PutServiceQuotaIncreaseRequestIntoTemplateResponse' :: PutServiceQuotaIncreaseRequestIntoTemplateResponse
-> Maybe ServiceQuotaIncreaseRequestInTemplate
serviceQuotaIncreaseRequestInTemplate} -> Maybe ServiceQuotaIncreaseRequestInTemplate
serviceQuotaIncreaseRequestInTemplate) (\s :: PutServiceQuotaIncreaseRequestIntoTemplateResponse
s@PutServiceQuotaIncreaseRequestIntoTemplateResponse' {} Maybe ServiceQuotaIncreaseRequestInTemplate
a -> PutServiceQuotaIncreaseRequestIntoTemplateResponse
s {$sel:serviceQuotaIncreaseRequestInTemplate:PutServiceQuotaIncreaseRequestIntoTemplateResponse' :: Maybe ServiceQuotaIncreaseRequestInTemplate
serviceQuotaIncreaseRequestInTemplate = Maybe ServiceQuotaIncreaseRequestInTemplate
a} :: PutServiceQuotaIncreaseRequestIntoTemplateResponse)

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

instance
  Prelude.NFData
    PutServiceQuotaIncreaseRequestIntoTemplateResponse