AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GroupCount.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
29 public:
30 AWS_MACIE2_API GroupCount() = default;
31 AWS_MACIE2_API GroupCount(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetCount() const { return m_count; }
40 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
41 inline void SetCount(long long value) {
42 m_countHasBeenSet = true;
43 m_count = value;
44 }
45 inline GroupCount& WithCount(long long value) {
46 SetCount(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetGroupKey() const { return m_groupKey; }
57 inline bool GroupKeyHasBeenSet() const { return m_groupKeyHasBeenSet; }
58 template <typename GroupKeyT = Aws::String>
59 void SetGroupKey(GroupKeyT&& value) {
60 m_groupKeyHasBeenSet = true;
61 m_groupKey = std::forward<GroupKeyT>(value);
62 }
63 template <typename GroupKeyT = Aws::String>
64 GroupCount& WithGroupKey(GroupKeyT&& value) {
65 SetGroupKey(std::forward<GroupKeyT>(value));
66 return *this;
67 }
69 private:
70 long long m_count{0};
71
72 Aws::String m_groupKey;
73 bool m_countHasBeenSet = false;
74 bool m_groupKeyHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Macie2
79} // namespace Aws
void SetCount(long long value)
Definition GroupCount.h:41
AWS_MACIE2_API GroupCount()=default
const Aws::String & GetGroupKey() const
Definition GroupCount.h:56
AWS_MACIE2_API GroupCount & operator=(Aws::Utils::Json::JsonView jsonValue)
GroupCount & WithCount(long long value)
Definition GroupCount.h:45
GroupCount & WithGroupKey(GroupKeyT &&value)
Definition GroupCount.h:64
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGroupKey(GroupKeyT &&value)
Definition GroupCount.h:59
AWS_MACIE2_API GroupCount(Aws::Utils::Json::JsonView jsonValue)
long long GetCount() const
Definition GroupCount.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue