AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PatchStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9#include <aws/ssm/model/PatchComplianceLevel.h>
10#include <aws/ssm/model/PatchDeploymentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
30 public:
31 AWS_SSM_API PatchStatus() = default;
35
37
40 inline PatchDeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
41 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
43 m_deploymentStatusHasBeenSet = true;
44 m_deploymentStatus = value;
45 }
48 return *this;
49 }
51
53
56 inline PatchComplianceLevel GetComplianceLevel() const { return m_complianceLevel; }
57 inline bool ComplianceLevelHasBeenSet() const { return m_complianceLevelHasBeenSet; }
59 m_complianceLevelHasBeenSet = true;
60 m_complianceLevel = value;
61 }
63 SetComplianceLevel(value);
64 return *this;
65 }
67
69
73 inline const Aws::Utils::DateTime& GetApprovalDate() const { return m_approvalDate; }
74 inline bool ApprovalDateHasBeenSet() const { return m_approvalDateHasBeenSet; }
75 template <typename ApprovalDateT = Aws::Utils::DateTime>
76 void SetApprovalDate(ApprovalDateT&& value) {
77 m_approvalDateHasBeenSet = true;
78 m_approvalDate = std::forward<ApprovalDateT>(value);
79 }
80 template <typename ApprovalDateT = Aws::Utils::DateTime>
81 PatchStatus& WithApprovalDate(ApprovalDateT&& value) {
82 SetApprovalDate(std::forward<ApprovalDateT>(value));
83 return *this;
84 }
86 private:
88
90
91 Aws::Utils::DateTime m_approvalDate{};
92 bool m_deploymentStatusHasBeenSet = false;
93 bool m_complianceLevelHasBeenSet = false;
94 bool m_approvalDateHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SSM
99} // namespace Aws
AWS_SSM_API PatchStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApprovalDate(ApprovalDateT &&value)
Definition PatchStatus.h:76
PatchDeploymentStatus GetDeploymentStatus() const
Definition PatchStatus.h:40
PatchStatus & WithApprovalDate(ApprovalDateT &&value)
Definition PatchStatus.h:81
AWS_SSM_API PatchStatus()=default
PatchComplianceLevel GetComplianceLevel() const
Definition PatchStatus.h:56
const Aws::Utils::DateTime & GetApprovalDate() const
Definition PatchStatus.h:73
PatchStatus & WithDeploymentStatus(PatchDeploymentStatus value)
Definition PatchStatus.h:46
bool ComplianceLevelHasBeenSet() const
Definition PatchStatus.h:57
void SetComplianceLevel(PatchComplianceLevel value)
Definition PatchStatus.h:58
bool ApprovalDateHasBeenSet() const
Definition PatchStatus.h:74
void SetDeploymentStatus(PatchDeploymentStatus value)
Definition PatchStatus.h:42
bool DeploymentStatusHasBeenSet() const
Definition PatchStatus.h:41
PatchStatus & WithComplianceLevel(PatchComplianceLevel value)
Definition PatchStatus.h:62
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API PatchStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue