AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ResourceSeverityBreakdown.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 ResourceSeverityBreakdown() = default;
30 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetOther() const { return m_other; }
37 inline bool OtherHasBeenSet() const { return m_otherHasBeenSet; }
38 inline void SetOther(int value) {
39 m_otherHasBeenSet = true;
40 m_other = value;
41 }
43 SetOther(value);
44 return *this;
45 }
47
49
52 inline int GetFatal() const { return m_fatal; }
53 inline bool FatalHasBeenSet() const { return m_fatalHasBeenSet; }
54 inline void SetFatal(int value) {
55 m_fatalHasBeenSet = true;
56 m_fatal = value;
57 }
59 SetFatal(value);
60 return *this;
61 }
63
65
68 inline int GetCritical() const { return m_critical; }
69 inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; }
70 inline void SetCritical(int value) {
71 m_criticalHasBeenSet = true;
72 m_critical = value;
73 }
75 SetCritical(value);
76 return *this;
77 }
79
81
84 inline int GetHigh() const { return m_high; }
85 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
86 inline void SetHigh(int value) {
87 m_highHasBeenSet = true;
88 m_high = value;
89 }
91 SetHigh(value);
92 return *this;
93 }
95
97
100 inline int GetMedium() const { return m_medium; }
101 inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; }
102 inline void SetMedium(int value) {
103 m_mediumHasBeenSet = true;
104 m_medium = value;
105 }
107 SetMedium(value);
108 return *this;
109 }
111
113
116 inline int GetLow() const { return m_low; }
117 inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
118 inline void SetLow(int value) {
119 m_lowHasBeenSet = true;
120 m_low = value;
121 }
123 SetLow(value);
124 return *this;
125 }
127
129
132 inline int GetInformational() const { return m_informational; }
133 inline bool InformationalHasBeenSet() const { return m_informationalHasBeenSet; }
134 inline void SetInformational(int value) {
135 m_informationalHasBeenSet = true;
136 m_informational = value;
137 }
139 SetInformational(value);
140 return *this;
141 }
143
145
148 inline int GetUnknown() const { return m_unknown; }
149 inline bool UnknownHasBeenSet() const { return m_unknownHasBeenSet; }
150 inline void SetUnknown(int value) {
151 m_unknownHasBeenSet = true;
152 m_unknown = value;
153 }
155 SetUnknown(value);
156 return *this;
157 }
159 private:
160 int m_other{0};
161
162 int m_fatal{0};
163
164 int m_critical{0};
165
166 int m_high{0};
167
168 int m_medium{0};
169
170 int m_low{0};
171
172 int m_informational{0};
173
174 int m_unknown{0};
175 bool m_otherHasBeenSet = false;
176 bool m_fatalHasBeenSet = false;
177 bool m_criticalHasBeenSet = false;
178 bool m_highHasBeenSet = false;
179 bool m_mediumHasBeenSet = false;
180 bool m_lowHasBeenSet = false;
181 bool m_informationalHasBeenSet = false;
182 bool m_unknownHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace SecurityHub
187} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ResourceSeverityBreakdown(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ResourceSeverityBreakdown()=default
AWS_SECURITYHUB_API ResourceSeverityBreakdown & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSeverityBreakdown & WithInformational(int value)
Aws::Utils::Json::JsonValue JsonValue