AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
PatchSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API PatchSummary() = default;
31 AWS_SECURITYHUB_API PatchSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API PatchSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 PatchSummary& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
61 inline int GetInstalledCount() const { return m_installedCount; }
62 inline bool InstalledCountHasBeenSet() const { return m_installedCountHasBeenSet; }
63 inline void SetInstalledCount(int value) {
64 m_installedCountHasBeenSet = true;
65 m_installedCount = value;
66 }
67 inline PatchSummary& WithInstalledCount(int value) {
68 SetInstalledCount(value);
69 return *this;
70 }
72
74
79 inline int GetMissingCount() const { return m_missingCount; }
80 inline bool MissingCountHasBeenSet() const { return m_missingCountHasBeenSet; }
81 inline void SetMissingCount(int value) {
82 m_missingCountHasBeenSet = true;
83 m_missingCount = value;
84 }
85 inline PatchSummary& WithMissingCount(int value) {
86 SetMissingCount(value);
87 return *this;
88 }
90
92
97 inline int GetFailedCount() const { return m_failedCount; }
98 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
99 inline void SetFailedCount(int value) {
100 m_failedCountHasBeenSet = true;
101 m_failedCount = value;
102 }
103 inline PatchSummary& WithFailedCount(int value) {
104 SetFailedCount(value);
105 return *this;
106 }
108
110
115 inline int GetInstalledOtherCount() const { return m_installedOtherCount; }
116 inline bool InstalledOtherCountHasBeenSet() const { return m_installedOtherCountHasBeenSet; }
117 inline void SetInstalledOtherCount(int value) {
118 m_installedOtherCountHasBeenSet = true;
119 m_installedOtherCount = value;
120 }
123 return *this;
124 }
126
128
133 inline int GetInstalledRejectedCount() const { return m_installedRejectedCount; }
134 inline bool InstalledRejectedCountHasBeenSet() const { return m_installedRejectedCountHasBeenSet; }
135 inline void SetInstalledRejectedCount(int value) {
136 m_installedRejectedCountHasBeenSet = true;
137 m_installedRejectedCount = value;
138 }
141 return *this;
142 }
144
146
151 inline int GetInstalledPendingReboot() const { return m_installedPendingReboot; }
152 inline bool InstalledPendingRebootHasBeenSet() const { return m_installedPendingRebootHasBeenSet; }
153 inline void SetInstalledPendingReboot(int value) {
154 m_installedPendingRebootHasBeenSet = true;
155 m_installedPendingReboot = value;
156 }
159 return *this;
160 }
162
164
169 inline const Aws::String& GetOperationStartTime() const { return m_operationStartTime; }
170 inline bool OperationStartTimeHasBeenSet() const { return m_operationStartTimeHasBeenSet; }
171 template <typename OperationStartTimeT = Aws::String>
172 void SetOperationStartTime(OperationStartTimeT&& value) {
173 m_operationStartTimeHasBeenSet = true;
174 m_operationStartTime = std::forward<OperationStartTimeT>(value);
175 }
176 template <typename OperationStartTimeT = Aws::String>
177 PatchSummary& WithOperationStartTime(OperationStartTimeT&& value) {
178 SetOperationStartTime(std::forward<OperationStartTimeT>(value));
179 return *this;
180 }
182
184
189 inline const Aws::String& GetOperationEndTime() const { return m_operationEndTime; }
190 inline bool OperationEndTimeHasBeenSet() const { return m_operationEndTimeHasBeenSet; }
191 template <typename OperationEndTimeT = Aws::String>
192 void SetOperationEndTime(OperationEndTimeT&& value) {
193 m_operationEndTimeHasBeenSet = true;
194 m_operationEndTime = std::forward<OperationEndTimeT>(value);
195 }
196 template <typename OperationEndTimeT = Aws::String>
197 PatchSummary& WithOperationEndTime(OperationEndTimeT&& value) {
198 SetOperationEndTime(std::forward<OperationEndTimeT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::String& GetRebootOption() const { return m_rebootOption; }
209 inline bool RebootOptionHasBeenSet() const { return m_rebootOptionHasBeenSet; }
210 template <typename RebootOptionT = Aws::String>
211 void SetRebootOption(RebootOptionT&& value) {
212 m_rebootOptionHasBeenSet = true;
213 m_rebootOption = std::forward<RebootOptionT>(value);
214 }
215 template <typename RebootOptionT = Aws::String>
216 PatchSummary& WithRebootOption(RebootOptionT&& value) {
217 SetRebootOption(std::forward<RebootOptionT>(value));
218 return *this;
219 }
221
223
228 inline const Aws::String& GetOperation() const { return m_operation; }
229 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
230 template <typename OperationT = Aws::String>
231 void SetOperation(OperationT&& value) {
232 m_operationHasBeenSet = true;
233 m_operation = std::forward<OperationT>(value);
234 }
235 template <typename OperationT = Aws::String>
236 PatchSummary& WithOperation(OperationT&& value) {
237 SetOperation(std::forward<OperationT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_id;
243
244 int m_installedCount{0};
245
246 int m_missingCount{0};
247
248 int m_failedCount{0};
249
250 int m_installedOtherCount{0};
251
252 int m_installedRejectedCount{0};
253
254 int m_installedPendingReboot{0};
255
256 Aws::String m_operationStartTime;
257
258 Aws::String m_operationEndTime;
259
260 Aws::String m_rebootOption;
261
262 Aws::String m_operation;
263 bool m_idHasBeenSet = false;
264 bool m_installedCountHasBeenSet = false;
265 bool m_missingCountHasBeenSet = false;
266 bool m_failedCountHasBeenSet = false;
267 bool m_installedOtherCountHasBeenSet = false;
268 bool m_installedRejectedCountHasBeenSet = false;
269 bool m_installedPendingRebootHasBeenSet = false;
270 bool m_operationStartTimeHasBeenSet = false;
271 bool m_operationEndTimeHasBeenSet = false;
272 bool m_rebootOptionHasBeenSet = false;
273 bool m_operationHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace SecurityHub
278} // namespace Aws
PatchSummary & WithRebootOption(RebootOptionT &&value)
AWS_SECURITYHUB_API PatchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOperationStartTime(OperationStartTimeT &&value)
PatchSummary & WithInstalledRejectedCount(int value)
AWS_SECURITYHUB_API PatchSummary()=default
PatchSummary & WithInstalledPendingReboot(int value)
const Aws::String & GetOperationStartTime() const
const Aws::String & GetOperation() const
PatchSummary & WithInstalledCount(int value)
PatchSummary & WithOperation(OperationT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
PatchSummary & WithFailedCount(int value)
AWS_SECURITYHUB_API PatchSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOperationEndTime() const
const Aws::String & GetRebootOption() const
PatchSummary & WithId(IdT &&value)
void SetOperation(OperationT &&value)
void SetRebootOption(RebootOptionT &&value)
PatchSummary & WithMissingCount(int value)
const Aws::String & GetId() const
PatchSummary & WithOperationEndTime(OperationEndTimeT &&value)
PatchSummary & WithOperationStartTime(OperationStartTimeT &&value)
void SetOperationEndTime(OperationEndTimeT &&value)
PatchSummary & WithInstalledOtherCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue