/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { class AWS_COSTEXPLORER_API GetSavingsPlansUtilizationResult { public: GetSavingsPlansUtilizationResult(); GetSavingsPlansUtilizationResult(const Aws::AmazonWebServiceResult& result); GetSavingsPlansUtilizationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The amount of cost/commitment you used your Savings Plans. This allows you to * specify date ranges.

*/ inline const Aws::Vector& GetSavingsPlansUtilizationsByTime() const{ return m_savingsPlansUtilizationsByTime; } /** *

The amount of cost/commitment you used your Savings Plans. This allows you to * specify date ranges.

*/ inline void SetSavingsPlansUtilizationsByTime(const Aws::Vector& value) { m_savingsPlansUtilizationsByTime = value; } /** *

The amount of cost/commitment you used your Savings Plans. This allows you to * specify date ranges.

*/ inline void SetSavingsPlansUtilizationsByTime(Aws::Vector&& value) { m_savingsPlansUtilizationsByTime = std::move(value); } /** *

The amount of cost/commitment you used your Savings Plans. This allows you to * specify date ranges.

*/ inline GetSavingsPlansUtilizationResult& WithSavingsPlansUtilizationsByTime(const Aws::Vector& value) { SetSavingsPlansUtilizationsByTime(value); return *this;} /** *

The amount of cost/commitment you used your Savings Plans. This allows you to * specify date ranges.

*/ inline GetSavingsPlansUtilizationResult& WithSavingsPlansUtilizationsByTime(Aws::Vector&& value) { SetSavingsPlansUtilizationsByTime(std::move(value)); return *this;} /** *

The amount of cost/commitment you used your Savings Plans. This allows you to * specify date ranges.

*/ inline GetSavingsPlansUtilizationResult& AddSavingsPlansUtilizationsByTime(const SavingsPlansUtilizationByTime& value) { m_savingsPlansUtilizationsByTime.push_back(value); return *this; } /** *

The amount of cost/commitment you used your Savings Plans. This allows you to * specify date ranges.

*/ inline GetSavingsPlansUtilizationResult& AddSavingsPlansUtilizationsByTime(SavingsPlansUtilizationByTime&& value) { m_savingsPlansUtilizationsByTime.push_back(std::move(value)); return *this; } /** *

The total amount of cost/commitment that you used your Savings Plans, * regardless of date ranges.

*/ inline const SavingsPlansUtilizationAggregates& GetTotal() const{ return m_total; } /** *

The total amount of cost/commitment that you used your Savings Plans, * regardless of date ranges.

*/ inline void SetTotal(const SavingsPlansUtilizationAggregates& value) { m_total = value; } /** *

The total amount of cost/commitment that you used your Savings Plans, * regardless of date ranges.

*/ inline void SetTotal(SavingsPlansUtilizationAggregates&& value) { m_total = std::move(value); } /** *

The total amount of cost/commitment that you used your Savings Plans, * regardless of date ranges.

*/ inline GetSavingsPlansUtilizationResult& WithTotal(const SavingsPlansUtilizationAggregates& value) { SetTotal(value); return *this;} /** *

The total amount of cost/commitment that you used your Savings Plans, * regardless of date ranges.

*/ inline GetSavingsPlansUtilizationResult& WithTotal(SavingsPlansUtilizationAggregates&& value) { SetTotal(std::move(value)); return *this;} private: Aws::Vector m_savingsPlansUtilizationsByTime; SavingsPlansUtilizationAggregates m_total; }; } // namespace Model } // namespace CostExplorer } // namespace Aws