AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstancePatchState.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/PatchOperationType.h>
11#include <aws/ssm/model/RebootOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_SSM_API InstancePatchState() = default;
44
45
47
51 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
52 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
53 template<typename InstanceIdT = Aws::String>
54 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
55 template<typename InstanceIdT = Aws::String>
56 InstancePatchState& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
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) { m_patchGroupHasBeenSet = true; m_patchGroup = std::forward<PatchGroupT>(value); }
67 template<typename PatchGroupT = Aws::String>
68 InstancePatchState& WithPatchGroup(PatchGroupT&& value) { SetPatchGroup(std::forward<PatchGroupT>(value)); return *this;}
70
72
75 inline const Aws::String& GetBaselineId() const { return m_baselineId; }
76 inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
77 template<typename BaselineIdT = Aws::String>
78 void SetBaselineId(BaselineIdT&& value) { m_baselineIdHasBeenSet = true; m_baselineId = std::forward<BaselineIdT>(value); }
79 template<typename BaselineIdT = Aws::String>
80 InstancePatchState& WithBaselineId(BaselineIdT&& value) { SetBaselineId(std::forward<BaselineIdT>(value)); return *this;}
82
84
88 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
89 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
90 template<typename SnapshotIdT = Aws::String>
91 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
92 template<typename SnapshotIdT = Aws::String>
93 InstancePatchState& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
95
97
108 inline const Aws::String& GetInstallOverrideList() const { return m_installOverrideList; }
109 inline bool InstallOverrideListHasBeenSet() const { return m_installOverrideListHasBeenSet; }
110 template<typename InstallOverrideListT = Aws::String>
111 void SetInstallOverrideList(InstallOverrideListT&& value) { m_installOverrideListHasBeenSet = true; m_installOverrideList = std::forward<InstallOverrideListT>(value); }
112 template<typename InstallOverrideListT = Aws::String>
113 InstancePatchState& WithInstallOverrideList(InstallOverrideListT&& value) { SetInstallOverrideList(std::forward<InstallOverrideListT>(value)); return *this;}
115
117
121 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
122 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
123 template<typename OwnerInformationT = Aws::String>
124 void SetOwnerInformation(OwnerInformationT&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::forward<OwnerInformationT>(value); }
125 template<typename OwnerInformationT = Aws::String>
126 InstancePatchState& WithOwnerInformation(OwnerInformationT&& value) { SetOwnerInformation(std::forward<OwnerInformationT>(value)); return *this;}
128
130
134 inline int GetInstalledCount() const { return m_installedCount; }
135 inline bool InstalledCountHasBeenSet() const { return m_installedCountHasBeenSet; }
136 inline void SetInstalledCount(int value) { m_installedCountHasBeenSet = true; m_installedCount = value; }
137 inline InstancePatchState& WithInstalledCount(int value) { SetInstalledCount(value); return *this;}
139
141
145 inline int GetInstalledOtherCount() const { return m_installedOtherCount; }
146 inline bool InstalledOtherCountHasBeenSet() const { return m_installedOtherCountHasBeenSet; }
147 inline void SetInstalledOtherCount(int value) { m_installedOtherCountHasBeenSet = true; m_installedOtherCount = value; }
148 inline InstancePatchState& WithInstalledOtherCount(int value) { SetInstalledOtherCount(value); return *this;}
150
152
156 inline int GetInstalledPendingRebootCount() const { return m_installedPendingRebootCount; }
157 inline bool InstalledPendingRebootCountHasBeenSet() const { return m_installedPendingRebootCountHasBeenSet; }
158 inline void SetInstalledPendingRebootCount(int value) { m_installedPendingRebootCountHasBeenSet = true; m_installedPendingRebootCount = value; }
161
163
173 inline int GetInstalledRejectedCount() const { return m_installedRejectedCount; }
174 inline bool InstalledRejectedCountHasBeenSet() const { return m_installedRejectedCountHasBeenSet; }
175 inline void SetInstalledRejectedCount(int value) { m_installedRejectedCountHasBeenSet = true; m_installedRejectedCount = value; }
178
180
184 inline int GetMissingCount() const { return m_missingCount; }
185 inline bool MissingCountHasBeenSet() const { return m_missingCountHasBeenSet; }
186 inline void SetMissingCount(int value) { m_missingCountHasBeenSet = true; m_missingCount = value; }
187 inline InstancePatchState& WithMissingCount(int value) { SetMissingCount(value); return *this;}
189
191
195 inline int GetFailedCount() const { return m_failedCount; }
196 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
197 inline void SetFailedCount(int value) { m_failedCountHasBeenSet = true; m_failedCount = value; }
198 inline InstancePatchState& WithFailedCount(int value) { SetFailedCount(value); return *this;}
200
202
207 inline int GetUnreportedNotApplicableCount() const { return m_unreportedNotApplicableCount; }
208 inline bool UnreportedNotApplicableCountHasBeenSet() const { return m_unreportedNotApplicableCountHasBeenSet; }
209 inline void SetUnreportedNotApplicableCount(int value) { m_unreportedNotApplicableCountHasBeenSet = true; m_unreportedNotApplicableCount = value; }
212
214
220 inline int GetNotApplicableCount() const { return m_notApplicableCount; }
221 inline bool NotApplicableCountHasBeenSet() const { return m_notApplicableCountHasBeenSet; }
222 inline void SetNotApplicableCount(int value) { m_notApplicableCountHasBeenSet = true; m_notApplicableCount = value; }
223 inline InstancePatchState& WithNotApplicableCount(int value) { SetNotApplicableCount(value); return *this;}
225
227
234 inline int GetAvailableSecurityUpdateCount() const { return m_availableSecurityUpdateCount; }
235 inline bool AvailableSecurityUpdateCountHasBeenSet() const { return m_availableSecurityUpdateCountHasBeenSet; }
236 inline void SetAvailableSecurityUpdateCount(int value) { m_availableSecurityUpdateCountHasBeenSet = true; m_availableSecurityUpdateCount = value; }
239
241
245 inline const Aws::Utils::DateTime& GetOperationStartTime() const { return m_operationStartTime; }
246 inline bool OperationStartTimeHasBeenSet() const { return m_operationStartTimeHasBeenSet; }
247 template<typename OperationStartTimeT = Aws::Utils::DateTime>
248 void SetOperationStartTime(OperationStartTimeT&& value) { m_operationStartTimeHasBeenSet = true; m_operationStartTime = std::forward<OperationStartTimeT>(value); }
249 template<typename OperationStartTimeT = Aws::Utils::DateTime>
250 InstancePatchState& WithOperationStartTime(OperationStartTimeT&& value) { SetOperationStartTime(std::forward<OperationStartTimeT>(value)); return *this;}
252
254
258 inline const Aws::Utils::DateTime& GetOperationEndTime() const { return m_operationEndTime; }
259 inline bool OperationEndTimeHasBeenSet() const { return m_operationEndTimeHasBeenSet; }
260 template<typename OperationEndTimeT = Aws::Utils::DateTime>
261 void SetOperationEndTime(OperationEndTimeT&& value) { m_operationEndTimeHasBeenSet = true; m_operationEndTime = std::forward<OperationEndTimeT>(value); }
262 template<typename OperationEndTimeT = Aws::Utils::DateTime>
263 InstancePatchState& WithOperationEndTime(OperationEndTimeT&& value) { SetOperationEndTime(std::forward<OperationEndTimeT>(value)); return *this;}
265
267
272 inline PatchOperationType GetOperation() const { return m_operation; }
273 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
274 inline void SetOperation(PatchOperationType value) { m_operationHasBeenSet = true; m_operation = value; }
275 inline InstancePatchState& WithOperation(PatchOperationType value) { SetOperation(value); return *this;}
277
279
283 inline const Aws::Utils::DateTime& GetLastNoRebootInstallOperationTime() const { return m_lastNoRebootInstallOperationTime; }
284 inline bool LastNoRebootInstallOperationTimeHasBeenSet() const { return m_lastNoRebootInstallOperationTimeHasBeenSet; }
285 template<typename LastNoRebootInstallOperationTimeT = Aws::Utils::DateTime>
286 void SetLastNoRebootInstallOperationTime(LastNoRebootInstallOperationTimeT&& value) { m_lastNoRebootInstallOperationTimeHasBeenSet = true; m_lastNoRebootInstallOperationTime = std::forward<LastNoRebootInstallOperationTimeT>(value); }
287 template<typename LastNoRebootInstallOperationTimeT = Aws::Utils::DateTime>
288 InstancePatchState& WithLastNoRebootInstallOperationTime(LastNoRebootInstallOperationTimeT&& value) { SetLastNoRebootInstallOperationTime(std::forward<LastNoRebootInstallOperationTimeT>(value)); return *this;}
290
292
304 inline RebootOption GetRebootOption() const { return m_rebootOption; }
305 inline bool RebootOptionHasBeenSet() const { return m_rebootOptionHasBeenSet; }
306 inline void SetRebootOption(RebootOption value) { m_rebootOptionHasBeenSet = true; m_rebootOption = value; }
307 inline InstancePatchState& WithRebootOption(RebootOption value) { SetRebootOption(value); return *this;}
309
311
318 inline int GetCriticalNonCompliantCount() const { return m_criticalNonCompliantCount; }
319 inline bool CriticalNonCompliantCountHasBeenSet() const { return m_criticalNonCompliantCountHasBeenSet; }
320 inline void SetCriticalNonCompliantCount(int value) { m_criticalNonCompliantCountHasBeenSet = true; m_criticalNonCompliantCount = value; }
323
325
332 inline int GetSecurityNonCompliantCount() const { return m_securityNonCompliantCount; }
333 inline bool SecurityNonCompliantCountHasBeenSet() const { return m_securityNonCompliantCountHasBeenSet; }
334 inline void SetSecurityNonCompliantCount(int value) { m_securityNonCompliantCountHasBeenSet = true; m_securityNonCompliantCount = value; }
337
339
345 inline int GetOtherNonCompliantCount() const { return m_otherNonCompliantCount; }
346 inline bool OtherNonCompliantCountHasBeenSet() const { return m_otherNonCompliantCountHasBeenSet; }
347 inline void SetOtherNonCompliantCount(int value) { m_otherNonCompliantCountHasBeenSet = true; m_otherNonCompliantCount = value; }
350 private:
351
352 Aws::String m_instanceId;
353 bool m_instanceIdHasBeenSet = false;
354
355 Aws::String m_patchGroup;
356 bool m_patchGroupHasBeenSet = false;
357
358 Aws::String m_baselineId;
359 bool m_baselineIdHasBeenSet = false;
360
361 Aws::String m_snapshotId;
362 bool m_snapshotIdHasBeenSet = false;
363
364 Aws::String m_installOverrideList;
365 bool m_installOverrideListHasBeenSet = false;
366
367 Aws::String m_ownerInformation;
368 bool m_ownerInformationHasBeenSet = false;
369
370 int m_installedCount{0};
371 bool m_installedCountHasBeenSet = false;
372
373 int m_installedOtherCount{0};
374 bool m_installedOtherCountHasBeenSet = false;
375
376 int m_installedPendingRebootCount{0};
377 bool m_installedPendingRebootCountHasBeenSet = false;
378
379 int m_installedRejectedCount{0};
380 bool m_installedRejectedCountHasBeenSet = false;
381
382 int m_missingCount{0};
383 bool m_missingCountHasBeenSet = false;
384
385 int m_failedCount{0};
386 bool m_failedCountHasBeenSet = false;
387
388 int m_unreportedNotApplicableCount{0};
389 bool m_unreportedNotApplicableCountHasBeenSet = false;
390
391 int m_notApplicableCount{0};
392 bool m_notApplicableCountHasBeenSet = false;
393
394 int m_availableSecurityUpdateCount{0};
395 bool m_availableSecurityUpdateCountHasBeenSet = false;
396
397 Aws::Utils::DateTime m_operationStartTime{};
398 bool m_operationStartTimeHasBeenSet = false;
399
400 Aws::Utils::DateTime m_operationEndTime{};
401 bool m_operationEndTimeHasBeenSet = false;
402
404 bool m_operationHasBeenSet = false;
405
406 Aws::Utils::DateTime m_lastNoRebootInstallOperationTime{};
407 bool m_lastNoRebootInstallOperationTimeHasBeenSet = false;
408
409 RebootOption m_rebootOption{RebootOption::NOT_SET};
410 bool m_rebootOptionHasBeenSet = false;
411
412 int m_criticalNonCompliantCount{0};
413 bool m_criticalNonCompliantCountHasBeenSet = false;
414
415 int m_securityNonCompliantCount{0};
416 bool m_securityNonCompliantCountHasBeenSet = false;
417
418 int m_otherNonCompliantCount{0};
419 bool m_otherNonCompliantCountHasBeenSet = false;
420 };
421
422} // namespace Model
423} // namespace SSM
424} // 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