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

The total number of resources that Config is recording in the region for your * account. If you specify resource types in the request, Config returns only the * total number of resources for those resource types.

* Example

  1. Config is recording three resource types in the * US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 * S3 buckets, for a total of 60 resources.

  2. You make a call to * the GetDiscoveredResourceCounts action and specify the resource * type, "AWS::EC2::Instances", in the request.

  3. *

    Config returns 25 for totalDiscoveredResources.

*/ inline long long GetTotalDiscoveredResources() const{ return m_totalDiscoveredResources; } /** *

The total number of resources that Config is recording in the region for your * account. If you specify resource types in the request, Config returns only the * total number of resources for those resource types.

* Example

  1. Config is recording three resource types in the * US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 * S3 buckets, for a total of 60 resources.

  2. You make a call to * the GetDiscoveredResourceCounts action and specify the resource * type, "AWS::EC2::Instances", in the request.

  3. *

    Config returns 25 for totalDiscoveredResources.

*/ inline void SetTotalDiscoveredResources(long long value) { m_totalDiscoveredResources = value; } /** *

The total number of resources that Config is recording in the region for your * account. If you specify resource types in the request, Config returns only the * total number of resources for those resource types.

* Example

  1. Config is recording three resource types in the * US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 * S3 buckets, for a total of 60 resources.

  2. You make a call to * the GetDiscoveredResourceCounts action and specify the resource * type, "AWS::EC2::Instances", in the request.

  3. *

    Config returns 25 for totalDiscoveredResources.

*/ inline GetDiscoveredResourceCountsResult& WithTotalDiscoveredResources(long long value) { SetTotalDiscoveredResources(value); return *this;} /** *

The list of ResourceCount objects. Each object is listed in * descending order by the number of resources.

*/ inline const Aws::Vector& GetResourceCounts() const{ return m_resourceCounts; } /** *

The list of ResourceCount objects. Each object is listed in * descending order by the number of resources.

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

The list of ResourceCount objects. Each object is listed in * descending order by the number of resources.

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

The list of ResourceCount objects. Each object is listed in * descending order by the number of resources.

*/ inline GetDiscoveredResourceCountsResult& WithResourceCounts(const Aws::Vector& value) { SetResourceCounts(value); return *this;} /** *

The list of ResourceCount objects. Each object is listed in * descending order by the number of resources.

*/ inline GetDiscoveredResourceCountsResult& WithResourceCounts(Aws::Vector&& value) { SetResourceCounts(std::move(value)); return *this;} /** *

The list of ResourceCount objects. Each object is listed in * descending order by the number of resources.

*/ inline GetDiscoveredResourceCountsResult& AddResourceCounts(const ResourceCount& value) { m_resourceCounts.push_back(value); return *this; } /** *

The list of ResourceCount objects. Each object is listed in * descending order by the number of resources.

*/ inline GetDiscoveredResourceCountsResult& AddResourceCounts(ResourceCount&& value) { m_resourceCounts.push_back(std::move(value)); return *this; } /** *

The string that you use in a subsequent request to get the next page of * results in a paginated response.

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

The string that you use in a subsequent request to get the next page of * results in a paginated response.

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

The string that you use in a subsequent request to get the next page of * results in a paginated response.

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

The string that you use in a subsequent request to get the next page of * results in a paginated response.

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

The string that you use in a subsequent request to get the next page of * results in a paginated response.

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

The string that you use in a subsequent request to get the next page of * results in a paginated response.

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

The string that you use in a subsequent request to get the next page of * results in a paginated response.

*/ inline GetDiscoveredResourceCountsResult& 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 GetDiscoveredResourceCountsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDiscoveredResourceCountsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDiscoveredResourceCountsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: long long m_totalDiscoveredResources; Aws::Vector m_resourceCounts; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace ConfigService } // namespace Aws