AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SeverityCounts.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace imagebuilder {
17namespace Model {
18
27 public:
28 AWS_IMAGEBUILDER_API SeverityCounts() = default;
29 AWS_IMAGEBUILDER_API SeverityCounts(Aws::Utils::Json::JsonView jsonValue);
30 AWS_IMAGEBUILDER_API SeverityCounts& operator=(Aws::Utils::Json::JsonView jsonValue);
31 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline long long GetAll() const { return m_all; }
39 inline bool AllHasBeenSet() const { return m_allHasBeenSet; }
40 inline void SetAll(long long value) {
41 m_allHasBeenSet = true;
42 m_all = value;
43 }
44 inline SeverityCounts& WithAll(long long value) {
45 SetAll(value);
46 return *this;
47 }
49
51
54 inline long long GetCritical() const { return m_critical; }
55 inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; }
56 inline void SetCritical(long long value) {
57 m_criticalHasBeenSet = true;
58 m_critical = value;
59 }
60 inline SeverityCounts& WithCritical(long long value) {
61 SetCritical(value);
62 return *this;
63 }
65
67
70 inline long long GetHigh() const { return m_high; }
71 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
72 inline void SetHigh(long long value) {
73 m_highHasBeenSet = true;
74 m_high = value;
75 }
76 inline SeverityCounts& WithHigh(long long value) {
77 SetHigh(value);
78 return *this;
79 }
81
83
86 inline long long GetMedium() const { return m_medium; }
87 inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; }
88 inline void SetMedium(long long value) {
89 m_mediumHasBeenSet = true;
90 m_medium = value;
91 }
92 inline SeverityCounts& WithMedium(long long value) {
93 SetMedium(value);
94 return *this;
95 }
97 private:
98 long long m_all{0};
99
100 long long m_critical{0};
101
102 long long m_high{0};
103
104 long long m_medium{0};
105 bool m_allHasBeenSet = false;
106 bool m_criticalHasBeenSet = false;
107 bool m_highHasBeenSet = false;
108 bool m_mediumHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace imagebuilder
113} // namespace Aws
SeverityCounts & WithHigh(long long value)
SeverityCounts & WithMedium(long long value)
AWS_IMAGEBUILDER_API SeverityCounts(Aws::Utils::Json::JsonView jsonValue)
SeverityCounts & WithAll(long long value)
AWS_IMAGEBUILDER_API SeverityCounts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API SeverityCounts()=default
SeverityCounts & WithCritical(long long value)
Aws::Utils::Json::JsonValue JsonValue