/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The amount of Savings Plans utilization (in hours).See Also:
* AWS
* API Reference
A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.
*/ inline const SavingsPlansUtilization& GetUtilization() const{ return m_utilization; } /** *A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.
*/ inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; } /** *A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.
*/ inline void SetUtilization(const SavingsPlansUtilization& value) { m_utilizationHasBeenSet = true; m_utilization = value; } /** *A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.
*/ inline void SetUtilization(SavingsPlansUtilization&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); } /** *A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.
*/ inline SavingsPlansUtilizationByTime& WithUtilization(const SavingsPlansUtilization& value) { SetUtilization(value); return *this;} /** *A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.
*/ inline SavingsPlansUtilizationByTime& WithUtilization(SavingsPlansUtilization&& value) { SetUtilization(std::move(value)); return *this;} /** *The amount that's saved by using existing Savings Plans. Savings returns both
* net savings from Savings Plans and also the onDemandCostEquivalent
* of the Savings Plans when considering the utilization rate.
The amount that's saved by using existing Savings Plans. Savings returns both
* net savings from Savings Plans and also the onDemandCostEquivalent
* of the Savings Plans when considering the utilization rate.
The amount that's saved by using existing Savings Plans. Savings returns both
* net savings from Savings Plans and also the onDemandCostEquivalent
* of the Savings Plans when considering the utilization rate.
The amount that's saved by using existing Savings Plans. Savings returns both
* net savings from Savings Plans and also the onDemandCostEquivalent
* of the Savings Plans when considering the utilization rate.
The amount that's saved by using existing Savings Plans. Savings returns both
* net savings from Savings Plans and also the onDemandCostEquivalent
* of the Savings Plans when considering the utilization rate.
The amount that's saved by using existing Savings Plans. Savings returns both
* net savings from Savings Plans and also the onDemandCostEquivalent
* of the Savings Plans when considering the utilization rate.
The total amortized commitment for a Savings Plans. This includes the sum of * the upfront and recurring Savings Plans fees.
*/ inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const{ return m_amortizedCommitment; } /** *The total amortized commitment for a Savings Plans. This includes the sum of * the upfront and recurring Savings Plans fees.
*/ inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; } /** *The total amortized commitment for a Savings Plans. This includes the sum of * the upfront and recurring Savings Plans fees.
*/ inline void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = value; } /** *The total amortized commitment for a Savings Plans. This includes the sum of * the upfront and recurring Savings Plans fees.
*/ inline void SetAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = std::move(value); } /** *The total amortized commitment for a Savings Plans. This includes the sum of * the upfront and recurring Savings Plans fees.
*/ inline SavingsPlansUtilizationByTime& WithAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { SetAmortizedCommitment(value); return *this;} /** *The total amortized commitment for a Savings Plans. This includes the sum of * the upfront and recurring Savings Plans fees.
*/ inline SavingsPlansUtilizationByTime& WithAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { SetAmortizedCommitment(std::move(value)); return *this;} private: DateInterval m_timePeriod; bool m_timePeriodHasBeenSet = false; SavingsPlansUtilization m_utilization; bool m_utilizationHasBeenSet = false; SavingsPlansSavings m_savings; bool m_savingsHasBeenSet = false; SavingsPlansAmortizedCommitment m_amortizedCommitment; bool m_amortizedCommitmentHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws