/** * 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 NetworkManager { namespace Model { /** *

Describes a resource count.

See Also:

AWS * API Reference

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

The resource type.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The resource type.

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

The resource type.

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

The resource type.

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

The resource type.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The resource type.

*/ inline NetworkResourceCount& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The resource type.

*/ inline NetworkResourceCount& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The resource type.

*/ inline NetworkResourceCount& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

The resource count.

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

The resource count.

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

The resource count.

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

The resource count.

*/ inline NetworkResourceCount& WithCount(int value) { SetCount(value); return *this;} private: Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws