AWS SDK for C++

AWS SDK for C++ Version 1.11.909

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
97
100 inline long long GetLow() const { return m_low; }
101 inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
102 inline void SetLow(long long value) {
103 m_lowHasBeenSet = true;
104 m_low = value;
105 }
106 inline SeverityCounts& WithLow(long long value) {
107 SetLow(value);
108 return *this;
109 }
111
113
116 inline long long GetInformational() const { return m_informational; }
117 inline bool InformationalHasBeenSet() const { return m_informationalHasBeenSet; }
118 inline void SetInformational(long long value) {
119 m_informationalHasBeenSet = true;
120 m_informational = value;
121 }
122 inline SeverityCounts& WithInformational(long long value) {
123 SetInformational(value);
124 return *this;
125 }
127
129
132 inline long long GetUntriaged() const { return m_untriaged; }
133 inline bool UntriagedHasBeenSet() const { return m_untriagedHasBeenSet; }
134 inline void SetUntriaged(long long value) {
135 m_untriagedHasBeenSet = true;
136 m_untriaged = value;
137 }
138 inline SeverityCounts& WithUntriaged(long long value) {
139 SetUntriaged(value);
140 return *this;
141 }
143 private:
144 long long m_all{0};
145
146 long long m_medium{0};
147
148 long long m_high{0};
149
150 long long m_critical{0};
151
152 long long m_low{0};
153
154 long long m_informational{0};
155
156 long long m_untriaged{0};
157 bool m_allHasBeenSet = false;
158 bool m_mediumHasBeenSet = false;
159 bool m_highHasBeenSet = false;
160 bool m_criticalHasBeenSet = false;
161 bool m_lowHasBeenSet = false;
162 bool m_informationalHasBeenSet = false;
163 bool m_untriagedHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Inspector2
168} // namespace Aws
SeverityCounts & WithUntriaged(long long value)
SeverityCounts & WithInformational(long long value)
SeverityCounts & WithLow(long long value)
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