/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ResourceExplorer2 { namespace Model { /** *

Information about the number of results that match the query. At this time, * Amazon Web Services Resource Explorer doesn't count more than 1,000 matches for * any query. This structure provides information about whether the query exceeded * this limit.

This field is included in every page when you paginate the * results.

See Also:

AWS * API Reference

*/ class ResourceCount { public: AWS_RESOURCEEXPLORER2_API ResourceCount(); AWS_RESOURCEEXPLORER2_API ResourceCount(Aws::Utils::Json::JsonView jsonValue); AWS_RESOURCEEXPLORER2_API ResourceCount& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Indicates whether the TotalResources value represents an * exhaustive count of search results.

*/ inline bool GetComplete() const{ return m_complete; } /** *

Indicates whether the TotalResources value represents an * exhaustive count of search results.

*/ inline bool CompleteHasBeenSet() const { return m_completeHasBeenSet; } /** *

Indicates whether the TotalResources value represents an * exhaustive count of search results.

*/ inline void SetComplete(bool value) { m_completeHasBeenSet = true; m_complete = value; } /** *

Indicates whether the TotalResources value represents an * exhaustive count of search results.

*/ inline ResourceCount& WithComplete(bool value) { SetComplete(value); return *this;} /** *

The number of resources that match the search query. This value can't exceed * 1,000. If there are more than 1,000 resources that match the query, then only * 1,000 are counted and the Complete field is set to false. We * recommend that you refine your query to return a smaller number of results.

*/ inline long long GetTotalResources() const{ return m_totalResources; } /** *

The number of resources that match the search query. This value can't exceed * 1,000. If there are more than 1,000 resources that match the query, then only * 1,000 are counted and the Complete field is set to false. We * recommend that you refine your query to return a smaller number of results.

*/ inline bool TotalResourcesHasBeenSet() const { return m_totalResourcesHasBeenSet; } /** *

The number of resources that match the search query. This value can't exceed * 1,000. If there are more than 1,000 resources that match the query, then only * 1,000 are counted and the Complete field is set to false. We * recommend that you refine your query to return a smaller number of results.

*/ inline void SetTotalResources(long long value) { m_totalResourcesHasBeenSet = true; m_totalResources = value; } /** *

The number of resources that match the search query. This value can't exceed * 1,000. If there are more than 1,000 resources that match the query, then only * 1,000 are counted and the Complete field is set to false. We * recommend that you refine your query to return a smaller number of results.

*/ inline ResourceCount& WithTotalResources(long long value) { SetTotalResources(value); return *this;} private: bool m_complete; bool m_completeHasBeenSet = false; long long m_totalResources; bool m_totalResourcesHasBeenSet = false; }; } // namespace Model } // namespace ResourceExplorer2 } // namespace Aws