AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
44
45
47
51 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
52 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
53 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
54 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
55 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
56 inline InstancePatchState& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
57 inline InstancePatchState& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
58 inline InstancePatchState& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
60
62
65 inline const Aws::String& GetPatchGroup() const{ return m_patchGroup; }
66 inline bool PatchGroupHasBeenSet() const { return m_patchGroupHasBeenSet; }
67 inline void SetPatchGroup(const Aws::String& value) { m_patchGroupHasBeenSet = true; m_patchGroup = value; }
68 inline void SetPatchGroup(Aws::String&& value) { m_patchGroupHasBeenSet = true; m_patchGroup = std::move(value); }
69 inline void SetPatchGroup(const char* value) { m_patchGroupHasBeenSet = true; m_patchGroup.assign(value); }
70 inline InstancePatchState& WithPatchGroup(const Aws::String& value) { SetPatchGroup(value); return *this;}
71 inline InstancePatchState& WithPatchGroup(Aws::String&& value) { SetPatchGroup(std::move(value)); return *this;}
72 inline InstancePatchState& WithPatchGroup(const char* value) { SetPatchGroup(value); return *this;}
74
76
79 inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
80 inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
81 inline void SetBaselineId(const Aws::String& value) { m_baselineIdHasBeenSet = true; m_baselineId = value; }
82 inline void SetBaselineId(Aws::String&& value) { m_baselineIdHasBeenSet = true; m_baselineId = std::move(value); }
83 inline void SetBaselineId(const char* value) { m_baselineIdHasBeenSet = true; m_baselineId.assign(value); }
84 inline InstancePatchState& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
85 inline InstancePatchState& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
86 inline InstancePatchState& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
88
90
94 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
95 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
96 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
97 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
98 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
99 inline InstancePatchState& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
100 inline InstancePatchState& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
101 inline InstancePatchState& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
103
105
116 inline const Aws::String& GetInstallOverrideList() const{ return m_installOverrideList; }
117 inline bool InstallOverrideListHasBeenSet() const { return m_installOverrideListHasBeenSet; }
118 inline void SetInstallOverrideList(const Aws::String& value) { m_installOverrideListHasBeenSet = true; m_installOverrideList = value; }
119 inline void SetInstallOverrideList(Aws::String&& value) { m_installOverrideListHasBeenSet = true; m_installOverrideList = std::move(value); }
120 inline void SetInstallOverrideList(const char* value) { m_installOverrideListHasBeenSet = true; m_installOverrideList.assign(value); }
122 inline InstancePatchState& WithInstallOverrideList(Aws::String&& value) { SetInstallOverrideList(std::move(value)); return *this;}
123 inline InstancePatchState& WithInstallOverrideList(const char* value) { SetInstallOverrideList(value); return *this;}
125
127
131 inline const Aws::String& GetOwnerInformation() const{ return m_ownerInformation; }
132 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
133 inline void SetOwnerInformation(const Aws::String& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = value; }
134 inline void SetOwnerInformation(Aws::String&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::move(value); }
135 inline void SetOwnerInformation(const char* value) { m_ownerInformationHasBeenSet = true; m_ownerInformation.assign(value); }
136 inline InstancePatchState& WithOwnerInformation(const Aws::String& value) { SetOwnerInformation(value); return *this;}
137 inline InstancePatchState& WithOwnerInformation(Aws::String&& value) { SetOwnerInformation(std::move(value)); return *this;}
138 inline InstancePatchState& WithOwnerInformation(const char* value) { SetOwnerInformation(value); return *this;}
140
142
146 inline int GetInstalledCount() const{ return m_installedCount; }
147 inline bool InstalledCountHasBeenSet() const { return m_installedCountHasBeenSet; }
148 inline void SetInstalledCount(int value) { m_installedCountHasBeenSet = true; m_installedCount = value; }
149 inline InstancePatchState& WithInstalledCount(int value) { SetInstalledCount(value); return *this;}
151
153
157 inline int GetInstalledOtherCount() const{ return m_installedOtherCount; }
158 inline bool InstalledOtherCountHasBeenSet() const { return m_installedOtherCountHasBeenSet; }
159 inline void SetInstalledOtherCount(int value) { m_installedOtherCountHasBeenSet = true; m_installedOtherCount = value; }
160 inline InstancePatchState& WithInstalledOtherCount(int value) { SetInstalledOtherCount(value); return *this;}
162
164
168 inline int GetInstalledPendingRebootCount() const{ return m_installedPendingRebootCount; }
169 inline bool InstalledPendingRebootCountHasBeenSet() const { return m_installedPendingRebootCountHasBeenSet; }
170 inline void SetInstalledPendingRebootCount(int value) { m_installedPendingRebootCountHasBeenSet = true; m_installedPendingRebootCount = value; }
173
175
185 inline int GetInstalledRejectedCount() const{ return m_installedRejectedCount; }
186 inline bool InstalledRejectedCountHasBeenSet() const { return m_installedRejectedCountHasBeenSet; }
187 inline void SetInstalledRejectedCount(int value) { m_installedRejectedCountHasBeenSet = true; m_installedRejectedCount = value; }
190
192
196 inline int GetMissingCount() const{ return m_missingCount; }
197 inline bool MissingCountHasBeenSet() const { return m_missingCountHasBeenSet; }
198 inline void SetMissingCount(int value) { m_missingCountHasBeenSet = true; m_missingCount = value; }
199 inline InstancePatchState& WithMissingCount(int value) { SetMissingCount(value); return *this;}
201
203
207 inline int GetFailedCount() const{ return m_failedCount; }
208 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
209 inline void SetFailedCount(int value) { m_failedCountHasBeenSet = true; m_failedCount = value; }
210 inline InstancePatchState& WithFailedCount(int value) { SetFailedCount(value); return *this;}
212
214
219 inline int GetUnreportedNotApplicableCount() const{ return m_unreportedNotApplicableCount; }
220 inline bool UnreportedNotApplicableCountHasBeenSet() const { return m_unreportedNotApplicableCountHasBeenSet; }
221 inline void SetUnreportedNotApplicableCount(int value) { m_unreportedNotApplicableCountHasBeenSet = true; m_unreportedNotApplicableCount = value; }
224
226
232 inline int GetNotApplicableCount() const{ return m_notApplicableCount; }
233 inline bool NotApplicableCountHasBeenSet() const { return m_notApplicableCountHasBeenSet; }
234 inline void SetNotApplicableCount(int value) { m_notApplicableCountHasBeenSet = true; m_notApplicableCount = value; }
235 inline InstancePatchState& WithNotApplicableCount(int value) { SetNotApplicableCount(value); return *this;}
237
239
243 inline const Aws::Utils::DateTime& GetOperationStartTime() const{ return m_operationStartTime; }
244 inline bool OperationStartTimeHasBeenSet() const { return m_operationStartTimeHasBeenSet; }
245 inline void SetOperationStartTime(const Aws::Utils::DateTime& value) { m_operationStartTimeHasBeenSet = true; m_operationStartTime = value; }
246 inline void SetOperationStartTime(Aws::Utils::DateTime&& value) { m_operationStartTimeHasBeenSet = true; m_operationStartTime = std::move(value); }
248 inline InstancePatchState& WithOperationStartTime(Aws::Utils::DateTime&& value) { SetOperationStartTime(std::move(value)); return *this;}
250
252
256 inline const Aws::Utils::DateTime& GetOperationEndTime() const{ return m_operationEndTime; }
257 inline bool OperationEndTimeHasBeenSet() const { return m_operationEndTimeHasBeenSet; }
258 inline void SetOperationEndTime(const Aws::Utils::DateTime& value) { m_operationEndTimeHasBeenSet = true; m_operationEndTime = value; }
259 inline void SetOperationEndTime(Aws::Utils::DateTime&& value) { m_operationEndTimeHasBeenSet = true; m_operationEndTime = std::move(value); }
261 inline InstancePatchState& WithOperationEndTime(Aws::Utils::DateTime&& value) { SetOperationEndTime(std::move(value)); return *this;}
263
265
270 inline const PatchOperationType& GetOperation() const{ return m_operation; }
271 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
272 inline void SetOperation(const PatchOperationType& value) { m_operationHasBeenSet = true; m_operation = value; }
273 inline void SetOperation(PatchOperationType&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
274 inline InstancePatchState& WithOperation(const PatchOperationType& value) { SetOperation(value); return *this;}
275 inline InstancePatchState& WithOperation(PatchOperationType&& value) { SetOperation(std::move(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 inline void SetLastNoRebootInstallOperationTime(const Aws::Utils::DateTime& value) { m_lastNoRebootInstallOperationTimeHasBeenSet = true; m_lastNoRebootInstallOperationTime = value; }
286 inline void SetLastNoRebootInstallOperationTime(Aws::Utils::DateTime&& value) { m_lastNoRebootInstallOperationTimeHasBeenSet = true; m_lastNoRebootInstallOperationTime = std::move(value); }
290
292
304 inline const RebootOption& GetRebootOption() const{ return m_rebootOption; }
305 inline bool RebootOptionHasBeenSet() const { return m_rebootOptionHasBeenSet; }
306 inline void SetRebootOption(const RebootOption& value) { m_rebootOptionHasBeenSet = true; m_rebootOption = value; }
307 inline void SetRebootOption(RebootOption&& value) { m_rebootOptionHasBeenSet = true; m_rebootOption = std::move(value); }
308 inline InstancePatchState& WithRebootOption(const RebootOption& value) { SetRebootOption(value); return *this;}
309 inline InstancePatchState& WithRebootOption(RebootOption&& value) { SetRebootOption(std::move(value)); return *this;}
311
313
320 inline int GetCriticalNonCompliantCount() const{ return m_criticalNonCompliantCount; }
321 inline bool CriticalNonCompliantCountHasBeenSet() const { return m_criticalNonCompliantCountHasBeenSet; }
322 inline void SetCriticalNonCompliantCount(int value) { m_criticalNonCompliantCountHasBeenSet = true; m_criticalNonCompliantCount = value; }
325
327
334 inline int GetSecurityNonCompliantCount() const{ return m_securityNonCompliantCount; }
335 inline bool SecurityNonCompliantCountHasBeenSet() const { return m_securityNonCompliantCountHasBeenSet; }
336 inline void SetSecurityNonCompliantCount(int value) { m_securityNonCompliantCountHasBeenSet = true; m_securityNonCompliantCount = value; }
339
341
347 inline int GetOtherNonCompliantCount() const{ return m_otherNonCompliantCount; }
348 inline bool OtherNonCompliantCountHasBeenSet() const { return m_otherNonCompliantCountHasBeenSet; }
349 inline void SetOtherNonCompliantCount(int value) { m_otherNonCompliantCountHasBeenSet = true; m_otherNonCompliantCount = value; }
352 private:
353
354 Aws::String m_instanceId;
355 bool m_instanceIdHasBeenSet = false;
356
357 Aws::String m_patchGroup;
358 bool m_patchGroupHasBeenSet = false;
359
360 Aws::String m_baselineId;
361 bool m_baselineIdHasBeenSet = false;
362
363 Aws::String m_snapshotId;
364 bool m_snapshotIdHasBeenSet = false;
365
366 Aws::String m_installOverrideList;
367 bool m_installOverrideListHasBeenSet = false;
368
369 Aws::String m_ownerInformation;
370 bool m_ownerInformationHasBeenSet = false;
371
372 int m_installedCount;
373 bool m_installedCountHasBeenSet = false;
374
375 int m_installedOtherCount;
376 bool m_installedOtherCountHasBeenSet = false;
377
378 int m_installedPendingRebootCount;
379 bool m_installedPendingRebootCountHasBeenSet = false;
380
381 int m_installedRejectedCount;
382 bool m_installedRejectedCountHasBeenSet = false;
383
384 int m_missingCount;
385 bool m_missingCountHasBeenSet = false;
386
387 int m_failedCount;
388 bool m_failedCountHasBeenSet = false;
389
390 int m_unreportedNotApplicableCount;
391 bool m_unreportedNotApplicableCountHasBeenSet = false;
392
393 int m_notApplicableCount;
394 bool m_notApplicableCountHasBeenSet = false;
395
396 Aws::Utils::DateTime m_operationStartTime;
397 bool m_operationStartTimeHasBeenSet = false;
398
399 Aws::Utils::DateTime m_operationEndTime;
400 bool m_operationEndTimeHasBeenSet = false;
401
402 PatchOperationType m_operation;
403 bool m_operationHasBeenSet = false;
404
405 Aws::Utils::DateTime m_lastNoRebootInstallOperationTime;
406 bool m_lastNoRebootInstallOperationTimeHasBeenSet = false;
407
408 RebootOption m_rebootOption;
409 bool m_rebootOptionHasBeenSet = false;
410
411 int m_criticalNonCompliantCount;
412 bool m_criticalNonCompliantCountHasBeenSet = false;
413
414 int m_securityNonCompliantCount;
415 bool m_securityNonCompliantCountHasBeenSet = false;
416
417 int m_otherNonCompliantCount;
418 bool m_otherNonCompliantCountHasBeenSet = false;
419 };
420
421} // namespace Model
422} // namespace SSM
423} // namespace Aws
void SetOwnerInformation(Aws::String &&value)
InstancePatchState & WithInstalledRejectedCount(int value)
InstancePatchState & WithInstanceId(const char *value)
void SetSnapshotId(const Aws::String &value)
void SetLastNoRebootInstallOperationTime(const Aws::Utils::DateTime &value)
InstancePatchState & WithSnapshotId(const char *value)
InstancePatchState & WithInstalledPendingRebootCount(int value)
const Aws::String & GetSnapshotId() const
InstancePatchState & WithSnapshotId(Aws::String &&value)
InstancePatchState & WithInstanceId(Aws::String &&value)
const Aws::String & GetBaselineId() const
InstancePatchState & WithBaselineId(Aws::String &&value)
InstancePatchState & WithPatchGroup(Aws::String &&value)
void SetOperationStartTime(Aws::Utils::DateTime &&value)
InstancePatchState & WithOwnerInformation(const char *value)
const Aws::String & GetPatchGroup() const
const Aws::Utils::DateTime & GetOperationStartTime() const
InstancePatchState & WithFailedCount(int value)
void SetInstanceId(Aws::String &&value)
void SetOwnerInformation(const Aws::String &value)
AWS_SSM_API InstancePatchState & operator=(Aws::Utils::Json::JsonView jsonValue)
InstancePatchState & WithMissingCount(int value)
const Aws::String & GetInstanceId() const
void SetInstanceId(const Aws::String &value)
const PatchOperationType & GetOperation() const
void SetOperationEndTime(Aws::Utils::DateTime &&value)
void SetOperation(PatchOperationType &&value)
InstancePatchState & WithOperationStartTime(const Aws::Utils::DateTime &value)
InstancePatchState & WithSnapshotId(const Aws::String &value)
InstancePatchState & WithNotApplicableCount(int value)
const Aws::Utils::DateTime & GetOperationEndTime() const
InstancePatchState & WithLastNoRebootInstallOperationTime(const Aws::Utils::DateTime &value)
InstancePatchState & WithOperationStartTime(Aws::Utils::DateTime &&value)
void SetOperationEndTime(const Aws::Utils::DateTime &value)
InstancePatchState & WithOperationEndTime(const Aws::Utils::DateTime &value)
InstancePatchState & WithOtherNonCompliantCount(int value)
InstancePatchState & WithOperation(const PatchOperationType &value)
const Aws::String & GetOwnerInformation() const
InstancePatchState & WithBaselineId(const Aws::String &value)
void SetOperation(const PatchOperationType &value)
void SetInstallOverrideList(Aws::String &&value)
void SetBaselineId(const Aws::String &value)
InstancePatchState & WithOwnerInformation(Aws::String &&value)
InstancePatchState & WithOperation(PatchOperationType &&value)
InstancePatchState & WithPatchGroup(const Aws::String &value)
void SetRebootOption(const RebootOption &value)
AWS_SSM_API InstancePatchState(Aws::Utils::Json::JsonView jsonValue)
InstancePatchState & WithRebootOption(const RebootOption &value)
InstancePatchState & WithSecurityNonCompliantCount(int value)
const RebootOption & GetRebootOption() const
InstancePatchState & WithPatchGroup(const char *value)
void SetInstallOverrideList(const char *value)
InstancePatchState & WithLastNoRebootInstallOperationTime(Aws::Utils::DateTime &&value)
void SetPatchGroup(const Aws::String &value)
InstancePatchState & WithRebootOption(RebootOption &&value)
void SetLastNoRebootInstallOperationTime(Aws::Utils::DateTime &&value)
void SetOwnerInformation(const char *value)
void SetRebootOption(RebootOption &&value)
const Aws::Utils::DateTime & GetLastNoRebootInstallOperationTime() const
InstancePatchState & WithInstallOverrideList(const Aws::String &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
InstancePatchState & WithUnreportedNotApplicableCount(int value)
InstancePatchState & WithOperationEndTime(Aws::Utils::DateTime &&value)
void SetPatchGroup(Aws::String &&value)
InstancePatchState & WithInstanceId(const Aws::String &value)
InstancePatchState & WithInstallOverrideList(const char *value)
void SetSnapshotId(Aws::String &&value)
void SetBaselineId(Aws::String &&value)
InstancePatchState & WithInstallOverrideList(Aws::String &&value)
void SetInstallOverrideList(const Aws::String &value)
InstancePatchState & WithCriticalNonCompliantCount(int value)
InstancePatchState & WithInstalledCount(int value)
const Aws::String & GetInstallOverrideList() const
InstancePatchState & WithBaselineId(const char *value)
InstancePatchState & WithOwnerInformation(const Aws::String &value)
void SetOperationStartTime(const Aws::Utils::DateTime &value)
InstancePatchState & WithInstalledOtherCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue