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

An object that contains the resource type and the number of * resources.

See Also:

AWS * API Reference

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

The resource type (for example, "AWS::EC2::Instance").

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The resource type (for example, "AWS::EC2::Instance").

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type (for example, "AWS::EC2::Instance").

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type (for example, "AWS::EC2::Instance").

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type (for example, "AWS::EC2::Instance").

*/ inline ResourceCount& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The resource type (for example, "AWS::EC2::Instance").

*/ inline ResourceCount& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The number of resources.

*/ inline long long GetCount() const{ return m_count; } /** *

The number of resources.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of resources.

*/ inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of resources.

*/ inline ResourceCount& WithCount(long long value) { SetCount(value); return *this;} private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; long long m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws