AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PatchRule.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/PatchFilterGroup.h>
9#include <aws/ssm/model/PatchComplianceLevel.h>
10#include <aws/core/utils/memory/stl/AWSString.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 PatchRule() = default;
37 AWS_SSM_API PatchRule(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const PatchFilterGroup& GetPatchFilterGroup() const { return m_patchFilterGroup; }
47 inline bool PatchFilterGroupHasBeenSet() const { return m_patchFilterGroupHasBeenSet; }
48 template<typename PatchFilterGroupT = PatchFilterGroup>
49 void SetPatchFilterGroup(PatchFilterGroupT&& value) { m_patchFilterGroupHasBeenSet = true; m_patchFilterGroup = std::forward<PatchFilterGroupT>(value); }
50 template<typename PatchFilterGroupT = PatchFilterGroup>
51 PatchRule& WithPatchFilterGroup(PatchFilterGroupT&& value) { SetPatchFilterGroup(std::forward<PatchFilterGroupT>(value)); return *this;}
53
55
58 inline PatchComplianceLevel GetComplianceLevel() const { return m_complianceLevel; }
59 inline bool ComplianceLevelHasBeenSet() const { return m_complianceLevelHasBeenSet; }
60 inline void SetComplianceLevel(PatchComplianceLevel value) { m_complianceLevelHasBeenSet = true; m_complianceLevel = value; }
63
65
81 inline int GetApproveAfterDays() const { return m_approveAfterDays; }
82 inline bool ApproveAfterDaysHasBeenSet() const { return m_approveAfterDaysHasBeenSet; }
83 inline void SetApproveAfterDays(int value) { m_approveAfterDaysHasBeenSet = true; m_approveAfterDays = value; }
84 inline PatchRule& WithApproveAfterDays(int value) { SetApproveAfterDays(value); return *this;}
86
88
104 inline const Aws::String& GetApproveUntilDate() const { return m_approveUntilDate; }
105 inline bool ApproveUntilDateHasBeenSet() const { return m_approveUntilDateHasBeenSet; }
106 template<typename ApproveUntilDateT = Aws::String>
107 void SetApproveUntilDate(ApproveUntilDateT&& value) { m_approveUntilDateHasBeenSet = true; m_approveUntilDate = std::forward<ApproveUntilDateT>(value); }
108 template<typename ApproveUntilDateT = Aws::String>
109 PatchRule& WithApproveUntilDate(ApproveUntilDateT&& value) { SetApproveUntilDate(std::forward<ApproveUntilDateT>(value)); return *this;}
111
113
119 inline bool GetEnableNonSecurity() const { return m_enableNonSecurity; }
120 inline bool EnableNonSecurityHasBeenSet() const { return m_enableNonSecurityHasBeenSet; }
121 inline void SetEnableNonSecurity(bool value) { m_enableNonSecurityHasBeenSet = true; m_enableNonSecurity = value; }
122 inline PatchRule& WithEnableNonSecurity(bool value) { SetEnableNonSecurity(value); return *this;}
124 private:
125
126 PatchFilterGroup m_patchFilterGroup;
127 bool m_patchFilterGroupHasBeenSet = false;
128
130 bool m_complianceLevelHasBeenSet = false;
131
132 int m_approveAfterDays{0};
133 bool m_approveAfterDaysHasBeenSet = false;
134
135 Aws::String m_approveUntilDate;
136 bool m_approveUntilDateHasBeenSet = false;
137
138 bool m_enableNonSecurity{false};
139 bool m_enableNonSecurityHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SSM
144} // namespace Aws
int GetApproveAfterDays() const
Definition PatchRule.h:81
PatchRule & WithComplianceLevel(PatchComplianceLevel value)
Definition PatchRule.h:61
const PatchFilterGroup & GetPatchFilterGroup() const
Definition PatchRule.h:46
bool ComplianceLevelHasBeenSet() const
Definition PatchRule.h:59
PatchRule & WithApproveUntilDate(ApproveUntilDateT &&value)
Definition PatchRule.h:109
bool ApproveAfterDaysHasBeenSet() const
Definition PatchRule.h:82
void SetComplianceLevel(PatchComplianceLevel value)
Definition PatchRule.h:60
void SetPatchFilterGroup(PatchFilterGroupT &&value)
Definition PatchRule.h:49
void SetEnableNonSecurity(bool value)
Definition PatchRule.h:121
PatchRule & WithEnableNonSecurity(bool value)
Definition PatchRule.h:122
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetApproveUntilDate(ApproveUntilDateT &&value)
Definition PatchRule.h:107
const Aws::String & GetApproveUntilDate() const
Definition PatchRule.h:104
AWS_SSM_API PatchRule()=default
void SetApproveAfterDays(int value)
Definition PatchRule.h:83
PatchComplianceLevel GetComplianceLevel() const
Definition PatchRule.h:58
bool EnableNonSecurityHasBeenSet() const
Definition PatchRule.h:120
AWS_SSM_API PatchRule(Aws::Utils::Json::JsonView jsonValue)
PatchRule & WithPatchFilterGroup(PatchFilterGroupT &&value)
Definition PatchRule.h:51
bool ApproveUntilDateHasBeenSet() const
Definition PatchRule.h:105
bool PatchFilterGroupHasBeenSet() const
Definition PatchRule.h:47
AWS_SSM_API PatchRule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GetEnableNonSecurity() const
Definition PatchRule.h:119
PatchRule & WithApproveAfterDays(int value)
Definition PatchRule.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue