/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

The aggregated utilization metrics for your Savings Plans * usage.

See Also:

AWS * API Reference

*/ class SavingsPlansUtilizationAggregates { public: AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates(); AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API SavingsPlansUtilizationAggregates& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 SavingsPlansUtilizationAggregates& 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 SavingsPlansUtilizationAggregates& 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.

*/ inline const SavingsPlansSavings& GetSavings() const{ return m_savings; } /** *

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.

*/ inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; } /** *

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.

*/ inline void SetSavings(const SavingsPlansSavings& value) { m_savingsHasBeenSet = true; m_savings = value; } /** *

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.

*/ inline void SetSavings(SavingsPlansSavings&& value) { m_savingsHasBeenSet = true; m_savings = std::move(value); } /** *

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.

*/ inline SavingsPlansUtilizationAggregates& WithSavings(const SavingsPlansSavings& value) { SetSavings(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.

*/ inline SavingsPlansUtilizationAggregates& WithSavings(SavingsPlansSavings&& value) { SetSavings(std::move(value)); return *this;} /** *

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 SavingsPlansUtilizationAggregates& 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 SavingsPlansUtilizationAggregates& WithAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { SetAmortizedCommitment(std::move(value)); return *this;} private: 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