AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GroupedResourceCount.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConfigService {
20namespace Model {
21
29 public:
30 AWS_CONFIGSERVICE_API GroupedResourceCount() = default;
31 AWS_CONFIGSERVICE_API GroupedResourceCount(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetGroupName() const { return m_groupName; }
42 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
43 template <typename GroupNameT = Aws::String>
44 void SetGroupName(GroupNameT&& value) {
45 m_groupNameHasBeenSet = true;
46 m_groupName = std::forward<GroupNameT>(value);
47 }
48 template <typename GroupNameT = Aws::String>
49 GroupedResourceCount& WithGroupName(GroupNameT&& value) {
50 SetGroupName(std::forward<GroupNameT>(value));
51 return *this;
52 }
54
56
59 inline long long GetResourceCount() const { return m_resourceCount; }
60 inline bool ResourceCountHasBeenSet() const { return m_resourceCountHasBeenSet; }
61 inline void SetResourceCount(long long value) {
62 m_resourceCountHasBeenSet = true;
63 m_resourceCount = value;
64 }
65 inline GroupedResourceCount& WithResourceCount(long long value) {
66 SetResourceCount(value);
67 return *this;
68 }
70 private:
71 Aws::String m_groupName;
72
73 long long m_resourceCount{0};
74 bool m_groupNameHasBeenSet = false;
75 bool m_resourceCountHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ConfigService
80} // namespace Aws
AWS_CONFIGSERVICE_API GroupedResourceCount & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API GroupedResourceCount(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API GroupedResourceCount()=default
GroupedResourceCount & WithResourceCount(long long value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
GroupedResourceCount & WithGroupName(GroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue