{-# 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.OpenSearch.PurchaseReservedInstanceOffering
(
PurchaseReservedInstanceOffering (..),
newPurchaseReservedInstanceOffering,
purchaseReservedInstanceOffering_instanceCount,
purchaseReservedInstanceOffering_reservedInstanceOfferingId,
purchaseReservedInstanceOffering_reservationName,
PurchaseReservedInstanceOfferingResponse (..),
newPurchaseReservedInstanceOfferingResponse,
purchaseReservedInstanceOfferingResponse_reservationName,
purchaseReservedInstanceOfferingResponse_reservedInstanceId,
purchaseReservedInstanceOfferingResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpenSearch.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data PurchaseReservedInstanceOffering = PurchaseReservedInstanceOffering'
{
PurchaseReservedInstanceOffering -> Maybe Natural
instanceCount :: Prelude.Maybe Prelude.Natural,
PurchaseReservedInstanceOffering -> Text
reservedInstanceOfferingId :: Prelude.Text,
PurchaseReservedInstanceOffering -> Text
reservationName :: Prelude.Text
}
deriving (PurchaseReservedInstanceOffering
-> PurchaseReservedInstanceOffering -> Bool
(PurchaseReservedInstanceOffering
-> PurchaseReservedInstanceOffering -> Bool)
-> (PurchaseReservedInstanceOffering
-> PurchaseReservedInstanceOffering -> Bool)
-> Eq PurchaseReservedInstanceOffering
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PurchaseReservedInstanceOffering
-> PurchaseReservedInstanceOffering -> Bool
$c/= :: PurchaseReservedInstanceOffering
-> PurchaseReservedInstanceOffering -> Bool
== :: PurchaseReservedInstanceOffering
-> PurchaseReservedInstanceOffering -> Bool
$c== :: PurchaseReservedInstanceOffering
-> PurchaseReservedInstanceOffering -> Bool
Prelude.Eq, ReadPrec [PurchaseReservedInstanceOffering]
ReadPrec PurchaseReservedInstanceOffering
Int -> ReadS PurchaseReservedInstanceOffering
ReadS [PurchaseReservedInstanceOffering]
(Int -> ReadS PurchaseReservedInstanceOffering)
-> ReadS [PurchaseReservedInstanceOffering]
-> ReadPrec PurchaseReservedInstanceOffering
-> ReadPrec [PurchaseReservedInstanceOffering]
-> Read PurchaseReservedInstanceOffering
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PurchaseReservedInstanceOffering]
$creadListPrec :: ReadPrec [PurchaseReservedInstanceOffering]
readPrec :: ReadPrec PurchaseReservedInstanceOffering
$creadPrec :: ReadPrec PurchaseReservedInstanceOffering
readList :: ReadS [PurchaseReservedInstanceOffering]
$creadList :: ReadS [PurchaseReservedInstanceOffering]
readsPrec :: Int -> ReadS PurchaseReservedInstanceOffering
$creadsPrec :: Int -> ReadS PurchaseReservedInstanceOffering
Prelude.Read, Int -> PurchaseReservedInstanceOffering -> ShowS
[PurchaseReservedInstanceOffering] -> ShowS
PurchaseReservedInstanceOffering -> String
(Int -> PurchaseReservedInstanceOffering -> ShowS)
-> (PurchaseReservedInstanceOffering -> String)
-> ([PurchaseReservedInstanceOffering] -> ShowS)
-> Show PurchaseReservedInstanceOffering
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PurchaseReservedInstanceOffering] -> ShowS
$cshowList :: [PurchaseReservedInstanceOffering] -> ShowS
show :: PurchaseReservedInstanceOffering -> String
$cshow :: PurchaseReservedInstanceOffering -> String
showsPrec :: Int -> PurchaseReservedInstanceOffering -> ShowS
$cshowsPrec :: Int -> PurchaseReservedInstanceOffering -> ShowS
Prelude.Show, (forall x.
PurchaseReservedInstanceOffering
-> Rep PurchaseReservedInstanceOffering x)
-> (forall x.
Rep PurchaseReservedInstanceOffering x
-> PurchaseReservedInstanceOffering)
-> Generic PurchaseReservedInstanceOffering
forall x.
Rep PurchaseReservedInstanceOffering x
-> PurchaseReservedInstanceOffering
forall x.
PurchaseReservedInstanceOffering
-> Rep PurchaseReservedInstanceOffering x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PurchaseReservedInstanceOffering x
-> PurchaseReservedInstanceOffering
$cfrom :: forall x.
PurchaseReservedInstanceOffering
-> Rep PurchaseReservedInstanceOffering x
Prelude.Generic)
newPurchaseReservedInstanceOffering ::
Prelude.Text ->
Prelude.Text ->
PurchaseReservedInstanceOffering
newPurchaseReservedInstanceOffering :: Text -> Text -> PurchaseReservedInstanceOffering
newPurchaseReservedInstanceOffering
Text
pReservedInstanceOfferingId_
Text
pReservationName_ =
PurchaseReservedInstanceOffering' :: Maybe Natural -> Text -> Text -> PurchaseReservedInstanceOffering
PurchaseReservedInstanceOffering'
{ $sel:instanceCount:PurchaseReservedInstanceOffering' :: Maybe Natural
instanceCount =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:reservedInstanceOfferingId:PurchaseReservedInstanceOffering' :: Text
reservedInstanceOfferingId =
Text
pReservedInstanceOfferingId_,
$sel:reservationName:PurchaseReservedInstanceOffering' :: Text
reservationName = Text
pReservationName_
}
purchaseReservedInstanceOffering_instanceCount :: Lens.Lens' PurchaseReservedInstanceOffering (Prelude.Maybe Prelude.Natural)
purchaseReservedInstanceOffering_instanceCount :: (Maybe Natural -> f (Maybe Natural))
-> PurchaseReservedInstanceOffering
-> f PurchaseReservedInstanceOffering
purchaseReservedInstanceOffering_instanceCount = (PurchaseReservedInstanceOffering -> Maybe Natural)
-> (PurchaseReservedInstanceOffering
-> Maybe Natural -> PurchaseReservedInstanceOffering)
-> Lens
PurchaseReservedInstanceOffering
PurchaseReservedInstanceOffering
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedInstanceOffering' {Maybe Natural
instanceCount :: Maybe Natural
$sel:instanceCount:PurchaseReservedInstanceOffering' :: PurchaseReservedInstanceOffering -> Maybe Natural
instanceCount} -> Maybe Natural
instanceCount) (\s :: PurchaseReservedInstanceOffering
s@PurchaseReservedInstanceOffering' {} Maybe Natural
a -> PurchaseReservedInstanceOffering
s {$sel:instanceCount:PurchaseReservedInstanceOffering' :: Maybe Natural
instanceCount = Maybe Natural
a} :: PurchaseReservedInstanceOffering)
purchaseReservedInstanceOffering_reservedInstanceOfferingId :: Lens.Lens' PurchaseReservedInstanceOffering Prelude.Text
purchaseReservedInstanceOffering_reservedInstanceOfferingId :: (Text -> f Text)
-> PurchaseReservedInstanceOffering
-> f PurchaseReservedInstanceOffering
purchaseReservedInstanceOffering_reservedInstanceOfferingId = (PurchaseReservedInstanceOffering -> Text)
-> (PurchaseReservedInstanceOffering
-> Text -> PurchaseReservedInstanceOffering)
-> Lens
PurchaseReservedInstanceOffering
PurchaseReservedInstanceOffering
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedInstanceOffering' {Text
reservedInstanceOfferingId :: Text
$sel:reservedInstanceOfferingId:PurchaseReservedInstanceOffering' :: PurchaseReservedInstanceOffering -> Text
reservedInstanceOfferingId} -> Text
reservedInstanceOfferingId) (\s :: PurchaseReservedInstanceOffering
s@PurchaseReservedInstanceOffering' {} Text
a -> PurchaseReservedInstanceOffering
s {$sel:reservedInstanceOfferingId:PurchaseReservedInstanceOffering' :: Text
reservedInstanceOfferingId = Text
a} :: PurchaseReservedInstanceOffering)
purchaseReservedInstanceOffering_reservationName :: Lens.Lens' PurchaseReservedInstanceOffering Prelude.Text
purchaseReservedInstanceOffering_reservationName :: (Text -> f Text)
-> PurchaseReservedInstanceOffering
-> f PurchaseReservedInstanceOffering
purchaseReservedInstanceOffering_reservationName = (PurchaseReservedInstanceOffering -> Text)
-> (PurchaseReservedInstanceOffering
-> Text -> PurchaseReservedInstanceOffering)
-> Lens
PurchaseReservedInstanceOffering
PurchaseReservedInstanceOffering
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedInstanceOffering' {Text
reservationName :: Text
$sel:reservationName:PurchaseReservedInstanceOffering' :: PurchaseReservedInstanceOffering -> Text
reservationName} -> Text
reservationName) (\s :: PurchaseReservedInstanceOffering
s@PurchaseReservedInstanceOffering' {} Text
a -> PurchaseReservedInstanceOffering
s {$sel:reservationName:PurchaseReservedInstanceOffering' :: Text
reservationName = Text
a} :: PurchaseReservedInstanceOffering)
instance
Core.AWSRequest
PurchaseReservedInstanceOffering
where
type
AWSResponse PurchaseReservedInstanceOffering =
PurchaseReservedInstanceOfferingResponse
request :: PurchaseReservedInstanceOffering
-> Request PurchaseReservedInstanceOffering
request = Service
-> PurchaseReservedInstanceOffering
-> Request PurchaseReservedInstanceOffering
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PurchaseReservedInstanceOffering
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse PurchaseReservedInstanceOffering)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PurchaseReservedInstanceOffering))
-> Logger
-> Service
-> Proxy PurchaseReservedInstanceOffering
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse PurchaseReservedInstanceOffering)))
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 Text -> Int -> PurchaseReservedInstanceOfferingResponse
PurchaseReservedInstanceOfferingResponse'
(Maybe Text
-> Maybe Text -> Int -> PurchaseReservedInstanceOfferingResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Int -> PurchaseReservedInstanceOfferingResponse)
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
"ReservationName")
Either
String
(Maybe Text -> Int -> PurchaseReservedInstanceOfferingResponse)
-> Either String (Maybe Text)
-> Either String (Int -> PurchaseReservedInstanceOfferingResponse)
forall (f :: * -> *) a b. Applicative f => 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
"ReservedInstanceId")
Either String (Int -> PurchaseReservedInstanceOfferingResponse)
-> Either String Int
-> Either String PurchaseReservedInstanceOfferingResponse
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
PurchaseReservedInstanceOffering
instance
Prelude.NFData
PurchaseReservedInstanceOffering
instance
Core.ToHeaders
PurchaseReservedInstanceOffering
where
toHeaders :: PurchaseReservedInstanceOffering -> ResponseHeaders
toHeaders = ResponseHeaders
-> PurchaseReservedInstanceOffering -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON PurchaseReservedInstanceOffering where
toJSON :: PurchaseReservedInstanceOffering -> Value
toJSON PurchaseReservedInstanceOffering' {Maybe Natural
Text
reservationName :: Text
reservedInstanceOfferingId :: Text
instanceCount :: Maybe Natural
$sel:reservationName:PurchaseReservedInstanceOffering' :: PurchaseReservedInstanceOffering -> Text
$sel:reservedInstanceOfferingId:PurchaseReservedInstanceOffering' :: PurchaseReservedInstanceOffering -> Text
$sel:instanceCount:PurchaseReservedInstanceOffering' :: PurchaseReservedInstanceOffering -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"InstanceCount" 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
instanceCount,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ReservedInstanceOfferingId"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
reservedInstanceOfferingId
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ReservationName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
reservationName)
]
)
instance Core.ToPath PurchaseReservedInstanceOffering where
toPath :: PurchaseReservedInstanceOffering -> ByteString
toPath =
ByteString -> PurchaseReservedInstanceOffering -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/2021-01-01/opensearch/purchaseReservedInstanceOffering"
instance
Core.ToQuery
PurchaseReservedInstanceOffering
where
toQuery :: PurchaseReservedInstanceOffering -> QueryString
toQuery = QueryString -> PurchaseReservedInstanceOffering -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PurchaseReservedInstanceOfferingResponse = PurchaseReservedInstanceOfferingResponse'
{
PurchaseReservedInstanceOfferingResponse -> Maybe Text
reservationName :: Prelude.Maybe Prelude.Text,
PurchaseReservedInstanceOfferingResponse -> Maybe Text
reservedInstanceId :: Prelude.Maybe Prelude.Text,
PurchaseReservedInstanceOfferingResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PurchaseReservedInstanceOfferingResponse
-> PurchaseReservedInstanceOfferingResponse -> Bool
(PurchaseReservedInstanceOfferingResponse
-> PurchaseReservedInstanceOfferingResponse -> Bool)
-> (PurchaseReservedInstanceOfferingResponse
-> PurchaseReservedInstanceOfferingResponse -> Bool)
-> Eq PurchaseReservedInstanceOfferingResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PurchaseReservedInstanceOfferingResponse
-> PurchaseReservedInstanceOfferingResponse -> Bool
$c/= :: PurchaseReservedInstanceOfferingResponse
-> PurchaseReservedInstanceOfferingResponse -> Bool
== :: PurchaseReservedInstanceOfferingResponse
-> PurchaseReservedInstanceOfferingResponse -> Bool
$c== :: PurchaseReservedInstanceOfferingResponse
-> PurchaseReservedInstanceOfferingResponse -> Bool
Prelude.Eq, ReadPrec [PurchaseReservedInstanceOfferingResponse]
ReadPrec PurchaseReservedInstanceOfferingResponse
Int -> ReadS PurchaseReservedInstanceOfferingResponse
ReadS [PurchaseReservedInstanceOfferingResponse]
(Int -> ReadS PurchaseReservedInstanceOfferingResponse)
-> ReadS [PurchaseReservedInstanceOfferingResponse]
-> ReadPrec PurchaseReservedInstanceOfferingResponse
-> ReadPrec [PurchaseReservedInstanceOfferingResponse]
-> Read PurchaseReservedInstanceOfferingResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PurchaseReservedInstanceOfferingResponse]
$creadListPrec :: ReadPrec [PurchaseReservedInstanceOfferingResponse]
readPrec :: ReadPrec PurchaseReservedInstanceOfferingResponse
$creadPrec :: ReadPrec PurchaseReservedInstanceOfferingResponse
readList :: ReadS [PurchaseReservedInstanceOfferingResponse]
$creadList :: ReadS [PurchaseReservedInstanceOfferingResponse]
readsPrec :: Int -> ReadS PurchaseReservedInstanceOfferingResponse
$creadsPrec :: Int -> ReadS PurchaseReservedInstanceOfferingResponse
Prelude.Read, Int -> PurchaseReservedInstanceOfferingResponse -> ShowS
[PurchaseReservedInstanceOfferingResponse] -> ShowS
PurchaseReservedInstanceOfferingResponse -> String
(Int -> PurchaseReservedInstanceOfferingResponse -> ShowS)
-> (PurchaseReservedInstanceOfferingResponse -> String)
-> ([PurchaseReservedInstanceOfferingResponse] -> ShowS)
-> Show PurchaseReservedInstanceOfferingResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PurchaseReservedInstanceOfferingResponse] -> ShowS
$cshowList :: [PurchaseReservedInstanceOfferingResponse] -> ShowS
show :: PurchaseReservedInstanceOfferingResponse -> String
$cshow :: PurchaseReservedInstanceOfferingResponse -> String
showsPrec :: Int -> PurchaseReservedInstanceOfferingResponse -> ShowS
$cshowsPrec :: Int -> PurchaseReservedInstanceOfferingResponse -> ShowS
Prelude.Show, (forall x.
PurchaseReservedInstanceOfferingResponse
-> Rep PurchaseReservedInstanceOfferingResponse x)
-> (forall x.
Rep PurchaseReservedInstanceOfferingResponse x
-> PurchaseReservedInstanceOfferingResponse)
-> Generic PurchaseReservedInstanceOfferingResponse
forall x.
Rep PurchaseReservedInstanceOfferingResponse x
-> PurchaseReservedInstanceOfferingResponse
forall x.
PurchaseReservedInstanceOfferingResponse
-> Rep PurchaseReservedInstanceOfferingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PurchaseReservedInstanceOfferingResponse x
-> PurchaseReservedInstanceOfferingResponse
$cfrom :: forall x.
PurchaseReservedInstanceOfferingResponse
-> Rep PurchaseReservedInstanceOfferingResponse x
Prelude.Generic)
newPurchaseReservedInstanceOfferingResponse ::
Prelude.Int ->
PurchaseReservedInstanceOfferingResponse
newPurchaseReservedInstanceOfferingResponse :: Int -> PurchaseReservedInstanceOfferingResponse
newPurchaseReservedInstanceOfferingResponse
Int
pHttpStatus_ =
PurchaseReservedInstanceOfferingResponse' :: Maybe Text
-> Maybe Text -> Int -> PurchaseReservedInstanceOfferingResponse
PurchaseReservedInstanceOfferingResponse'
{ $sel:reservationName:PurchaseReservedInstanceOfferingResponse' :: Maybe Text
reservationName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:reservedInstanceId:PurchaseReservedInstanceOfferingResponse' :: Maybe Text
reservedInstanceId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PurchaseReservedInstanceOfferingResponse' :: Int
httpStatus = Int
pHttpStatus_
}
purchaseReservedInstanceOfferingResponse_reservationName :: Lens.Lens' PurchaseReservedInstanceOfferingResponse (Prelude.Maybe Prelude.Text)
purchaseReservedInstanceOfferingResponse_reservationName :: (Maybe Text -> f (Maybe Text))
-> PurchaseReservedInstanceOfferingResponse
-> f PurchaseReservedInstanceOfferingResponse
purchaseReservedInstanceOfferingResponse_reservationName = (PurchaseReservedInstanceOfferingResponse -> Maybe Text)
-> (PurchaseReservedInstanceOfferingResponse
-> Maybe Text -> PurchaseReservedInstanceOfferingResponse)
-> Lens
PurchaseReservedInstanceOfferingResponse
PurchaseReservedInstanceOfferingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedInstanceOfferingResponse' {Maybe Text
reservationName :: Maybe Text
$sel:reservationName:PurchaseReservedInstanceOfferingResponse' :: PurchaseReservedInstanceOfferingResponse -> Maybe Text
reservationName} -> Maybe Text
reservationName) (\s :: PurchaseReservedInstanceOfferingResponse
s@PurchaseReservedInstanceOfferingResponse' {} Maybe Text
a -> PurchaseReservedInstanceOfferingResponse
s {$sel:reservationName:PurchaseReservedInstanceOfferingResponse' :: Maybe Text
reservationName = Maybe Text
a} :: PurchaseReservedInstanceOfferingResponse)
purchaseReservedInstanceOfferingResponse_reservedInstanceId :: Lens.Lens' PurchaseReservedInstanceOfferingResponse (Prelude.Maybe Prelude.Text)
purchaseReservedInstanceOfferingResponse_reservedInstanceId :: (Maybe Text -> f (Maybe Text))
-> PurchaseReservedInstanceOfferingResponse
-> f PurchaseReservedInstanceOfferingResponse
purchaseReservedInstanceOfferingResponse_reservedInstanceId = (PurchaseReservedInstanceOfferingResponse -> Maybe Text)
-> (PurchaseReservedInstanceOfferingResponse
-> Maybe Text -> PurchaseReservedInstanceOfferingResponse)
-> Lens
PurchaseReservedInstanceOfferingResponse
PurchaseReservedInstanceOfferingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedInstanceOfferingResponse' {Maybe Text
reservedInstanceId :: Maybe Text
$sel:reservedInstanceId:PurchaseReservedInstanceOfferingResponse' :: PurchaseReservedInstanceOfferingResponse -> Maybe Text
reservedInstanceId} -> Maybe Text
reservedInstanceId) (\s :: PurchaseReservedInstanceOfferingResponse
s@PurchaseReservedInstanceOfferingResponse' {} Maybe Text
a -> PurchaseReservedInstanceOfferingResponse
s {$sel:reservedInstanceId:PurchaseReservedInstanceOfferingResponse' :: Maybe Text
reservedInstanceId = Maybe Text
a} :: PurchaseReservedInstanceOfferingResponse)
purchaseReservedInstanceOfferingResponse_httpStatus :: Lens.Lens' PurchaseReservedInstanceOfferingResponse Prelude.Int
purchaseReservedInstanceOfferingResponse_httpStatus :: (Int -> f Int)
-> PurchaseReservedInstanceOfferingResponse
-> f PurchaseReservedInstanceOfferingResponse
purchaseReservedInstanceOfferingResponse_httpStatus = (PurchaseReservedInstanceOfferingResponse -> Int)
-> (PurchaseReservedInstanceOfferingResponse
-> Int -> PurchaseReservedInstanceOfferingResponse)
-> Lens
PurchaseReservedInstanceOfferingResponse
PurchaseReservedInstanceOfferingResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PurchaseReservedInstanceOfferingResponse' {Int
httpStatus :: Int
$sel:httpStatus:PurchaseReservedInstanceOfferingResponse' :: PurchaseReservedInstanceOfferingResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PurchaseReservedInstanceOfferingResponse
s@PurchaseReservedInstanceOfferingResponse' {} Int
a -> PurchaseReservedInstanceOfferingResponse
s {$sel:httpStatus:PurchaseReservedInstanceOfferingResponse' :: Int
httpStatus = Int
a} :: PurchaseReservedInstanceOfferingResponse)
instance
Prelude.NFData
PurchaseReservedInstanceOfferingResponse