AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Counts.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/GroupKey.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector2 {
20namespace Model {
21
28class Counts {
29 public:
30 AWS_INSPECTOR2_API Counts() = default;
31 AWS_INSPECTOR2_API Counts(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INSPECTOR2_API Counts& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_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 Counts& WithCount(long long value) {
46 SetCount(value);
47 return *this;
48 }
50
52
55 inline GroupKey GetGroupKey() const { return m_groupKey; }
56 inline bool GroupKeyHasBeenSet() const { return m_groupKeyHasBeenSet; }
57 inline void SetGroupKey(GroupKey value) {
58 m_groupKeyHasBeenSet = true;
59 m_groupKey = value;
60 }
61 inline Counts& WithGroupKey(GroupKey value) {
62 SetGroupKey(value);
63 return *this;
64 }
66 private:
67 long long m_count{0};
68
69 GroupKey m_groupKey{GroupKey::NOT_SET};
70 bool m_countHasBeenSet = false;
71 bool m_groupKeyHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace Inspector2
76} // namespace Aws
bool CountHasBeenSet() const
Definition Counts.h:40
AWS_INSPECTOR2_API Counts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Counts()=default
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Counts & WithGroupKey(GroupKey value)
Definition Counts.h:61
GroupKey GetGroupKey() const
Definition Counts.h:55
void SetGroupKey(GroupKey value)
Definition Counts.h:57
Counts & WithCount(long long value)
Definition Counts.h:45
AWS_INSPECTOR2_API Counts(Aws::Utils::Json::JsonView jsonValue)
long long GetCount() const
Definition Counts.h:39
bool GroupKeyHasBeenSet() const
Definition Counts.h:56
void SetCount(long long value)
Definition Counts.h:41
Aws::Utils::Json::JsonValue JsonValue