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

If the number of objects that are still available for retrieval exceeds the * quota, Amazon Web Services returns a NextPageToken value in the response. To * retrieve the next batch of objects, provide the marker from the prior call in * your next request.

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

If the number of objects that are still available for retrieval exceeds the * quota, Amazon Web Services returns a NextPageToken value in the response. To * retrieve the next batch of objects, provide the marker from the prior call in * your next request.

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

If the number of objects that are still available for retrieval exceeds the * quota, Amazon Web Services returns a NextPageToken value in the response. To * retrieve the next batch of objects, provide the marker from the prior call in * your next request.

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

If the number of objects that are still available for retrieval exceeds the * quota, Amazon Web Services returns a NextPageToken value in the response. To * retrieve the next batch of objects, provide the marker from the prior call in * your next request.

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

If the number of objects that are still available for retrieval exceeds the * quota, Amazon Web Services returns a NextPageToken value in the response. To * retrieve the next batch of objects, provide the marker from the prior call in * your next request.

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

If the number of objects that are still available for retrieval exceeds the * quota, Amazon Web Services returns a NextPageToken value in the response. To * retrieve the next batch of objects, provide the marker from the prior call in * your next request.

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

If the number of objects that are still available for retrieval exceeds the * quota, Amazon Web Services returns a NextPageToken value in the response. To * retrieve the next batch of objects, provide the marker from the prior call in * your next request.

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

The names of the Cost Categories.

*/ inline const Aws::Vector& GetCostCategoryNames() const{ return m_costCategoryNames; } /** *

The names of the Cost Categories.

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

The names of the Cost Categories.

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

The names of the Cost Categories.

*/ inline GetCostCategoriesResult& WithCostCategoryNames(const Aws::Vector& value) { SetCostCategoryNames(value); return *this;} /** *

The names of the Cost Categories.

*/ inline GetCostCategoriesResult& WithCostCategoryNames(Aws::Vector&& value) { SetCostCategoryNames(std::move(value)); return *this;} /** *

The names of the Cost Categories.

*/ inline GetCostCategoriesResult& AddCostCategoryNames(const Aws::String& value) { m_costCategoryNames.push_back(value); return *this; } /** *

The names of the Cost Categories.

*/ inline GetCostCategoriesResult& AddCostCategoryNames(Aws::String&& value) { m_costCategoryNames.push_back(std::move(value)); return *this; } /** *

The names of the Cost Categories.

*/ inline GetCostCategoriesResult& AddCostCategoryNames(const char* value) { m_costCategoryNames.push_back(value); return *this; } /** *

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

*/ inline const Aws::Vector& GetCostCategoryValues() const{ return m_costCategoryValues; } /** *

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

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

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

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

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

*/ inline GetCostCategoriesResult& WithCostCategoryValues(const Aws::Vector& value) { SetCostCategoryValues(value); return *this;} /** *

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

*/ inline GetCostCategoriesResult& WithCostCategoryValues(Aws::Vector&& value) { SetCostCategoryValues(std::move(value)); return *this;} /** *

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

*/ inline GetCostCategoriesResult& AddCostCategoryValues(const Aws::String& value) { m_costCategoryValues.push_back(value); return *this; } /** *

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

*/ inline GetCostCategoriesResult& AddCostCategoryValues(Aws::String&& value) { m_costCategoryValues.push_back(std::move(value)); return *this; } /** *

The Cost Category values.

If the CostCategoryName key * isn't specified in the request, the CostCategoryValues fields * aren't returned.

*/ inline GetCostCategoriesResult& AddCostCategoryValues(const char* value) { m_costCategoryValues.push_back(value); return *this; } /** *

The number of objects that are returned.

*/ inline int GetReturnSize() const{ return m_returnSize; } /** *

The number of objects that are returned.

*/ inline void SetReturnSize(int value) { m_returnSize = value; } /** *

The number of objects that are returned.

*/ inline GetCostCategoriesResult& WithReturnSize(int value) { SetReturnSize(value); return *this;} /** *

The total number of objects.

*/ inline int GetTotalSize() const{ return m_totalSize; } /** *

The total number of objects.

*/ inline void SetTotalSize(int value) { m_totalSize = value; } /** *

The total number of objects.

*/ inline GetCostCategoriesResult& WithTotalSize(int value) { SetTotalSize(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 GetCostCategoriesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCostCategoriesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCostCategoriesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextPageToken; Aws::Vector m_costCategoryNames; Aws::Vector m_costCategoryValues; int m_returnSize; int m_totalSize; Aws::String m_requestId; }; } // namespace Model } // namespace CostExplorer } // namespace Aws