AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PatchRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9#include <aws/ssm/model/PatchComplianceLevel.h>
10#include <aws/ssm/model/PatchFilterGroup.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
29class PatchRule {
30 public:
31 AWS_SSM_API PatchRule() = default;
32 AWS_SSM_API PatchRule(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const PatchFilterGroup& GetPatchFilterGroup() const { return m_patchFilterGroup; }
41 inline bool PatchFilterGroupHasBeenSet() const { return m_patchFilterGroupHasBeenSet; }
42 template <typename PatchFilterGroupT = PatchFilterGroup>
43 void SetPatchFilterGroup(PatchFilterGroupT&& value) {
44 m_patchFilterGroupHasBeenSet = true;
45 m_patchFilterGroup = std::forward<PatchFilterGroupT>(value);
46 }
47 template <typename PatchFilterGroupT = PatchFilterGroup>
48 PatchRule& WithPatchFilterGroup(PatchFilterGroupT&& value) {
49 SetPatchFilterGroup(std::forward<PatchFilterGroupT>(value));
50 return *this;
51 }
53
55
58 inline PatchComplianceLevel GetComplianceLevel() const { return m_complianceLevel; }
59 inline bool ComplianceLevelHasBeenSet() const { return m_complianceLevelHasBeenSet; }
61 m_complianceLevelHasBeenSet = true;
62 m_complianceLevel = value;
63 }
65 SetComplianceLevel(value);
66 return *this;
67 }
69
71
91 inline int GetApproveAfterDays() const { return m_approveAfterDays; }
92 inline bool ApproveAfterDaysHasBeenSet() const { return m_approveAfterDaysHasBeenSet; }
93 inline void SetApproveAfterDays(int value) {
94 m_approveAfterDaysHasBeenSet = true;
95 m_approveAfterDays = value;
96 }
97 inline PatchRule& WithApproveAfterDays(int value) {
99 return *this;
100 }
102
104
123 inline const Aws::String& GetApproveUntilDate() const { return m_approveUntilDate; }
124 inline bool ApproveUntilDateHasBeenSet() const { return m_approveUntilDateHasBeenSet; }
125 template <typename ApproveUntilDateT = Aws::String>
126 void SetApproveUntilDate(ApproveUntilDateT&& value) {
127 m_approveUntilDateHasBeenSet = true;
128 m_approveUntilDate = std::forward<ApproveUntilDateT>(value);
129 }
130 template <typename ApproveUntilDateT = Aws::String>
131 PatchRule& WithApproveUntilDate(ApproveUntilDateT&& value) {
132 SetApproveUntilDate(std::forward<ApproveUntilDateT>(value));
133 return *this;
134 }
136
138
144 inline bool GetEnableNonSecurity() const { return m_enableNonSecurity; }
145 inline bool EnableNonSecurityHasBeenSet() const { return m_enableNonSecurityHasBeenSet; }
146 inline void SetEnableNonSecurity(bool value) {
147 m_enableNonSecurityHasBeenSet = true;
148 m_enableNonSecurity = value;
149 }
150 inline PatchRule& WithEnableNonSecurity(bool value) {
152 return *this;
153 }
155 private:
156 PatchFilterGroup m_patchFilterGroup;
157
159
160 int m_approveAfterDays{0};
161
162 Aws::String m_approveUntilDate;
163
164 bool m_enableNonSecurity{false};
165 bool m_patchFilterGroupHasBeenSet = false;
166 bool m_complianceLevelHasBeenSet = false;
167 bool m_approveAfterDaysHasBeenSet = false;
168 bool m_approveUntilDateHasBeenSet = false;
169 bool m_enableNonSecurityHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SSM
174} // namespace Aws
int GetApproveAfterDays() const
Definition PatchRule.h:91
PatchRule & WithComplianceLevel(PatchComplianceLevel value)
Definition PatchRule.h:64
const PatchFilterGroup & GetPatchFilterGroup() const
Definition PatchRule.h:40
bool ComplianceLevelHasBeenSet() const
Definition PatchRule.h:59
PatchRule & WithApproveUntilDate(ApproveUntilDateT &&value)
Definition PatchRule.h:131
bool ApproveAfterDaysHasBeenSet() const
Definition PatchRule.h:92
void SetComplianceLevel(PatchComplianceLevel value)
Definition PatchRule.h:60
void SetPatchFilterGroup(PatchFilterGroupT &&value)
Definition PatchRule.h:43
void SetEnableNonSecurity(bool value)
Definition PatchRule.h:146
PatchRule & WithEnableNonSecurity(bool value)
Definition PatchRule.h:150
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetApproveUntilDate(ApproveUntilDateT &&value)
Definition PatchRule.h:126
const Aws::String & GetApproveUntilDate() const
Definition PatchRule.h:123
AWS_SSM_API PatchRule()=default
void SetApproveAfterDays(int value)
Definition PatchRule.h:93
PatchComplianceLevel GetComplianceLevel() const
Definition PatchRule.h:58
bool EnableNonSecurityHasBeenSet() const
Definition PatchRule.h:145
AWS_SSM_API PatchRule(Aws::Utils::Json::JsonView jsonValue)
PatchRule & WithPatchFilterGroup(PatchFilterGroupT &&value)
Definition PatchRule.h:48
bool ApproveUntilDateHasBeenSet() const
Definition PatchRule.h:124
bool PatchFilterGroupHasBeenSet() const
Definition PatchRule.h:41
AWS_SSM_API PatchRule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GetEnableNonSecurity() const
Definition PatchRule.h:144
PatchRule & WithApproveAfterDays(int value)
Definition PatchRule.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue