/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DevOpsGuru { namespace Model { class GetCostEstimationResult { public: AWS_DEVOPSGURU_API GetCostEstimationResult(); AWS_DEVOPSGURU_API GetCostEstimationResult(const Aws::AmazonWebServiceResult& result); AWS_DEVOPSGURU_API GetCostEstimationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The collection of the Amazon Web Services resources used to create your * monthly DevOps Guru cost estimate.

*/ inline const CostEstimationResourceCollectionFilter& GetResourceCollection() const{ return m_resourceCollection; } /** *

The collection of the Amazon Web Services resources used to create your * monthly DevOps Guru cost estimate.

*/ inline void SetResourceCollection(const CostEstimationResourceCollectionFilter& value) { m_resourceCollection = value; } /** *

The collection of the Amazon Web Services resources used to create your * monthly DevOps Guru cost estimate.

*/ inline void SetResourceCollection(CostEstimationResourceCollectionFilter&& value) { m_resourceCollection = std::move(value); } /** *

The collection of the Amazon Web Services resources used to create your * monthly DevOps Guru cost estimate.

*/ inline GetCostEstimationResult& WithResourceCollection(const CostEstimationResourceCollectionFilter& value) { SetResourceCollection(value); return *this;} /** *

The collection of the Amazon Web Services resources used to create your * monthly DevOps Guru cost estimate.

*/ inline GetCostEstimationResult& WithResourceCollection(CostEstimationResourceCollectionFilter&& value) { SetResourceCollection(std::move(value)); return *this;} /** *

The status of creating this cost estimate. If it's still in progress, the * status ONGOING is returned. If it is finished, the status * COMPLETED is returned.

*/ inline const CostEstimationStatus& GetStatus() const{ return m_status; } /** *

The status of creating this cost estimate. If it's still in progress, the * status ONGOING is returned. If it is finished, the status * COMPLETED is returned.

*/ inline void SetStatus(const CostEstimationStatus& value) { m_status = value; } /** *

The status of creating this cost estimate. If it's still in progress, the * status ONGOING is returned. If it is finished, the status * COMPLETED is returned.

*/ inline void SetStatus(CostEstimationStatus&& value) { m_status = std::move(value); } /** *

The status of creating this cost estimate. If it's still in progress, the * status ONGOING is returned. If it is finished, the status * COMPLETED is returned.

*/ inline GetCostEstimationResult& WithStatus(const CostEstimationStatus& value) { SetStatus(value); return *this;} /** *

The status of creating this cost estimate. If it's still in progress, the * status ONGOING is returned. If it is finished, the status * COMPLETED is returned.

*/ inline GetCostEstimationResult& WithStatus(CostEstimationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

An array of ResourceCost objects that each contains details * about the monthly cost estimate to analyze one of your Amazon Web Services * resources.

*/ inline const Aws::Vector& GetCosts() const{ return m_costs; } /** *

An array of ResourceCost objects that each contains details * about the monthly cost estimate to analyze one of your Amazon Web Services * resources.

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

An array of ResourceCost objects that each contains details * about the monthly cost estimate to analyze one of your Amazon Web Services * resources.

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

An array of ResourceCost objects that each contains details * about the monthly cost estimate to analyze one of your Amazon Web Services * resources.

*/ inline GetCostEstimationResult& WithCosts(const Aws::Vector& value) { SetCosts(value); return *this;} /** *

An array of ResourceCost objects that each contains details * about the monthly cost estimate to analyze one of your Amazon Web Services * resources.

*/ inline GetCostEstimationResult& WithCosts(Aws::Vector&& value) { SetCosts(std::move(value)); return *this;} /** *

An array of ResourceCost objects that each contains details * about the monthly cost estimate to analyze one of your Amazon Web Services * resources.

*/ inline GetCostEstimationResult& AddCosts(const ServiceResourceCost& value) { m_costs.push_back(value); return *this; } /** *

An array of ResourceCost objects that each contains details * about the monthly cost estimate to analyze one of your Amazon Web Services * resources.

*/ inline GetCostEstimationResult& AddCosts(ServiceResourceCost&& value) { m_costs.push_back(std::move(value)); return *this; } /** *

The start and end time of the cost estimation.

*/ inline const CostEstimationTimeRange& GetTimeRange() const{ return m_timeRange; } /** *

The start and end time of the cost estimation.

*/ inline void SetTimeRange(const CostEstimationTimeRange& value) { m_timeRange = value; } /** *

The start and end time of the cost estimation.

*/ inline void SetTimeRange(CostEstimationTimeRange&& value) { m_timeRange = std::move(value); } /** *

The start and end time of the cost estimation.

*/ inline GetCostEstimationResult& WithTimeRange(const CostEstimationTimeRange& value) { SetTimeRange(value); return *this;} /** *

The start and end time of the cost estimation.

*/ inline GetCostEstimationResult& WithTimeRange(CostEstimationTimeRange&& value) { SetTimeRange(std::move(value)); return *this;} /** *

The estimated monthly cost to analyze the Amazon Web Services resources. This * value is the sum of the estimated costs to analyze each resource in the * Costs object in this response.

*/ inline double GetTotalCost() const{ return m_totalCost; } /** *

The estimated monthly cost to analyze the Amazon Web Services resources. This * value is the sum of the estimated costs to analyze each resource in the * Costs object in this response.

*/ inline void SetTotalCost(double value) { m_totalCost = value; } /** *

The estimated monthly cost to analyze the Amazon Web Services resources. This * value is the sum of the estimated costs to analyze each resource in the * Costs object in this response.

*/ inline GetCostEstimationResult& WithTotalCost(double value) { SetTotalCost(value); return *this;} /** *

The pagination token to use to retrieve the next page of results for this * operation. If there are no more pages, this value is null.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The pagination token to use to retrieve the next page of results for this * operation. If there are no more pages, this value is null.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The pagination token to use to retrieve the next page of results for this * operation. If there are no more pages, this value is null.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The pagination token to use to retrieve the next page of results for this * operation. If there are no more pages, this value is null.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The pagination token to use to retrieve the next page of results for this * operation. If there are no more pages, this value is null.

*/ inline GetCostEstimationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The pagination token to use to retrieve the next page of results for this * operation. If there are no more pages, this value is null.

*/ inline GetCostEstimationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The pagination token to use to retrieve the next page of results for this * operation. If there are no more pages, this value is null.

*/ inline GetCostEstimationResult& WithNextToken(const char* value) { SetNextToken(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 GetCostEstimationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCostEstimationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCostEstimationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: CostEstimationResourceCollectionFilter m_resourceCollection; CostEstimationStatus m_status; Aws::Vector m_costs; CostEstimationTimeRange m_timeRange; double m_totalCost; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws