AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InstancePatchState.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/PatchOperationType.h>
11#include <aws/ssm/model/RebootOption.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
24
34 public:
35 AWS_SSM_API InstancePatchState() = default;
39
41
45 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 template <typename InstanceIdT = Aws::String>
48 void SetInstanceId(InstanceIdT&& value) {
49 m_instanceIdHasBeenSet = true;
50 m_instanceId = std::forward<InstanceIdT>(value);
51 }
52 template <typename InstanceIdT = Aws::String>
53 InstancePatchState& WithInstanceId(InstanceIdT&& value) {
54 SetInstanceId(std::forward<InstanceIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetPatchGroup() const { return m_patchGroup; }
64 inline bool PatchGroupHasBeenSet() const { return m_patchGroupHasBeenSet; }
65 template <typename PatchGroupT = Aws::String>
66 void SetPatchGroup(PatchGroupT&& value) {
67 m_patchGroupHasBeenSet = true;
68 m_patchGroup = std::forward<PatchGroupT>(value);
69 }
70 template <typename PatchGroupT = Aws::String>
71 InstancePatchState& WithPatchGroup(PatchGroupT&& value) {
72 SetPatchGroup(std::forward<PatchGroupT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetBaselineId() const { return m_baselineId; }
82 inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
83 template <typename BaselineIdT = Aws::String>
84 void SetBaselineId(BaselineIdT&& value) {
85 m_baselineIdHasBeenSet = true;
86 m_baselineId = std::forward<BaselineIdT>(value);
87 }
88 template <typename BaselineIdT = Aws::String>
89 InstancePatchState& WithBaselineId(BaselineIdT&& value) {
90 SetBaselineId(std::forward<BaselineIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
101 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
102 template <typename SnapshotIdT = Aws::String>
103 void SetSnapshotId(SnapshotIdT&& value) {
104 m_snapshotIdHasBeenSet = true;
105 m_snapshotId = std::forward<SnapshotIdT>(value);
106 }
107 template <typename SnapshotIdT = Aws::String>
108 InstancePatchState& WithSnapshotId(SnapshotIdT&& value) {
109 SetSnapshotId(std::forward<SnapshotIdT>(value));
110 return *this;
111 }
113
115
126 inline const Aws::String& GetInstallOverrideList() const { return m_installOverrideList; }
127 inline bool InstallOverrideListHasBeenSet() const { return m_installOverrideListHasBeenSet; }
128 template <typename InstallOverrideListT = Aws::String>
129 void SetInstallOverrideList(InstallOverrideListT&& value) {
130 m_installOverrideListHasBeenSet = true;
131 m_installOverrideList = std::forward<InstallOverrideListT>(value);
132 }
133 template <typename InstallOverrideListT = Aws::String>
134 InstancePatchState& WithInstallOverrideList(InstallOverrideListT&& value) {
135 SetInstallOverrideList(std::forward<InstallOverrideListT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
146 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
147 template <typename OwnerInformationT = Aws::String>
148 void SetOwnerInformation(OwnerInformationT&& value) {
149 m_ownerInformationHasBeenSet = true;
150 m_ownerInformation = std::forward<OwnerInformationT>(value);
151 }
152 template <typename OwnerInformationT = Aws::String>
153 InstancePatchState& WithOwnerInformation(OwnerInformationT&& value) {
154 SetOwnerInformation(std::forward<OwnerInformationT>(value));
155 return *this;
156 }
158
160
164 inline int GetInstalledCount() const { return m_installedCount; }
165 inline bool InstalledCountHasBeenSet() const { return m_installedCountHasBeenSet; }
166 inline void SetInstalledCount(int value) {
167 m_installedCountHasBeenSet = true;
168 m_installedCount = value;
169 }
171 SetInstalledCount(value);
172 return *this;
173 }
175
177
181 inline int GetInstalledOtherCount() const { return m_installedOtherCount; }
182 inline bool InstalledOtherCountHasBeenSet() const { return m_installedOtherCountHasBeenSet; }
183 inline void SetInstalledOtherCount(int value) {
184 m_installedOtherCountHasBeenSet = true;
185 m_installedOtherCount = value;
186 }
189 return *this;
190 }
192
194
198 inline int GetInstalledPendingRebootCount() const { return m_installedPendingRebootCount; }
199 inline bool InstalledPendingRebootCountHasBeenSet() const { return m_installedPendingRebootCountHasBeenSet; }
200 inline void SetInstalledPendingRebootCount(int value) {
201 m_installedPendingRebootCountHasBeenSet = true;
202 m_installedPendingRebootCount = value;
203 }
206 return *this;
207 }
209
211
221 inline int GetInstalledRejectedCount() const { return m_installedRejectedCount; }
222 inline bool InstalledRejectedCountHasBeenSet() const { return m_installedRejectedCountHasBeenSet; }
223 inline void SetInstalledRejectedCount(int value) {
224 m_installedRejectedCountHasBeenSet = true;
225 m_installedRejectedCount = value;
226 }
229 return *this;
230 }
232
234
238 inline int GetMissingCount() const { return m_missingCount; }
239 inline bool MissingCountHasBeenSet() const { return m_missingCountHasBeenSet; }
240 inline void SetMissingCount(int value) {
241 m_missingCountHasBeenSet = true;
242 m_missingCount = value;
243 }
245 SetMissingCount(value);
246 return *this;
247 }
249
251
255 inline int GetFailedCount() const { return m_failedCount; }
256 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
257 inline void SetFailedCount(int value) {
258 m_failedCountHasBeenSet = true;
259 m_failedCount = value;
260 }
262 SetFailedCount(value);
263 return *this;
264 }
266
268
273 inline int GetUnreportedNotApplicableCount() const { return m_unreportedNotApplicableCount; }
274 inline bool UnreportedNotApplicableCountHasBeenSet() const { return m_unreportedNotApplicableCountHasBeenSet; }
275 inline void SetUnreportedNotApplicableCount(int value) {
276 m_unreportedNotApplicableCountHasBeenSet = true;
277 m_unreportedNotApplicableCount = value;
278 }
281 return *this;
282 }
284
286
292 inline int GetNotApplicableCount() const { return m_notApplicableCount; }
293 inline bool NotApplicableCountHasBeenSet() const { return m_notApplicableCountHasBeenSet; }
294 inline void SetNotApplicableCount(int value) {
295 m_notApplicableCountHasBeenSet = true;
296 m_notApplicableCount = value;
297 }
300 return *this;
301 }
303
305
312 inline int GetAvailableSecurityUpdateCount() const { return m_availableSecurityUpdateCount; }
313 inline bool AvailableSecurityUpdateCountHasBeenSet() const { return m_availableSecurityUpdateCountHasBeenSet; }
314 inline void SetAvailableSecurityUpdateCount(int value) {
315 m_availableSecurityUpdateCountHasBeenSet = true;
316 m_availableSecurityUpdateCount = value;
317 }
320 return *this;
321 }
323
325
329 inline const Aws::Utils::DateTime& GetOperationStartTime() const { return m_operationStartTime; }
330 inline bool OperationStartTimeHasBeenSet() const { return m_operationStartTimeHasBeenSet; }
331 template <typename OperationStartTimeT = Aws::Utils::DateTime>
332 void SetOperationStartTime(OperationStartTimeT&& value) {
333 m_operationStartTimeHasBeenSet = true;
334 m_operationStartTime = std::forward<OperationStartTimeT>(value);
335 }
336 template <typename OperationStartTimeT = Aws::Utils::DateTime>
337 InstancePatchState& WithOperationStartTime(OperationStartTimeT&& value) {
338 SetOperationStartTime(std::forward<OperationStartTimeT>(value));
339 return *this;
340 }
342
344
348 inline const Aws::Utils::DateTime& GetOperationEndTime() const { return m_operationEndTime; }
349 inline bool OperationEndTimeHasBeenSet() const { return m_operationEndTimeHasBeenSet; }
350 template <typename OperationEndTimeT = Aws::Utils::DateTime>
351 void SetOperationEndTime(OperationEndTimeT&& value) {
352 m_operationEndTimeHasBeenSet = true;
353 m_operationEndTime = std::forward<OperationEndTimeT>(value);
354 }
355 template <typename OperationEndTimeT = Aws::Utils::DateTime>
356 InstancePatchState& WithOperationEndTime(OperationEndTimeT&& value) {
357 SetOperationEndTime(std::forward<OperationEndTimeT>(value));
358 return *this;
359 }
361
363
368 inline PatchOperationType GetOperation() const { return m_operation; }
369 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
370 inline void SetOperation(PatchOperationType value) {
371 m_operationHasBeenSet = true;
372 m_operation = value;
373 }
375 SetOperation(value);
376 return *this;
377 }
379
381
385 inline const Aws::Utils::DateTime& GetLastNoRebootInstallOperationTime() const { return m_lastNoRebootInstallOperationTime; }
386 inline bool LastNoRebootInstallOperationTimeHasBeenSet() const { return m_lastNoRebootInstallOperationTimeHasBeenSet; }
387 template <typename LastNoRebootInstallOperationTimeT = Aws::Utils::DateTime>
388 void SetLastNoRebootInstallOperationTime(LastNoRebootInstallOperationTimeT&& value) {
389 m_lastNoRebootInstallOperationTimeHasBeenSet = true;
390 m_lastNoRebootInstallOperationTime = std::forward<LastNoRebootInstallOperationTimeT>(value);
391 }
392 template <typename LastNoRebootInstallOperationTimeT = Aws::Utils::DateTime>
393 InstancePatchState& WithLastNoRebootInstallOperationTime(LastNoRebootInstallOperationTimeT&& value) {
394 SetLastNoRebootInstallOperationTime(std::forward<LastNoRebootInstallOperationTimeT>(value));
395 return *this;
396 }
398
400
412 inline RebootOption GetRebootOption() const { return m_rebootOption; }
413 inline bool RebootOptionHasBeenSet() const { return m_rebootOptionHasBeenSet; }
414 inline void SetRebootOption(RebootOption value) {
415 m_rebootOptionHasBeenSet = true;
416 m_rebootOption = value;
417 }
419 SetRebootOption(value);
420 return *this;
421 }
423
425
432 inline int GetCriticalNonCompliantCount() const { return m_criticalNonCompliantCount; }
433 inline bool CriticalNonCompliantCountHasBeenSet() const { return m_criticalNonCompliantCountHasBeenSet; }
434 inline void SetCriticalNonCompliantCount(int value) {
435 m_criticalNonCompliantCountHasBeenSet = true;
436 m_criticalNonCompliantCount = value;
437 }
440 return *this;
441 }
443
445
452 inline int GetSecurityNonCompliantCount() const { return m_securityNonCompliantCount; }
453 inline bool SecurityNonCompliantCountHasBeenSet() const { return m_securityNonCompliantCountHasBeenSet; }
454 inline void SetSecurityNonCompliantCount(int value) {
455 m_securityNonCompliantCountHasBeenSet = true;
456 m_securityNonCompliantCount = value;
457 }
460 return *this;
461 }
463
465
471 inline int GetOtherNonCompliantCount() const { return m_otherNonCompliantCount; }
472 inline bool OtherNonCompliantCountHasBeenSet() const { return m_otherNonCompliantCountHasBeenSet; }
473 inline void SetOtherNonCompliantCount(int value) {
474 m_otherNonCompliantCountHasBeenSet = true;
475 m_otherNonCompliantCount = value;
476 }
479 return *this;
480 }
482 private:
483 Aws::String m_instanceId;
484
485 Aws::String m_patchGroup;
486
487 Aws::String m_baselineId;
488
489 Aws::String m_snapshotId;
490
491 Aws::String m_installOverrideList;
492
493 Aws::String m_ownerInformation;
494
495 int m_installedCount{0};
496
497 int m_installedOtherCount{0};
498
499 int m_installedPendingRebootCount{0};
500
501 int m_installedRejectedCount{0};
502
503 int m_missingCount{0};
504
505 int m_failedCount{0};
506
507 int m_unreportedNotApplicableCount{0};
508
509 int m_notApplicableCount{0};
510
511 int m_availableSecurityUpdateCount{0};
512
513 Aws::Utils::DateTime m_operationStartTime{};
514
515 Aws::Utils::DateTime m_operationEndTime{};
516
518
519 Aws::Utils::DateTime m_lastNoRebootInstallOperationTime{};
520
521 RebootOption m_rebootOption{RebootOption::NOT_SET};
522
523 int m_criticalNonCompliantCount{0};
524
525 int m_securityNonCompliantCount{0};
526
527 int m_otherNonCompliantCount{0};
528 bool m_instanceIdHasBeenSet = false;
529 bool m_patchGroupHasBeenSet = false;
530 bool m_baselineIdHasBeenSet = false;
531 bool m_snapshotIdHasBeenSet = false;
532 bool m_installOverrideListHasBeenSet = false;
533 bool m_ownerInformationHasBeenSet = false;
534 bool m_installedCountHasBeenSet = false;
535 bool m_installedOtherCountHasBeenSet = false;
536 bool m_installedPendingRebootCountHasBeenSet = false;
537 bool m_installedRejectedCountHasBeenSet = false;
538 bool m_missingCountHasBeenSet = false;
539 bool m_failedCountHasBeenSet = false;
540 bool m_unreportedNotApplicableCountHasBeenSet = false;
541 bool m_notApplicableCountHasBeenSet = false;
542 bool m_availableSecurityUpdateCountHasBeenSet = false;
543 bool m_operationStartTimeHasBeenSet = false;
544 bool m_operationEndTimeHasBeenSet = false;
545 bool m_operationHasBeenSet = false;
546 bool m_lastNoRebootInstallOperationTimeHasBeenSet = false;
547 bool m_rebootOptionHasBeenSet = false;
548 bool m_criticalNonCompliantCountHasBeenSet = false;
549 bool m_securityNonCompliantCountHasBeenSet = false;
550 bool m_otherNonCompliantCountHasBeenSet = false;
551};
552
553} // namespace Model
554} // namespace SSM
555} // namespace Aws
InstancePatchState & WithPatchGroup(PatchGroupT &&value)
InstancePatchState & WithInstalledRejectedCount(int value)
void SetOperationStartTime(OperationStartTimeT &&value)
AWS_SSM_API InstancePatchState()=default
InstancePatchState & WithInstalledPendingRebootCount(int value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetBaselineId() const
const Aws::String & GetPatchGroup() const
const Aws::Utils::DateTime & GetOperationStartTime() const
InstancePatchState & WithFailedCount(int value)
AWS_SSM_API InstancePatchState & operator=(Aws::Utils::Json::JsonView jsonValue)
InstancePatchState & WithMissingCount(int value)
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetInstanceId() const
InstancePatchState & WithNotApplicableCount(int value)
const Aws::Utils::DateTime & GetOperationEndTime() const
InstancePatchState & WithSnapshotId(SnapshotIdT &&value)
void SetInstallOverrideList(InstallOverrideListT &&value)
void SetLastNoRebootInstallOperationTime(LastNoRebootInstallOperationTimeT &&value)
void SetPatchGroup(PatchGroupT &&value)
InstancePatchState & WithBaselineId(BaselineIdT &&value)
InstancePatchState & WithOtherNonCompliantCount(int value)
const Aws::String & GetOwnerInformation() const
void SetBaselineId(BaselineIdT &&value)
PatchOperationType GetOperation() const
InstancePatchState & WithLastNoRebootInstallOperationTime(LastNoRebootInstallOperationTimeT &&value)
InstancePatchState & WithAvailableSecurityUpdateCount(int value)
void SetOperationEndTime(OperationEndTimeT &&value)
AWS_SSM_API InstancePatchState(Aws::Utils::Json::JsonView jsonValue)
InstancePatchState & WithSecurityNonCompliantCount(int value)
InstancePatchState & WithOperationEndTime(OperationEndTimeT &&value)
InstancePatchState & WithRebootOption(RebootOption value)
const Aws::Utils::DateTime & GetLastNoRebootInstallOperationTime() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
InstancePatchState & WithUnreportedNotApplicableCount(int value)
void SetOwnerInformation(OwnerInformationT &&value)
InstancePatchState & WithInstanceId(InstanceIdT &&value)
InstancePatchState & WithCriticalNonCompliantCount(int value)
InstancePatchState & WithInstalledCount(int value)
const Aws::String & GetInstallOverrideList() const
InstancePatchState & WithOwnerInformation(OwnerInformationT &&value)
InstancePatchState & WithOperation(PatchOperationType value)
void SetOperation(PatchOperationType value)
void SetSnapshotId(SnapshotIdT &&value)
InstancePatchState & WithInstallOverrideList(InstallOverrideListT &&value)
InstancePatchState & WithOperationStartTime(OperationStartTimeT &&value)
void SetRebootOption(RebootOption value)
InstancePatchState & WithInstalledOtherCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue