1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/config/ConfigService_EXPORTS.h> 8 #include <aws/config/model/ResourceType.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace ConfigService 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>An object that contains the resource type and the number of 28 * resources.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ResourceCount">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_CONFIGSERVICE_API ResourceCount 33 { 34 public: 35 ResourceCount(); 36 ResourceCount(Aws::Utils::Json::JsonView jsonValue); 37 ResourceCount& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The resource type (for example, <code>"AWS::EC2::Instance"</code>).</p> 43 */ GetResourceType()44 inline const ResourceType& GetResourceType() const{ return m_resourceType; } 45 46 /** 47 * <p>The resource type (for example, <code>"AWS::EC2::Instance"</code>).</p> 48 */ ResourceTypeHasBeenSet()49 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } 50 51 /** 52 * <p>The resource type (for example, <code>"AWS::EC2::Instance"</code>).</p> 53 */ SetResourceType(const ResourceType & value)54 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } 55 56 /** 57 * <p>The resource type (for example, <code>"AWS::EC2::Instance"</code>).</p> 58 */ SetResourceType(ResourceType && value)59 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } 60 61 /** 62 * <p>The resource type (for example, <code>"AWS::EC2::Instance"</code>).</p> 63 */ WithResourceType(const ResourceType & value)64 inline ResourceCount& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} 65 66 /** 67 * <p>The resource type (for example, <code>"AWS::EC2::Instance"</code>).</p> 68 */ WithResourceType(ResourceType && value)69 inline ResourceCount& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} 70 71 72 /** 73 * <p>The number of resources.</p> 74 */ GetCount()75 inline long long GetCount() const{ return m_count; } 76 77 /** 78 * <p>The number of resources.</p> 79 */ CountHasBeenSet()80 inline bool CountHasBeenSet() const { return m_countHasBeenSet; } 81 82 /** 83 * <p>The number of resources.</p> 84 */ SetCount(long long value)85 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; } 86 87 /** 88 * <p>The number of resources.</p> 89 */ WithCount(long long value)90 inline ResourceCount& WithCount(long long value) { SetCount(value); return *this;} 91 92 private: 93 94 ResourceType m_resourceType; 95 bool m_resourceTypeHasBeenSet; 96 97 long long m_count; 98 bool m_countHasBeenSet; 99 }; 100 101 } // namespace Model 102 } // namespace ConfigService 103 } // namespace Aws 104