AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const GroupKey& GetGroupKey() const{ return m_groupKey; }
56 inline bool GroupKeyHasBeenSet() const { return m_groupKeyHasBeenSet; }
57 inline void SetGroupKey(const GroupKey& value) { m_groupKeyHasBeenSet = true; m_groupKey = value; }
58 inline void SetGroupKey(GroupKey&& value) { m_groupKeyHasBeenSet = true; m_groupKey = std::move(value); }
59 inline Counts& WithGroupKey(const GroupKey& value) { SetGroupKey(value); return *this;}
60 inline Counts& WithGroupKey(GroupKey&& value) { SetGroupKey(std::move(value)); return *this;}
62 private:
63
64 long long m_count;
65 bool m_countHasBeenSet = false;
66
67 GroupKey m_groupKey;
68 bool m_groupKeyHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Inspector2
73} // namespace Aws
bool CountHasBeenSet() const
Definition Counts.h:46
AWS_INSPECTOR2_API Counts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Counts & WithGroupKey(const GroupKey &value)
Definition Counts.h:59
void SetGroupKey(const 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
const GroupKey & GetGroupKey() const
Definition Counts.h:55
bool GroupKeyHasBeenSet() const
Definition Counts.h:56
void SetGroupKey(GroupKey &&value)
Definition Counts.h:58
Counts & WithGroupKey(GroupKey &&value)
Definition Counts.h:60
void SetCount(long long value)
Definition Counts.h:47
AWS_INSPECTOR2_API Counts()
Aws::Utils::Json::JsonValue JsonValue