AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SeveritySummary.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SSM {
17namespace Model {
18
26 public:
27 AWS_SSM_API SeveritySummary() = default;
31
33
38 inline int GetCriticalCount() const { return m_criticalCount; }
39 inline bool CriticalCountHasBeenSet() const { return m_criticalCountHasBeenSet; }
40 inline void SetCriticalCount(int value) {
41 m_criticalCountHasBeenSet = true;
42 m_criticalCount = value;
43 }
45 SetCriticalCount(value);
46 return *this;
47 }
49
51
56 inline int GetHighCount() const { return m_highCount; }
57 inline bool HighCountHasBeenSet() const { return m_highCountHasBeenSet; }
58 inline void SetHighCount(int value) {
59 m_highCountHasBeenSet = true;
60 m_highCount = value;
61 }
62 inline SeveritySummary& WithHighCount(int value) {
63 SetHighCount(value);
64 return *this;
65 }
67
69
74 inline int GetMediumCount() const { return m_mediumCount; }
75 inline bool MediumCountHasBeenSet() const { return m_mediumCountHasBeenSet; }
76 inline void SetMediumCount(int value) {
77 m_mediumCountHasBeenSet = true;
78 m_mediumCount = value;
79 }
80 inline SeveritySummary& WithMediumCount(int value) {
81 SetMediumCount(value);
82 return *this;
83 }
85
87
92 inline int GetLowCount() const { return m_lowCount; }
93 inline bool LowCountHasBeenSet() const { return m_lowCountHasBeenSet; }
94 inline void SetLowCount(int value) {
95 m_lowCountHasBeenSet = true;
96 m_lowCount = value;
97 }
98 inline SeveritySummary& WithLowCount(int value) {
99 SetLowCount(value);
100 return *this;
101 }
103
105
110 inline int GetInformationalCount() const { return m_informationalCount; }
111 inline bool InformationalCountHasBeenSet() const { return m_informationalCountHasBeenSet; }
112 inline void SetInformationalCount(int value) {
113 m_informationalCountHasBeenSet = true;
114 m_informationalCount = value;
115 }
118 return *this;
119 }
121
123
128 inline int GetUnspecifiedCount() const { return m_unspecifiedCount; }
129 inline bool UnspecifiedCountHasBeenSet() const { return m_unspecifiedCountHasBeenSet; }
130 inline void SetUnspecifiedCount(int value) {
131 m_unspecifiedCountHasBeenSet = true;
132 m_unspecifiedCount = value;
133 }
135 SetUnspecifiedCount(value);
136 return *this;
137 }
139 private:
140 int m_criticalCount{0};
141
142 int m_highCount{0};
143
144 int m_mediumCount{0};
145
146 int m_lowCount{0};
147
148 int m_informationalCount{0};
149
150 int m_unspecifiedCount{0};
151 bool m_criticalCountHasBeenSet = false;
152 bool m_highCountHasBeenSet = false;
153 bool m_mediumCountHasBeenSet = false;
154 bool m_lowCountHasBeenSet = false;
155 bool m_informationalCountHasBeenSet = false;
156 bool m_unspecifiedCountHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace SSM
161} // namespace Aws
SeveritySummary & WithLowCount(int value)
SeveritySummary & WithHighCount(int value)
SeveritySummary & WithCriticalCount(int value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
SeveritySummary & WithInformationalCount(int value)
AWS_SSM_API SeveritySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API SeveritySummary()=default
AWS_SSM_API SeveritySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SeveritySummary & WithUnspecifiedCount(int value)
SeveritySummary & WithMediumCount(int value)
Aws::Utils::Json::JsonValue JsonValue