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

The amount of Savings Plans utilization (in hours).

See Also:

* AWS * API Reference

*/ class SavingsPlansUtilizationByTime { public: AWS_COSTEXPLORER_API SavingsPlansUtilizationByTime(); AWS_COSTEXPLORER_API SavingsPlansUtilizationByTime(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API SavingsPlansUtilizationByTime& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; } inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; } inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; } inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); } inline SavingsPlansUtilizationByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;} inline SavingsPlansUtilizationByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;} /** *

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.

*/ 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 SavingsPlansUtilizationByTime& 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 SavingsPlansUtilizationByTime& 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 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