AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PatchStatus.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/PatchDeploymentStatus.h>
9#include <aws/ssm/model/PatchComplianceLevel.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SSM_API PatchStatus() = default;
40
41
43
46 inline PatchDeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
47 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
48 inline void SetDeploymentStatus(PatchDeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
51
53
56 inline PatchComplianceLevel GetComplianceLevel() const { return m_complianceLevel; }
57 inline bool ComplianceLevelHasBeenSet() const { return m_complianceLevelHasBeenSet; }
58 inline void SetComplianceLevel(PatchComplianceLevel value) { m_complianceLevelHasBeenSet = true; m_complianceLevel = value; }
61
63
67 inline const Aws::Utils::DateTime& GetApprovalDate() const { return m_approvalDate; }
68 inline bool ApprovalDateHasBeenSet() const { return m_approvalDateHasBeenSet; }
69 template<typename ApprovalDateT = Aws::Utils::DateTime>
70 void SetApprovalDate(ApprovalDateT&& value) { m_approvalDateHasBeenSet = true; m_approvalDate = std::forward<ApprovalDateT>(value); }
71 template<typename ApprovalDateT = Aws::Utils::DateTime>
72 PatchStatus& WithApprovalDate(ApprovalDateT&& value) { SetApprovalDate(std::forward<ApprovalDateT>(value)); return *this;}
74 private:
75
77 bool m_deploymentStatusHasBeenSet = false;
78
80 bool m_complianceLevelHasBeenSet = false;
81
82 Aws::Utils::DateTime m_approvalDate{};
83 bool m_approvalDateHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace SSM
88} // namespace Aws
AWS_SSM_API PatchStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApprovalDate(ApprovalDateT &&value)
Definition PatchStatus.h:70
PatchDeploymentStatus GetDeploymentStatus() const
Definition PatchStatus.h:46
PatchStatus & WithApprovalDate(ApprovalDateT &&value)
Definition PatchStatus.h:72
AWS_SSM_API PatchStatus()=default
PatchComplianceLevel GetComplianceLevel() const
Definition PatchStatus.h:56
const Aws::Utils::DateTime & GetApprovalDate() const
Definition PatchStatus.h:67
PatchStatus & WithDeploymentStatus(PatchDeploymentStatus value)
Definition PatchStatus.h:49
bool ComplianceLevelHasBeenSet() const
Definition PatchStatus.h:57
void SetComplianceLevel(PatchComplianceLevel value)
Definition PatchStatus.h:58
bool ApprovalDateHasBeenSet() const
Definition PatchStatus.h:68
void SetDeploymentStatus(PatchDeploymentStatus value)
Definition PatchStatus.h:48
bool DeploymentStatusHasBeenSet() const
Definition PatchStatus.h:47
PatchStatus & WithComplianceLevel(PatchComplianceLevel value)
Definition PatchStatus.h:59
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API PatchStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue