AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SeverityCounts.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Inspector2 {
17namespace Model {
18
26 public:
27 AWS_INSPECTOR2_API SeverityCounts() = default;
28 AWS_INSPECTOR2_API SeverityCounts(Aws::Utils::Json::JsonView jsonValue);
29 AWS_INSPECTOR2_API SeverityCounts& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline long long GetAll() const { return m_all; }
37 inline bool AllHasBeenSet() const { return m_allHasBeenSet; }
38 inline void SetAll(long long value) {
39 m_allHasBeenSet = true;
40 m_all = value;
41 }
42 inline SeverityCounts& WithAll(long long value) {
43 SetAll(value);
44 return *this;
45 }
47
49
52 inline long long GetMedium() const { return m_medium; }
53 inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; }
54 inline void SetMedium(long long value) {
55 m_mediumHasBeenSet = true;
56 m_medium = value;
57 }
58 inline SeverityCounts& WithMedium(long long value) {
59 SetMedium(value);
60 return *this;
61 }
63
65
68 inline long long GetHigh() const { return m_high; }
69 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
70 inline void SetHigh(long long value) {
71 m_highHasBeenSet = true;
72 m_high = value;
73 }
74 inline SeverityCounts& WithHigh(long long value) {
75 SetHigh(value);
76 return *this;
77 }
79
81
84 inline long long GetCritical() const { return m_critical; }
85 inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; }
86 inline void SetCritical(long long value) {
87 m_criticalHasBeenSet = true;
88 m_critical = value;
89 }
90 inline SeverityCounts& WithCritical(long long value) {
91 SetCritical(value);
92 return *this;
93 }
95 private:
96 long long m_all{0};
97
98 long long m_medium{0};
99
100 long long m_high{0};
101
102 long long m_critical{0};
103 bool m_allHasBeenSet = false;
104 bool m_mediumHasBeenSet = false;
105 bool m_highHasBeenSet = false;
106 bool m_criticalHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Inspector2
111} // namespace Aws
SeverityCounts & WithMedium(long long value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
SeverityCounts & WithHigh(long long value)
AWS_INSPECTOR2_API SeverityCounts(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API SeverityCounts & operator=(Aws::Utils::Json::JsonView jsonValue)
SeverityCounts & WithCritical(long long value)
AWS_INSPECTOR2_API SeverityCounts()=default
SeverityCounts & WithAll(long long value)
Aws::Utils::Json::JsonValue JsonValue