AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
SeverityBreakdown.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GuardDuty {
17namespace Model {
18
26 public:
27 AWS_GUARDDUTY_API SeverityBreakdown() = default;
28 AWS_GUARDDUTY_API SeverityBreakdown(Aws::Utils::Json::JsonView jsonValue);
30 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetCritical() const { return m_critical; }
37 inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; }
38 inline void SetCritical(int value) {
39 m_criticalHasBeenSet = true;
40 m_critical = value;
41 }
42 inline SeverityBreakdown& WithCritical(int value) {
43 SetCritical(value);
44 return *this;
45 }
47
49
52 inline int GetHigh() const { return m_high; }
53 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
54 inline void SetHigh(int value) {
55 m_highHasBeenSet = true;
56 m_high = value;
57 }
58 inline SeverityBreakdown& WithHigh(int value) {
59 SetHigh(value);
60 return *this;
61 }
63
65
68 inline int GetMedium() const { return m_medium; }
69 inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; }
70 inline void SetMedium(int value) {
71 m_mediumHasBeenSet = true;
72 m_medium = value;
73 }
74 inline SeverityBreakdown& WithMedium(int value) {
75 SetMedium(value);
76 return *this;
77 }
79
81
84 inline int GetLow() const { return m_low; }
85 inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
86 inline void SetLow(int value) {
87 m_lowHasBeenSet = true;
88 m_low = value;
89 }
90 inline SeverityBreakdown& WithLow(int value) {
91 SetLow(value);
92 return *this;
93 }
95
97
100 inline int GetInfo() const { return m_info; }
101 inline bool InfoHasBeenSet() const { return m_infoHasBeenSet; }
102 inline void SetInfo(int value) {
103 m_infoHasBeenSet = true;
104 m_info = value;
105 }
106 inline SeverityBreakdown& WithInfo(int value) {
107 SetInfo(value);
108 return *this;
109 }
111 private:
112 int m_critical{0};
113
114 int m_high{0};
115
116 int m_medium{0};
117
118 int m_low{0};
119
120 int m_info{0};
121 bool m_criticalHasBeenSet = false;
122 bool m_highHasBeenSet = false;
123 bool m_mediumHasBeenSet = false;
124 bool m_lowHasBeenSet = false;
125 bool m_infoHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace GuardDuty
130} // namespace Aws
AWS_GUARDDUTY_API SeverityBreakdown & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API SeverityBreakdown()=default
SeverityBreakdown & WithHigh(int value)
SeverityBreakdown & WithCritical(int value)
SeverityBreakdown & WithMedium(int value)
AWS_GUARDDUTY_API SeverityBreakdown(Aws::Utils::Json::JsonView jsonValue)
SeverityBreakdown & WithLow(int value)
SeverityBreakdown & WithInfo(int value)
Aws::Utils::Json::JsonValue JsonValue