{-# 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.RDS.PurchaseReservedDBInstancesOffering
(
PurchaseReservedDBInstancesOffering (..),
newPurchaseReservedDBInstancesOffering,
purchaseReservedDBInstancesOffering_dbInstanceCount,
purchaseReservedDBInstancesOffering_reservedDBInstanceId,
purchaseReservedDBInstancesOffering_tags,
purchaseReservedDBInstancesOffering_reservedDBInstancesOfferingId,
PurchaseReservedDBInstancesOfferingResponse (..),
newPurchaseReservedDBInstancesOfferingResponse,
purchaseReservedDBInstancesOfferingResponse_reservedDBInstance,
purchaseReservedDBInstancesOfferingResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data PurchaseReservedDBInstancesOffering = PurchaseReservedDBInstancesOffering'
{
PurchaseReservedDBInstancesOffering -> Maybe Int
dbInstanceCount :: Prelude.Maybe Prelude.Int,
PurchaseReservedDBInstancesOffering -> Maybe Text
reservedDBInstanceId :: Prelude.Maybe Prelude.Text,
PurchaseReservedDBInstancesOffering -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
PurchaseReservedDBInstancesOffering -> Text
reservedDBInstancesOfferingId :: Prelude.Text
}
deriving (PurchaseReservedDBInstancesOffering
-> PurchaseReservedDBInstancesOffering -> Bool
(PurchaseReservedDBInstancesOffering
-> PurchaseReservedDBInstancesOffering -> Bool)
-> (PurchaseReservedDBInstancesOffering
-> PurchaseReservedDBInstancesOffering -> Bool)
-> Eq PurchaseReservedDBInstancesOffering
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PurchaseReservedDBInstancesOffering
-> PurchaseReservedDBInstancesOffering -> Bool
$c/= :: PurchaseReservedDBInstancesOffering
-> PurchaseReservedDBInstancesOffering -> Bool
== :: PurchaseReservedDBInstancesOffering
-> PurchaseReservedDBInstancesOffering -> Bool
$c== :: PurchaseReservedDBInstancesOffering
-> PurchaseReservedDBInstancesOffering -> Bool
Prelude.Eq, ReadPrec [PurchaseReservedDBInstancesOffering]
ReadPrec PurchaseReservedDBInstancesOffering
Int -> ReadS PurchaseReservedDBInstancesOffering
ReadS [PurchaseReservedDBInstancesOffering]
(Int -> ReadS PurchaseReservedDBInstancesOffering)
-> ReadS [PurchaseReservedDBInstancesOffering]
-> ReadPrec PurchaseReservedDBInstancesOffering
-> ReadPrec [PurchaseReservedDBInstancesOffering]
-> Read PurchaseReservedDBInstancesOffering
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PurchaseReservedDBInstancesOffering]
$creadListPrec :: ReadPrec [PurchaseReservedDBInstancesOffering]
readPrec :: ReadPrec PurchaseReservedDBInstancesOffering
$creadPrec :: ReadPrec PurchaseReservedDBInstancesOffering
readList :: ReadS [PurchaseReservedDBInstancesOffering]
$creadList :: ReadS [PurchaseReservedDBInstancesOffering]
readsPrec :: Int -> ReadS PurchaseReservedDBInstancesOffering
$creadsPrec :: Int -> ReadS PurchaseReservedDBInstancesOffering
Prelude.Read, Int -> PurchaseReservedDBInstancesOffering -> ShowS
[PurchaseReservedDBInstancesOffering] -> ShowS
PurchaseReservedDBInstancesOffering -> String
(Int -> PurchaseReservedDBInstancesOffering -> ShowS)
-> (PurchaseReservedDBInstancesOffering -> String)
-> ([PurchaseReservedDBInstancesOffering] -> ShowS)
-> Show PurchaseReservedDBInstancesOffering
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PurchaseReservedDBInstancesOffering] -> ShowS
$cshowList :: [PurchaseReservedDBInstancesOffering] -> ShowS
show :: PurchaseReservedDBInstancesOffering -> String
$cshow :: PurchaseReservedDBInstancesOffering -> String
showsPrec :: Int -> PurchaseReservedDBInstancesOffering -> ShowS
$cshowsPrec :: Int -> PurchaseReservedDBInstancesOffering -> ShowS
Prelude.Show, (forall x.
PurchaseReservedDBInstancesOffering
-> Rep PurchaseReservedDBInstancesOffering x)
-> (forall x.
Rep PurchaseReservedDBInstancesOffering x
-> PurchaseReservedDBInstancesOffering)
-> Generic PurchaseReservedDBInstancesOffering
forall x.
Rep PurchaseReservedDBInstancesOffering x
-> PurchaseReservedDBInstancesOffering
forall x.
PurchaseReservedDBInstancesOffering
-> Rep PurchaseReservedDBInstancesOffering x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PurchaseReservedDBInstancesOffering x
-> PurchaseReservedDBInstancesOffering
$cfrom :: forall x.
PurchaseReservedDBInstancesOffering
-> Rep PurchaseReservedDBInstancesOffering x
Prelude.Generic)
newPurchaseReservedDBInstancesOffering ::
Prelude.Text ->
PurchaseReservedDBInstancesOffering
newPurchaseReservedDBInstancesOffering :: Text -> PurchaseReservedDBInstancesOffering
newPurchaseReservedDBInstancesOffering
Text
pReservedDBInstancesOfferingId_ =
PurchaseReservedDBInstancesOffering' :: Maybe Int
-> Maybe Text
-> Maybe [Tag]
-> Text
-> PurchaseReservedDBInstancesOffering
PurchaseReservedDBInstancesOffering'
{ $sel:dbInstanceCount:PurchaseReservedDBInstancesOffering' :: Maybe Int
dbInstanceCount =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:reservedDBInstanceId:PurchaseReservedDBInstancesOffering' :: Maybe Text
reservedDBInstanceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:PurchaseReservedDBInstancesOffering' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:reservedDBInstancesOfferingId:PurchaseReservedDBInstancesOffering' :: Text
reservedDBInstancesOfferingId =
Text
pReservedDBInstancesOfferingId_
}
purchaseReservedDBInstancesOffering_dbInstanceCount :: Lens.Lens' PurchaseReservedDBInstancesOffering (Prelude.Maybe Prelude.Int)
purchaseReservedDBInstancesOffering_dbInstanceCount :: (Maybe Int -> f (Maybe Int))
-> PurchaseReservedDBInstancesOffering
-> f PurchaseReservedDBInstancesOffering
purchaseReservedDBInstancesOffering_dbInstanceCount = (PurchaseReservedDBInstancesOffering -> Maybe Int)
-> (PurchaseReservedDBInstancesOffering
-> Maybe Int -> PurchaseReservedDBInstancesOffering)
-> Lens
PurchaseReservedDBInstancesOffering
PurchaseReservedDBInstancesOffering
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedDBInstancesOffering' {Maybe Int
dbInstanceCount :: Maybe Int
$sel:dbInstanceCount:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Maybe Int
dbInstanceCount} -> Maybe Int
dbInstanceCount) (\s :: PurchaseReservedDBInstancesOffering
s@PurchaseReservedDBInstancesOffering' {} Maybe Int
a -> PurchaseReservedDBInstancesOffering
s {$sel:dbInstanceCount:PurchaseReservedDBInstancesOffering' :: Maybe Int
dbInstanceCount = Maybe Int
a} :: PurchaseReservedDBInstancesOffering)
purchaseReservedDBInstancesOffering_reservedDBInstanceId :: Lens.Lens' PurchaseReservedDBInstancesOffering (Prelude.Maybe Prelude.Text)
purchaseReservedDBInstancesOffering_reservedDBInstanceId :: (Maybe Text -> f (Maybe Text))
-> PurchaseReservedDBInstancesOffering
-> f PurchaseReservedDBInstancesOffering
purchaseReservedDBInstancesOffering_reservedDBInstanceId = (PurchaseReservedDBInstancesOffering -> Maybe Text)
-> (PurchaseReservedDBInstancesOffering
-> Maybe Text -> PurchaseReservedDBInstancesOffering)
-> Lens
PurchaseReservedDBInstancesOffering
PurchaseReservedDBInstancesOffering
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedDBInstancesOffering' {Maybe Text
reservedDBInstanceId :: Maybe Text
$sel:reservedDBInstanceId:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Maybe Text
reservedDBInstanceId} -> Maybe Text
reservedDBInstanceId) (\s :: PurchaseReservedDBInstancesOffering
s@PurchaseReservedDBInstancesOffering' {} Maybe Text
a -> PurchaseReservedDBInstancesOffering
s {$sel:reservedDBInstanceId:PurchaseReservedDBInstancesOffering' :: Maybe Text
reservedDBInstanceId = Maybe Text
a} :: PurchaseReservedDBInstancesOffering)
purchaseReservedDBInstancesOffering_tags :: Lens.Lens' PurchaseReservedDBInstancesOffering (Prelude.Maybe [Tag])
purchaseReservedDBInstancesOffering_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> PurchaseReservedDBInstancesOffering
-> f PurchaseReservedDBInstancesOffering
purchaseReservedDBInstancesOffering_tags = (PurchaseReservedDBInstancesOffering -> Maybe [Tag])
-> (PurchaseReservedDBInstancesOffering
-> Maybe [Tag] -> PurchaseReservedDBInstancesOffering)
-> Lens
PurchaseReservedDBInstancesOffering
PurchaseReservedDBInstancesOffering
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedDBInstancesOffering' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: PurchaseReservedDBInstancesOffering
s@PurchaseReservedDBInstancesOffering' {} Maybe [Tag]
a -> PurchaseReservedDBInstancesOffering
s {$sel:tags:PurchaseReservedDBInstancesOffering' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: PurchaseReservedDBInstancesOffering) ((Maybe [Tag] -> f (Maybe [Tag]))
-> PurchaseReservedDBInstancesOffering
-> f PurchaseReservedDBInstancesOffering)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> PurchaseReservedDBInstancesOffering
-> f PurchaseReservedDBInstancesOffering
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
purchaseReservedDBInstancesOffering_reservedDBInstancesOfferingId :: Lens.Lens' PurchaseReservedDBInstancesOffering Prelude.Text
purchaseReservedDBInstancesOffering_reservedDBInstancesOfferingId :: (Text -> f Text)
-> PurchaseReservedDBInstancesOffering
-> f PurchaseReservedDBInstancesOffering
purchaseReservedDBInstancesOffering_reservedDBInstancesOfferingId = (PurchaseReservedDBInstancesOffering -> Text)
-> (PurchaseReservedDBInstancesOffering
-> Text -> PurchaseReservedDBInstancesOffering)
-> Lens
PurchaseReservedDBInstancesOffering
PurchaseReservedDBInstancesOffering
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedDBInstancesOffering' {Text
reservedDBInstancesOfferingId :: Text
$sel:reservedDBInstancesOfferingId:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Text
reservedDBInstancesOfferingId} -> Text
reservedDBInstancesOfferingId) (\s :: PurchaseReservedDBInstancesOffering
s@PurchaseReservedDBInstancesOffering' {} Text
a -> PurchaseReservedDBInstancesOffering
s {$sel:reservedDBInstancesOfferingId:PurchaseReservedDBInstancesOffering' :: Text
reservedDBInstancesOfferingId = Text
a} :: PurchaseReservedDBInstancesOffering)
instance
Core.AWSRequest
PurchaseReservedDBInstancesOffering
where
type
AWSResponse PurchaseReservedDBInstancesOffering =
PurchaseReservedDBInstancesOfferingResponse
request :: PurchaseReservedDBInstancesOffering
-> Request PurchaseReservedDBInstancesOffering
request = Service
-> PurchaseReservedDBInstancesOffering
-> Request PurchaseReservedDBInstancesOffering
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy PurchaseReservedDBInstancesOffering
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse PurchaseReservedDBInstancesOffering)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse PurchaseReservedDBInstancesOffering))
-> Logger
-> Service
-> Proxy PurchaseReservedDBInstancesOffering
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse PurchaseReservedDBInstancesOffering)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"PurchaseReservedDBInstancesOfferingResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe ReservedDBInstance
-> Int -> PurchaseReservedDBInstancesOfferingResponse
PurchaseReservedDBInstancesOfferingResponse'
(Maybe ReservedDBInstance
-> Int -> PurchaseReservedDBInstancesOfferingResponse)
-> Either String (Maybe ReservedDBInstance)
-> Either
String (Int -> PurchaseReservedDBInstancesOfferingResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ReservedDBInstance)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ReservedDBInstance")
Either String (Int -> PurchaseReservedDBInstancesOfferingResponse)
-> Either String Int
-> Either String PurchaseReservedDBInstancesOfferingResponse
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
PurchaseReservedDBInstancesOffering
instance
Prelude.NFData
PurchaseReservedDBInstancesOffering
instance
Core.ToHeaders
PurchaseReservedDBInstancesOffering
where
toHeaders :: PurchaseReservedDBInstancesOffering -> ResponseHeaders
toHeaders = ResponseHeaders
-> PurchaseReservedDBInstancesOffering -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
PurchaseReservedDBInstancesOffering
where
toPath :: PurchaseReservedDBInstancesOffering -> ByteString
toPath = ByteString -> PurchaseReservedDBInstancesOffering -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
PurchaseReservedDBInstancesOffering
where
toQuery :: PurchaseReservedDBInstancesOffering -> QueryString
toQuery PurchaseReservedDBInstancesOffering' {Maybe Int
Maybe [Tag]
Maybe Text
Text
reservedDBInstancesOfferingId :: Text
tags :: Maybe [Tag]
reservedDBInstanceId :: Maybe Text
dbInstanceCount :: Maybe Int
$sel:reservedDBInstancesOfferingId:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Text
$sel:tags:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Maybe [Tag]
$sel:reservedDBInstanceId:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Maybe Text
$sel:dbInstanceCount:PurchaseReservedDBInstancesOffering' :: PurchaseReservedDBInstancesOffering -> Maybe Int
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"PurchaseReservedDBInstancesOffering" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"DBInstanceCount" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
dbInstanceCount,
ByteString
"ReservedDBInstanceId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
reservedDBInstanceId,
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Tag" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"ReservedDBInstancesOfferingId"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
reservedDBInstancesOfferingId
]
data PurchaseReservedDBInstancesOfferingResponse = PurchaseReservedDBInstancesOfferingResponse'
{ PurchaseReservedDBInstancesOfferingResponse
-> Maybe ReservedDBInstance
reservedDBInstance :: Prelude.Maybe ReservedDBInstance,
PurchaseReservedDBInstancesOfferingResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PurchaseReservedDBInstancesOfferingResponse
-> PurchaseReservedDBInstancesOfferingResponse -> Bool
(PurchaseReservedDBInstancesOfferingResponse
-> PurchaseReservedDBInstancesOfferingResponse -> Bool)
-> (PurchaseReservedDBInstancesOfferingResponse
-> PurchaseReservedDBInstancesOfferingResponse -> Bool)
-> Eq PurchaseReservedDBInstancesOfferingResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PurchaseReservedDBInstancesOfferingResponse
-> PurchaseReservedDBInstancesOfferingResponse -> Bool
$c/= :: PurchaseReservedDBInstancesOfferingResponse
-> PurchaseReservedDBInstancesOfferingResponse -> Bool
== :: PurchaseReservedDBInstancesOfferingResponse
-> PurchaseReservedDBInstancesOfferingResponse -> Bool
$c== :: PurchaseReservedDBInstancesOfferingResponse
-> PurchaseReservedDBInstancesOfferingResponse -> Bool
Prelude.Eq, ReadPrec [PurchaseReservedDBInstancesOfferingResponse]
ReadPrec PurchaseReservedDBInstancesOfferingResponse
Int -> ReadS PurchaseReservedDBInstancesOfferingResponse
ReadS [PurchaseReservedDBInstancesOfferingResponse]
(Int -> ReadS PurchaseReservedDBInstancesOfferingResponse)
-> ReadS [PurchaseReservedDBInstancesOfferingResponse]
-> ReadPrec PurchaseReservedDBInstancesOfferingResponse
-> ReadPrec [PurchaseReservedDBInstancesOfferingResponse]
-> Read PurchaseReservedDBInstancesOfferingResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PurchaseReservedDBInstancesOfferingResponse]
$creadListPrec :: ReadPrec [PurchaseReservedDBInstancesOfferingResponse]
readPrec :: ReadPrec PurchaseReservedDBInstancesOfferingResponse
$creadPrec :: ReadPrec PurchaseReservedDBInstancesOfferingResponse
readList :: ReadS [PurchaseReservedDBInstancesOfferingResponse]
$creadList :: ReadS [PurchaseReservedDBInstancesOfferingResponse]
readsPrec :: Int -> ReadS PurchaseReservedDBInstancesOfferingResponse
$creadsPrec :: Int -> ReadS PurchaseReservedDBInstancesOfferingResponse
Prelude.Read, Int -> PurchaseReservedDBInstancesOfferingResponse -> ShowS
[PurchaseReservedDBInstancesOfferingResponse] -> ShowS
PurchaseReservedDBInstancesOfferingResponse -> String
(Int -> PurchaseReservedDBInstancesOfferingResponse -> ShowS)
-> (PurchaseReservedDBInstancesOfferingResponse -> String)
-> ([PurchaseReservedDBInstancesOfferingResponse] -> ShowS)
-> Show PurchaseReservedDBInstancesOfferingResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PurchaseReservedDBInstancesOfferingResponse] -> ShowS
$cshowList :: [PurchaseReservedDBInstancesOfferingResponse] -> ShowS
show :: PurchaseReservedDBInstancesOfferingResponse -> String
$cshow :: PurchaseReservedDBInstancesOfferingResponse -> String
showsPrec :: Int -> PurchaseReservedDBInstancesOfferingResponse -> ShowS
$cshowsPrec :: Int -> PurchaseReservedDBInstancesOfferingResponse -> ShowS
Prelude.Show, (forall x.
PurchaseReservedDBInstancesOfferingResponse
-> Rep PurchaseReservedDBInstancesOfferingResponse x)
-> (forall x.
Rep PurchaseReservedDBInstancesOfferingResponse x
-> PurchaseReservedDBInstancesOfferingResponse)
-> Generic PurchaseReservedDBInstancesOfferingResponse
forall x.
Rep PurchaseReservedDBInstancesOfferingResponse x
-> PurchaseReservedDBInstancesOfferingResponse
forall x.
PurchaseReservedDBInstancesOfferingResponse
-> Rep PurchaseReservedDBInstancesOfferingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PurchaseReservedDBInstancesOfferingResponse x
-> PurchaseReservedDBInstancesOfferingResponse
$cfrom :: forall x.
PurchaseReservedDBInstancesOfferingResponse
-> Rep PurchaseReservedDBInstancesOfferingResponse x
Prelude.Generic)
newPurchaseReservedDBInstancesOfferingResponse ::
Prelude.Int ->
PurchaseReservedDBInstancesOfferingResponse
newPurchaseReservedDBInstancesOfferingResponse :: Int -> PurchaseReservedDBInstancesOfferingResponse
newPurchaseReservedDBInstancesOfferingResponse
Int
pHttpStatus_ =
PurchaseReservedDBInstancesOfferingResponse' :: Maybe ReservedDBInstance
-> Int -> PurchaseReservedDBInstancesOfferingResponse
PurchaseReservedDBInstancesOfferingResponse'
{ $sel:reservedDBInstance:PurchaseReservedDBInstancesOfferingResponse' :: Maybe ReservedDBInstance
reservedDBInstance =
Maybe ReservedDBInstance
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PurchaseReservedDBInstancesOfferingResponse' :: Int
httpStatus = Int
pHttpStatus_
}
purchaseReservedDBInstancesOfferingResponse_reservedDBInstance :: Lens.Lens' PurchaseReservedDBInstancesOfferingResponse (Prelude.Maybe ReservedDBInstance)
purchaseReservedDBInstancesOfferingResponse_reservedDBInstance :: (Maybe ReservedDBInstance -> f (Maybe ReservedDBInstance))
-> PurchaseReservedDBInstancesOfferingResponse
-> f PurchaseReservedDBInstancesOfferingResponse
purchaseReservedDBInstancesOfferingResponse_reservedDBInstance = (PurchaseReservedDBInstancesOfferingResponse
-> Maybe ReservedDBInstance)
-> (PurchaseReservedDBInstancesOfferingResponse
-> Maybe ReservedDBInstance
-> PurchaseReservedDBInstancesOfferingResponse)
-> Lens
PurchaseReservedDBInstancesOfferingResponse
PurchaseReservedDBInstancesOfferingResponse
(Maybe ReservedDBInstance)
(Maybe ReservedDBInstance)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedDBInstancesOfferingResponse' {Maybe ReservedDBInstance
reservedDBInstance :: Maybe ReservedDBInstance
$sel:reservedDBInstance:PurchaseReservedDBInstancesOfferingResponse' :: PurchaseReservedDBInstancesOfferingResponse
-> Maybe ReservedDBInstance
reservedDBInstance} -> Maybe ReservedDBInstance
reservedDBInstance) (\s :: PurchaseReservedDBInstancesOfferingResponse
s@PurchaseReservedDBInstancesOfferingResponse' {} Maybe ReservedDBInstance
a -> PurchaseReservedDBInstancesOfferingResponse
s {$sel:reservedDBInstance:PurchaseReservedDBInstancesOfferingResponse' :: Maybe ReservedDBInstance
reservedDBInstance = Maybe ReservedDBInstance
a} :: PurchaseReservedDBInstancesOfferingResponse)
purchaseReservedDBInstancesOfferingResponse_httpStatus :: Lens.Lens' PurchaseReservedDBInstancesOfferingResponse Prelude.Int
purchaseReservedDBInstancesOfferingResponse_httpStatus :: (Int -> f Int)
-> PurchaseReservedDBInstancesOfferingResponse
-> f PurchaseReservedDBInstancesOfferingResponse
purchaseReservedDBInstancesOfferingResponse_httpStatus = (PurchaseReservedDBInstancesOfferingResponse -> Int)
-> (PurchaseReservedDBInstancesOfferingResponse
-> Int -> PurchaseReservedDBInstancesOfferingResponse)
-> Lens
PurchaseReservedDBInstancesOfferingResponse
PurchaseReservedDBInstancesOfferingResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedDBInstancesOfferingResponse' {Int
httpStatus :: Int
$sel:httpStatus:PurchaseReservedDBInstancesOfferingResponse' :: PurchaseReservedDBInstancesOfferingResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PurchaseReservedDBInstancesOfferingResponse
s@PurchaseReservedDBInstancesOfferingResponse' {} Int
a -> PurchaseReservedDBInstancesOfferingResponse
s {$sel:httpStatus:PurchaseReservedDBInstancesOfferingResponse' :: Int
httpStatus = Int
a} :: PurchaseReservedDBInstancesOfferingResponse)
instance
Prelude.NFData
PurchaseReservedDBInstancesOfferingResponse