AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2
22{
23namespace Model
24{
25
32 class Counts
33 {
34 public:
35 AWS_INSPECTOR2_API Counts() = default;
36 AWS_INSPECTOR2_API Counts(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Counts& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetCount() const { return m_count; }
46 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
47 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
48 inline Counts& WithCount(long long value) { SetCount(value); return *this;}
50
52
55 inline GroupKey GetGroupKey() const { return m_groupKey; }
56 inline bool GroupKeyHasBeenSet() const { return m_groupKeyHasBeenSet; }
57 inline void SetGroupKey(GroupKey value) { m_groupKeyHasBeenSet = true; m_groupKey = value; }
58 inline Counts& WithGroupKey(GroupKey value) { SetGroupKey(value); return *this;}
60 private:
61
62 long long m_count{0};
63 bool m_countHasBeenSet = false;
64
65 GroupKey m_groupKey{GroupKey::NOT_SET};
66 bool m_groupKeyHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace Inspector2
71} // namespace Aws
bool CountHasBeenSet() const
Definition Counts.h:46
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:58
GroupKey GetGroupKey() const
Definition Counts.h:55
void SetGroupKey(GroupKey value)
Definition Counts.h:57
Counts & WithCount(long long value)
Definition Counts.h:48
AWS_INSPECTOR2_API Counts(Aws::Utils::Json::JsonView jsonValue)
long long GetCount() const
Definition Counts.h:45
bool GroupKeyHasBeenSet() const
Definition Counts.h:56
void SetCount(long long value)
Definition Counts.h:47
Aws::Utils::Json::JsonValue JsonValue