AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SeverityTrendsCount.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SecurityHub {
17namespace Model {
18
26 public:
27 AWS_SECURITYHUB_API SeverityTrendsCount() = default;
28 AWS_SECURITYHUB_API SeverityTrendsCount(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline long long GetUnknown() const { return m_unknown; }
38 inline bool UnknownHasBeenSet() const { return m_unknownHasBeenSet; }
39 inline void SetUnknown(long long value) {
40 m_unknownHasBeenSet = true;
41 m_unknown = value;
42 }
43 inline SeverityTrendsCount& WithUnknown(long long value) {
44 SetUnknown(value);
45 return *this;
46 }
48
50
54 inline long long GetInformational() const { return m_informational; }
55 inline bool InformationalHasBeenSet() const { return m_informationalHasBeenSet; }
56 inline void SetInformational(long long value) {
57 m_informationalHasBeenSet = true;
58 m_informational = value;
59 }
60 inline SeverityTrendsCount& WithInformational(long long value) {
61 SetInformational(value);
62 return *this;
63 }
65
67
71 inline long long GetLow() const { return m_low; }
72 inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
73 inline void SetLow(long long value) {
74 m_lowHasBeenSet = true;
75 m_low = value;
76 }
77 inline SeverityTrendsCount& WithLow(long long value) {
78 SetLow(value);
79 return *this;
80 }
82
84
88 inline long long GetMedium() const { return m_medium; }
89 inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; }
90 inline void SetMedium(long long value) {
91 m_mediumHasBeenSet = true;
92 m_medium = value;
93 }
94 inline SeverityTrendsCount& WithMedium(long long value) {
95 SetMedium(value);
96 return *this;
97 }
99
101
105 inline long long GetHigh() const { return m_high; }
106 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
107 inline void SetHigh(long long value) {
108 m_highHasBeenSet = true;
109 m_high = value;
110 }
111 inline SeverityTrendsCount& WithHigh(long long value) {
112 SetHigh(value);
113 return *this;
114 }
116
118
122 inline long long GetCritical() const { return m_critical; }
123 inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; }
124 inline void SetCritical(long long value) {
125 m_criticalHasBeenSet = true;
126 m_critical = value;
127 }
128 inline SeverityTrendsCount& WithCritical(long long value) {
129 SetCritical(value);
130 return *this;
131 }
133
135
139 inline long long GetFatal() const { return m_fatal; }
140 inline bool FatalHasBeenSet() const { return m_fatalHasBeenSet; }
141 inline void SetFatal(long long value) {
142 m_fatalHasBeenSet = true;
143 m_fatal = value;
144 }
145 inline SeverityTrendsCount& WithFatal(long long value) {
146 SetFatal(value);
147 return *this;
148 }
150
152
156 inline long long GetOther() const { return m_other; }
157 inline bool OtherHasBeenSet() const { return m_otherHasBeenSet; }
158 inline void SetOther(long long value) {
159 m_otherHasBeenSet = true;
160 m_other = value;
161 }
162 inline SeverityTrendsCount& WithOther(long long value) {
163 SetOther(value);
164 return *this;
165 }
167 private:
168 long long m_unknown{0};
169
170 long long m_informational{0};
171
172 long long m_low{0};
173
174 long long m_medium{0};
175
176 long long m_high{0};
177
178 long long m_critical{0};
179
180 long long m_fatal{0};
181
182 long long m_other{0};
183 bool m_unknownHasBeenSet = false;
184 bool m_informationalHasBeenSet = false;
185 bool m_lowHasBeenSet = false;
186 bool m_mediumHasBeenSet = false;
187 bool m_highHasBeenSet = false;
188 bool m_criticalHasBeenSet = false;
189 bool m_fatalHasBeenSet = false;
190 bool m_otherHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace SecurityHub
195} // namespace Aws
Aws::Utils::Json::JsonValue JsonValue