/** * 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 { /** *

The count of resources that are grouped by the group name.

See * Also:

AWS * API Reference

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

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline GroupedResourceCount& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline GroupedResourceCount& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The name of the group that can be region, account ID, or resource type. For * example, region1, region2 if the region was chosen as * GroupByKey.

*/ inline GroupedResourceCount& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The number of resources in the group.

*/ inline long long GetResourceCount() const{ return m_resourceCount; } /** *

The number of resources in the group.

*/ inline bool ResourceCountHasBeenSet() const { return m_resourceCountHasBeenSet; } /** *

The number of resources in the group.

*/ inline void SetResourceCount(long long value) { m_resourceCountHasBeenSet = true; m_resourceCount = value; } /** *

The number of resources in the group.

*/ inline GroupedResourceCount& WithResourceCount(long long value) { SetResourceCount(value); return *this;} private: Aws::String m_groupName; bool m_groupNameHasBeenSet = false; long long m_resourceCount; bool m_resourceCountHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws