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

The amount of cost/commitment that you used your Savings Plans. You can use * it to specify date ranges.

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

The amount of cost/commitment that you used your Savings Plans. You can use * it to specify date ranges.

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

The amount of cost/commitment that you used your Savings Plans. You can use * it to specify date ranges.

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

The amount of cost/commitment that you used your Savings Plans. You can use * it to specify date ranges.

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

The amount of cost/commitment that you used your Savings Plans. You can use * it to specify date ranges.

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

The amount of cost/commitment that you used your Savings Plans. You can use * it to specify date ranges.

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

The amount of cost/commitment that you used your Savings Plans. You can use * it 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSavingsPlansUtilizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSavingsPlansUtilizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSavingsPlansUtilizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_savingsPlansUtilizationsByTime; SavingsPlansUtilizationAggregates m_total; Aws::String m_requestId; }; } // namespace Model } // namespace CostExplorer } // namespace Aws