/** * 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 AWS_COSTEXPLORER_API GetCostAndUsageWithResourcesResult { public: GetCostAndUsageWithResourcesResult(); GetCostAndUsageWithResourcesResult(const Aws::AmazonWebServiceResult& result); GetCostAndUsageWithResourcesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The token for the next set of retrievable results. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

The token for the next set of retrievable results. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

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

The token for the next set of retrievable results. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

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

The token for the next set of retrievable results. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

*/ inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); } /** *

The token for the next set of retrievable results. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

*/ inline GetCostAndUsageWithResourcesResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

The token for the next set of retrievable results. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

*/ inline GetCostAndUsageWithResourcesResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

The token for the next set of retrievable results. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

*/ inline GetCostAndUsageWithResourcesResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} /** *

The groups that are specified by the Filter or * GroupBy parameters in the request.

*/ inline const Aws::Vector& GetGroupDefinitions() const{ return m_groupDefinitions; } /** *

The groups that are specified by the Filter or * GroupBy parameters in the request.

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

The groups that are specified by the Filter or * GroupBy parameters in the request.

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

The groups that are specified by the Filter or * GroupBy parameters in the request.

*/ inline GetCostAndUsageWithResourcesResult& WithGroupDefinitions(const Aws::Vector& value) { SetGroupDefinitions(value); return *this;} /** *

The groups that are specified by the Filter or * GroupBy parameters in the request.

*/ inline GetCostAndUsageWithResourcesResult& WithGroupDefinitions(Aws::Vector&& value) { SetGroupDefinitions(std::move(value)); return *this;} /** *

The groups that are specified by the Filter or * GroupBy parameters in the request.

*/ inline GetCostAndUsageWithResourcesResult& AddGroupDefinitions(const GroupDefinition& value) { m_groupDefinitions.push_back(value); return *this; } /** *

The groups that are specified by the Filter or * GroupBy parameters in the request.

*/ inline GetCostAndUsageWithResourcesResult& AddGroupDefinitions(GroupDefinition&& value) { m_groupDefinitions.push_back(std::move(value)); return *this; } /** *

The time period that is covered by the results in the response.

*/ inline const Aws::Vector& GetResultsByTime() const{ return m_resultsByTime; } /** *

The time period that is covered by the results in the response.

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

The time period that is covered by the results in the response.

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

The time period that is covered by the results in the response.

*/ inline GetCostAndUsageWithResourcesResult& WithResultsByTime(const Aws::Vector& value) { SetResultsByTime(value); return *this;} /** *

The time period that is covered by the results in the response.

*/ inline GetCostAndUsageWithResourcesResult& WithResultsByTime(Aws::Vector&& value) { SetResultsByTime(std::move(value)); return *this;} /** *

The time period that is covered by the results in the response.

*/ inline GetCostAndUsageWithResourcesResult& AddResultsByTime(const ResultByTime& value) { m_resultsByTime.push_back(value); return *this; } /** *

The time period that is covered by the results in the response.

*/ inline GetCostAndUsageWithResourcesResult& AddResultsByTime(ResultByTime&& value) { m_resultsByTime.push_back(std::move(value)); return *this; } private: Aws::String m_nextPageToken; Aws::Vector m_groupDefinitions; Aws::Vector m_resultsByTime; }; } // namespace Model } // namespace CostExplorer } // namespace Aws