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

The token for the next set of retrievable results. Amazon Web Services * 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. Amazon Web Services * 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. Amazon Web Services * 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. Amazon Web Services * 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. Amazon Web Services * 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. Amazon Web Services * 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. Amazon Web Services * 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's covered by the results in the response.

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

The time period that's covered by the results in the response.

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

The time period that's covered by the results in the response.

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

The time period that's covered by the results in the response.

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

The time period that's covered by the results in the response.

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

The time period that's covered by the results in the response.

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

The time period that's covered by the results in the response.

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

The attributes that apply to a specific dimension value. For example, if the * value is a linked account, the attribute is that account name.

*/ inline const Aws::Vector& GetDimensionValueAttributes() const{ return m_dimensionValueAttributes; } /** *

The attributes that apply to a specific dimension value. For example, if the * value is a linked account, the attribute is that account name.

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

The attributes that apply to a specific dimension value. For example, if the * value is a linked account, the attribute is that account name.

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

The attributes that apply to a specific dimension value. For example, if the * value is a linked account, the attribute is that account name.

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

The attributes that apply to a specific dimension value. For example, if the * value is a linked account, the attribute is that account name.

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

The attributes that apply to a specific dimension value. For example, if the * value is a linked account, the attribute is that account name.

*/ inline GetCostAndUsageWithResourcesResult& AddDimensionValueAttributes(const DimensionValuesWithAttributes& value) { m_dimensionValueAttributes.push_back(value); return *this; } /** *

The attributes that apply to a specific dimension value. For example, if the * value is a linked account, the attribute is that account name.

*/ inline GetCostAndUsageWithResourcesResult& AddDimensionValueAttributes(DimensionValuesWithAttributes&& value) { m_dimensionValueAttributes.push_back(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 GetCostAndUsageWithResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCostAndUsageWithResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCostAndUsageWithResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextPageToken; Aws::Vector m_groupDefinitions; Aws::Vector m_resultsByTime; Aws::Vector m_dimensionValueAttributes; Aws::String m_requestId; }; } // namespace Model } // namespace CostExplorer } // namespace Aws