AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceSeverityBreakdown.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_SECURITYHUB_API ResourceSeverityBreakdown() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline int GetOther() const { return m_other; }
44 inline bool OtherHasBeenSet() const { return m_otherHasBeenSet; }
45 inline void SetOther(int value) { m_otherHasBeenSet = true; m_other = value; }
46 inline ResourceSeverityBreakdown& WithOther(int value) { SetOther(value); return *this;}
48
50
53 inline int GetFatal() const { return m_fatal; }
54 inline bool FatalHasBeenSet() const { return m_fatalHasBeenSet; }
55 inline void SetFatal(int value) { m_fatalHasBeenSet = true; m_fatal = value; }
56 inline ResourceSeverityBreakdown& WithFatal(int value) { SetFatal(value); return *this;}
58
60
63 inline int GetCritical() const { return m_critical; }
64 inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; }
65 inline void SetCritical(int value) { m_criticalHasBeenSet = true; m_critical = value; }
66 inline ResourceSeverityBreakdown& WithCritical(int value) { SetCritical(value); return *this;}
68
70
73 inline int GetHigh() const { return m_high; }
74 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
75 inline void SetHigh(int value) { m_highHasBeenSet = true; m_high = value; }
76 inline ResourceSeverityBreakdown& WithHigh(int value) { SetHigh(value); return *this;}
78
80
83 inline int GetMedium() const { return m_medium; }
84 inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; }
85 inline void SetMedium(int value) { m_mediumHasBeenSet = true; m_medium = value; }
86 inline ResourceSeverityBreakdown& WithMedium(int value) { SetMedium(value); return *this;}
88
90
93 inline int GetLow() const { return m_low; }
94 inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
95 inline void SetLow(int value) { m_lowHasBeenSet = true; m_low = value; }
96 inline ResourceSeverityBreakdown& WithLow(int value) { SetLow(value); return *this;}
98
100
103 inline int GetInformational() const { return m_informational; }
104 inline bool InformationalHasBeenSet() const { return m_informationalHasBeenSet; }
105 inline void SetInformational(int value) { m_informationalHasBeenSet = true; m_informational = value; }
106 inline ResourceSeverityBreakdown& WithInformational(int value) { SetInformational(value); return *this;}
108
110
113 inline int GetUnknown() const { return m_unknown; }
114 inline bool UnknownHasBeenSet() const { return m_unknownHasBeenSet; }
115 inline void SetUnknown(int value) { m_unknownHasBeenSet = true; m_unknown = value; }
116 inline ResourceSeverityBreakdown& WithUnknown(int value) { SetUnknown(value); return *this;}
118 private:
119
120 int m_other{0};
121 bool m_otherHasBeenSet = false;
122
123 int m_fatal{0};
124 bool m_fatalHasBeenSet = false;
125
126 int m_critical{0};
127 bool m_criticalHasBeenSet = false;
128
129 int m_high{0};
130 bool m_highHasBeenSet = false;
131
132 int m_medium{0};
133 bool m_mediumHasBeenSet = false;
134
135 int m_low{0};
136 bool m_lowHasBeenSet = false;
137
138 int m_informational{0};
139 bool m_informationalHasBeenSet = false;
140
141 int m_unknown{0};
142 bool m_unknownHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SecurityHub
147} // 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