{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CostExplorer.Types.SavingsPlansPurchaseRecommendationDetail where
import qualified Amazonka.Core as Core
import Amazonka.CostExplorer.Types.SavingsPlansDetails
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data SavingsPlansPurchaseRecommendationDetail = SavingsPlansPurchaseRecommendationDetail'
{
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currencyCode :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currentAverageHourlyOnDemandSpend :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail
-> Maybe SavingsPlansDetails
savingsPlansDetails :: Prelude.Maybe SavingsPlansDetails,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currentMinimumHourlyOnDemandSpend :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedROI :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currentMaximumHourlyOnDemandSpend :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedSavingsAmount :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedMonthlySavingsAmount :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedOnDemandCost :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedOnDemandCostWithCurrentCommitment :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
upfrontCost :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedSPCost :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedSavingsPercentage :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedAverageUtilization :: Prelude.Maybe Prelude.Text,
SavingsPlansPurchaseRecommendationDetail -> Maybe Text
hourlyCommitmentToPurchase :: Prelude.Maybe Prelude.Text
}
deriving (SavingsPlansPurchaseRecommendationDetail
-> SavingsPlansPurchaseRecommendationDetail -> Bool
(SavingsPlansPurchaseRecommendationDetail
-> SavingsPlansPurchaseRecommendationDetail -> Bool)
-> (SavingsPlansPurchaseRecommendationDetail
-> SavingsPlansPurchaseRecommendationDetail -> Bool)
-> Eq SavingsPlansPurchaseRecommendationDetail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SavingsPlansPurchaseRecommendationDetail
-> SavingsPlansPurchaseRecommendationDetail -> Bool
$c/= :: SavingsPlansPurchaseRecommendationDetail
-> SavingsPlansPurchaseRecommendationDetail -> Bool
== :: SavingsPlansPurchaseRecommendationDetail
-> SavingsPlansPurchaseRecommendationDetail -> Bool
$c== :: SavingsPlansPurchaseRecommendationDetail
-> SavingsPlansPurchaseRecommendationDetail -> Bool
Prelude.Eq, ReadPrec [SavingsPlansPurchaseRecommendationDetail]
ReadPrec SavingsPlansPurchaseRecommendationDetail
Int -> ReadS SavingsPlansPurchaseRecommendationDetail
ReadS [SavingsPlansPurchaseRecommendationDetail]
(Int -> ReadS SavingsPlansPurchaseRecommendationDetail)
-> ReadS [SavingsPlansPurchaseRecommendationDetail]
-> ReadPrec SavingsPlansPurchaseRecommendationDetail
-> ReadPrec [SavingsPlansPurchaseRecommendationDetail]
-> Read SavingsPlansPurchaseRecommendationDetail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SavingsPlansPurchaseRecommendationDetail]
$creadListPrec :: ReadPrec [SavingsPlansPurchaseRecommendationDetail]
readPrec :: ReadPrec SavingsPlansPurchaseRecommendationDetail
$creadPrec :: ReadPrec SavingsPlansPurchaseRecommendationDetail
readList :: ReadS [SavingsPlansPurchaseRecommendationDetail]
$creadList :: ReadS [SavingsPlansPurchaseRecommendationDetail]
readsPrec :: Int -> ReadS SavingsPlansPurchaseRecommendationDetail
$creadsPrec :: Int -> ReadS SavingsPlansPurchaseRecommendationDetail
Prelude.Read, Int -> SavingsPlansPurchaseRecommendationDetail -> ShowS
[SavingsPlansPurchaseRecommendationDetail] -> ShowS
SavingsPlansPurchaseRecommendationDetail -> String
(Int -> SavingsPlansPurchaseRecommendationDetail -> ShowS)
-> (SavingsPlansPurchaseRecommendationDetail -> String)
-> ([SavingsPlansPurchaseRecommendationDetail] -> ShowS)
-> Show SavingsPlansPurchaseRecommendationDetail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SavingsPlansPurchaseRecommendationDetail] -> ShowS
$cshowList :: [SavingsPlansPurchaseRecommendationDetail] -> ShowS
show :: SavingsPlansPurchaseRecommendationDetail -> String
$cshow :: SavingsPlansPurchaseRecommendationDetail -> String
showsPrec :: Int -> SavingsPlansPurchaseRecommendationDetail -> ShowS
$cshowsPrec :: Int -> SavingsPlansPurchaseRecommendationDetail -> ShowS
Prelude.Show, (forall x.
SavingsPlansPurchaseRecommendationDetail
-> Rep SavingsPlansPurchaseRecommendationDetail x)
-> (forall x.
Rep SavingsPlansPurchaseRecommendationDetail x
-> SavingsPlansPurchaseRecommendationDetail)
-> Generic SavingsPlansPurchaseRecommendationDetail
forall x.
Rep SavingsPlansPurchaseRecommendationDetail x
-> SavingsPlansPurchaseRecommendationDetail
forall x.
SavingsPlansPurchaseRecommendationDetail
-> Rep SavingsPlansPurchaseRecommendationDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SavingsPlansPurchaseRecommendationDetail x
-> SavingsPlansPurchaseRecommendationDetail
$cfrom :: forall x.
SavingsPlansPurchaseRecommendationDetail
-> Rep SavingsPlansPurchaseRecommendationDetail x
Prelude.Generic)
newSavingsPlansPurchaseRecommendationDetail ::
SavingsPlansPurchaseRecommendationDetail
newSavingsPlansPurchaseRecommendationDetail :: SavingsPlansPurchaseRecommendationDetail
newSavingsPlansPurchaseRecommendationDetail =
SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
-> Maybe Text
-> Maybe SavingsPlansDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail'
{ $sel:currencyCode:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currencyCode =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:currentAverageHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currentAverageHourlyOnDemandSpend =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:savingsPlansDetails:SavingsPlansPurchaseRecommendationDetail' :: Maybe SavingsPlansDetails
savingsPlansDetails =
Maybe SavingsPlansDetails
forall a. Maybe a
Prelude.Nothing,
$sel:currentMinimumHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currentMinimumHourlyOnDemandSpend =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedROI:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedROI = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:currentMaximumHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currentMaximumHourlyOnDemandSpend =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedSavingsAmount:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedSavingsAmount =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
accountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedMonthlySavingsAmount:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedMonthlySavingsAmount =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedOnDemandCost:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedOnDemandCost =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedOnDemandCostWithCurrentCommitment:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedOnDemandCostWithCurrentCommitment =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:upfrontCost:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
upfrontCost = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedSPCost:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedSPCost = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedSavingsPercentage:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedSavingsPercentage =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:estimatedAverageUtilization:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedAverageUtilization =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hourlyCommitmentToPurchase:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
hourlyCommitmentToPurchase =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
savingsPlansPurchaseRecommendationDetail_currencyCode :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_currencyCode :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_currencyCode = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
currencyCode :: Maybe Text
$sel:currencyCode:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currencyCode} -> Maybe Text
currencyCode) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:currencyCode:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currencyCode = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_currentAverageHourlyOnDemandSpend :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_currentAverageHourlyOnDemandSpend :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_currentAverageHourlyOnDemandSpend = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
currentAverageHourlyOnDemandSpend :: Maybe Text
$sel:currentAverageHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currentAverageHourlyOnDemandSpend} -> Maybe Text
currentAverageHourlyOnDemandSpend) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:currentAverageHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currentAverageHourlyOnDemandSpend = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_savingsPlansDetails :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe SavingsPlansDetails)
savingsPlansPurchaseRecommendationDetail_savingsPlansDetails :: (Maybe SavingsPlansDetails -> f (Maybe SavingsPlansDetails))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_savingsPlansDetails = (SavingsPlansPurchaseRecommendationDetail
-> Maybe SavingsPlansDetails)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe SavingsPlansDetails
-> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe SavingsPlansDetails)
(Maybe SavingsPlansDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe SavingsPlansDetails
savingsPlansDetails :: Maybe SavingsPlansDetails
$sel:savingsPlansDetails:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail
-> Maybe SavingsPlansDetails
savingsPlansDetails} -> Maybe SavingsPlansDetails
savingsPlansDetails) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe SavingsPlansDetails
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:savingsPlansDetails:SavingsPlansPurchaseRecommendationDetail' :: Maybe SavingsPlansDetails
savingsPlansDetails = Maybe SavingsPlansDetails
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_currentMinimumHourlyOnDemandSpend :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_currentMinimumHourlyOnDemandSpend :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_currentMinimumHourlyOnDemandSpend = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
currentMinimumHourlyOnDemandSpend :: Maybe Text
$sel:currentMinimumHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currentMinimumHourlyOnDemandSpend} -> Maybe Text
currentMinimumHourlyOnDemandSpend) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:currentMinimumHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currentMinimumHourlyOnDemandSpend = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedROI :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedROI :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedROI = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedROI :: Maybe Text
$sel:estimatedROI:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedROI} -> Maybe Text
estimatedROI) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedROI:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedROI = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_currentMaximumHourlyOnDemandSpend :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_currentMaximumHourlyOnDemandSpend :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_currentMaximumHourlyOnDemandSpend = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
currentMaximumHourlyOnDemandSpend :: Maybe Text
$sel:currentMaximumHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
currentMaximumHourlyOnDemandSpend} -> Maybe Text
currentMaximumHourlyOnDemandSpend) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:currentMaximumHourlyOnDemandSpend:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
currentMaximumHourlyOnDemandSpend = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedSavingsAmount :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedSavingsAmount :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedSavingsAmount = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedSavingsAmount :: Maybe Text
$sel:estimatedSavingsAmount:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedSavingsAmount} -> Maybe Text
estimatedSavingsAmount) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedSavingsAmount:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedSavingsAmount = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_accountId :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_accountId :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_accountId = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
accountId :: Maybe Text
$sel:accountId:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:accountId:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
accountId = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedMonthlySavingsAmount :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedMonthlySavingsAmount :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedMonthlySavingsAmount = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedMonthlySavingsAmount :: Maybe Text
$sel:estimatedMonthlySavingsAmount:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedMonthlySavingsAmount} -> Maybe Text
estimatedMonthlySavingsAmount) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedMonthlySavingsAmount:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedMonthlySavingsAmount = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedOnDemandCost :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedOnDemandCost :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedOnDemandCost = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedOnDemandCost :: Maybe Text
$sel:estimatedOnDemandCost:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedOnDemandCost} -> Maybe Text
estimatedOnDemandCost) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedOnDemandCost:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedOnDemandCost = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedOnDemandCostWithCurrentCommitment :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedOnDemandCostWithCurrentCommitment :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedOnDemandCostWithCurrentCommitment = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedOnDemandCostWithCurrentCommitment :: Maybe Text
$sel:estimatedOnDemandCostWithCurrentCommitment:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedOnDemandCostWithCurrentCommitment} -> Maybe Text
estimatedOnDemandCostWithCurrentCommitment) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedOnDemandCostWithCurrentCommitment:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedOnDemandCostWithCurrentCommitment = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_upfrontCost :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_upfrontCost :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_upfrontCost = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
upfrontCost :: Maybe Text
$sel:upfrontCost:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
upfrontCost} -> Maybe Text
upfrontCost) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:upfrontCost:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
upfrontCost = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedSPCost :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedSPCost :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedSPCost = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedSPCost :: Maybe Text
$sel:estimatedSPCost:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedSPCost} -> Maybe Text
estimatedSPCost) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedSPCost:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedSPCost = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedSavingsPercentage :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedSavingsPercentage :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedSavingsPercentage = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedSavingsPercentage :: Maybe Text
$sel:estimatedSavingsPercentage:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedSavingsPercentage} -> Maybe Text
estimatedSavingsPercentage) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedSavingsPercentage:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedSavingsPercentage = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_estimatedAverageUtilization :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_estimatedAverageUtilization :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_estimatedAverageUtilization = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
estimatedAverageUtilization :: Maybe Text
$sel:estimatedAverageUtilization:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
estimatedAverageUtilization} -> Maybe Text
estimatedAverageUtilization) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:estimatedAverageUtilization:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
estimatedAverageUtilization = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
savingsPlansPurchaseRecommendationDetail_hourlyCommitmentToPurchase :: Lens.Lens' SavingsPlansPurchaseRecommendationDetail (Prelude.Maybe Prelude.Text)
savingsPlansPurchaseRecommendationDetail_hourlyCommitmentToPurchase :: (Maybe Text -> f (Maybe Text))
-> SavingsPlansPurchaseRecommendationDetail
-> f SavingsPlansPurchaseRecommendationDetail
savingsPlansPurchaseRecommendationDetail_hourlyCommitmentToPurchase = (SavingsPlansPurchaseRecommendationDetail -> Maybe Text)
-> (SavingsPlansPurchaseRecommendationDetail
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Lens
SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SavingsPlansPurchaseRecommendationDetail' {Maybe Text
hourlyCommitmentToPurchase :: Maybe Text
$sel:hourlyCommitmentToPurchase:SavingsPlansPurchaseRecommendationDetail' :: SavingsPlansPurchaseRecommendationDetail -> Maybe Text
hourlyCommitmentToPurchase} -> Maybe Text
hourlyCommitmentToPurchase) (\s :: SavingsPlansPurchaseRecommendationDetail
s@SavingsPlansPurchaseRecommendationDetail' {} Maybe Text
a -> SavingsPlansPurchaseRecommendationDetail
s {$sel:hourlyCommitmentToPurchase:SavingsPlansPurchaseRecommendationDetail' :: Maybe Text
hourlyCommitmentToPurchase = Maybe Text
a} :: SavingsPlansPurchaseRecommendationDetail)
instance
Core.FromJSON
SavingsPlansPurchaseRecommendationDetail
where
parseJSON :: Value -> Parser SavingsPlansPurchaseRecommendationDetail
parseJSON =
String
-> (Object -> Parser SavingsPlansPurchaseRecommendationDetail)
-> Value
-> Parser SavingsPlansPurchaseRecommendationDetail
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SavingsPlansPurchaseRecommendationDetail"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe SavingsPlansDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail
SavingsPlansPurchaseRecommendationDetail'
(Maybe Text
-> Maybe Text
-> Maybe SavingsPlansDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe SavingsPlansDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CurrencyCode")
Parser
(Maybe Text
-> Maybe SavingsPlansDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe SavingsPlansDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CurrentAverageHourlyOnDemandSpend")
Parser
(Maybe SavingsPlansDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe SavingsPlansDetails)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SavingsPlansDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SavingsPlansDetails")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CurrentMinimumHourlyOnDemandSpend")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedROI")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CurrentMaximumHourlyOnDemandSpend")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedSavingsAmount")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AccountId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedMonthlySavingsAmount")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedOnDemandCost")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedOnDemandCostWithCurrentCommitment"
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpfrontCost")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedSPCost")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedSavingsPercentage")
Parser
(Maybe Text
-> Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EstimatedAverageUtilization")
Parser (Maybe Text -> SavingsPlansPurchaseRecommendationDetail)
-> Parser (Maybe Text)
-> Parser SavingsPlansPurchaseRecommendationDetail
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HourlyCommitmentToPurchase")
)
instance
Prelude.Hashable
SavingsPlansPurchaseRecommendationDetail
instance
Prelude.NFData
SavingsPlansPurchaseRecommendationDetail