AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPatchFilterGroup(const PatchFilterGroup& value) { m_patchFilterGroupHasBeenSet = true; m_patchFilterGroup = value; }
49 inline void SetPatchFilterGroup(PatchFilterGroup&& value) { m_patchFilterGroupHasBeenSet = true; m_patchFilterGroup = std::move(value); }
50 inline PatchRule& WithPatchFilterGroup(const PatchFilterGroup& value) { SetPatchFilterGroup(value); return *this;}
51 inline PatchRule& WithPatchFilterGroup(PatchFilterGroup&& value) { SetPatchFilterGroup(std::move(value)); return *this;}
53
55
58 inline const PatchComplianceLevel& GetComplianceLevel() const{ return m_complianceLevel; }
59 inline bool ComplianceLevelHasBeenSet() const { return m_complianceLevelHasBeenSet; }
60 inline void SetComplianceLevel(const PatchComplianceLevel& value) { m_complianceLevelHasBeenSet = true; m_complianceLevel = value; }
61 inline void SetComplianceLevel(PatchComplianceLevel&& value) { m_complianceLevelHasBeenSet = true; m_complianceLevel = std::move(value); }
62 inline PatchRule& WithComplianceLevel(const PatchComplianceLevel& value) { SetComplianceLevel(value); return *this;}
63 inline PatchRule& WithComplianceLevel(PatchComplianceLevel&& value) { SetComplianceLevel(std::move(value)); return *this;}
65
67
83 inline int GetApproveAfterDays() const{ return m_approveAfterDays; }
84 inline bool ApproveAfterDaysHasBeenSet() const { return m_approveAfterDaysHasBeenSet; }
85 inline void SetApproveAfterDays(int value) { m_approveAfterDaysHasBeenSet = true; m_approveAfterDays = value; }
86 inline PatchRule& WithApproveAfterDays(int value) { SetApproveAfterDays(value); return *this;}
88
90
106 inline const Aws::String& GetApproveUntilDate() const{ return m_approveUntilDate; }
107 inline bool ApproveUntilDateHasBeenSet() const { return m_approveUntilDateHasBeenSet; }
108 inline void SetApproveUntilDate(const Aws::String& value) { m_approveUntilDateHasBeenSet = true; m_approveUntilDate = value; }
109 inline void SetApproveUntilDate(Aws::String&& value) { m_approveUntilDateHasBeenSet = true; m_approveUntilDate = std::move(value); }
110 inline void SetApproveUntilDate(const char* value) { m_approveUntilDateHasBeenSet = true; m_approveUntilDate.assign(value); }
111 inline PatchRule& WithApproveUntilDate(const Aws::String& value) { SetApproveUntilDate(value); return *this;}
112 inline PatchRule& WithApproveUntilDate(Aws::String&& value) { SetApproveUntilDate(std::move(value)); return *this;}
113 inline PatchRule& WithApproveUntilDate(const char* value) { SetApproveUntilDate(value); return *this;}
115
117
123 inline bool GetEnableNonSecurity() const{ return m_enableNonSecurity; }
124 inline bool EnableNonSecurityHasBeenSet() const { return m_enableNonSecurityHasBeenSet; }
125 inline void SetEnableNonSecurity(bool value) { m_enableNonSecurityHasBeenSet = true; m_enableNonSecurity = value; }
126 inline PatchRule& WithEnableNonSecurity(bool value) { SetEnableNonSecurity(value); return *this;}
128 private:
129
130 PatchFilterGroup m_patchFilterGroup;
131 bool m_patchFilterGroupHasBeenSet = false;
132
133 PatchComplianceLevel m_complianceLevel;
134 bool m_complianceLevelHasBeenSet = false;
135
136 int m_approveAfterDays;
137 bool m_approveAfterDaysHasBeenSet = false;
138
139 Aws::String m_approveUntilDate;
140 bool m_approveUntilDateHasBeenSet = false;
141
142 bool m_enableNonSecurity;
143 bool m_enableNonSecurityHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SSM
148} // namespace Aws
void SetPatchFilterGroup(const PatchFilterGroup &value)
Definition PatchRule.h:48
int GetApproveAfterDays() const
Definition PatchRule.h:83
const PatchFilterGroup & GetPatchFilterGroup() const
Definition PatchRule.h:46
bool ComplianceLevelHasBeenSet() const
Definition PatchRule.h:59
bool ApproveAfterDaysHasBeenSet() const
Definition PatchRule.h:84
void SetApproveUntilDate(Aws::String &&value)
Definition PatchRule.h:109
void SetApproveUntilDate(const Aws::String &value)
Definition PatchRule.h:108
PatchRule & WithComplianceLevel(PatchComplianceLevel &&value)
Definition PatchRule.h:63
void SetApproveUntilDate(const char *value)
Definition PatchRule.h:110
void SetEnableNonSecurity(bool value)
Definition PatchRule.h:125
PatchRule & WithApproveUntilDate(const Aws::String &value)
Definition PatchRule.h:111
PatchRule & WithEnableNonSecurity(bool value)
Definition PatchRule.h:126
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPatchFilterGroup(PatchFilterGroup &&value)
Definition PatchRule.h:49
const Aws::String & GetApproveUntilDate() const
Definition PatchRule.h:106
void SetApproveAfterDays(int value)
Definition PatchRule.h:85
bool EnableNonSecurityHasBeenSet() const
Definition PatchRule.h:124
PatchRule & WithPatchFilterGroup(const PatchFilterGroup &value)
Definition PatchRule.h:50
PatchRule & WithPatchFilterGroup(PatchFilterGroup &&value)
Definition PatchRule.h:51
AWS_SSM_API PatchRule(Aws::Utils::Json::JsonView jsonValue)
PatchRule & WithApproveUntilDate(const char *value)
Definition PatchRule.h:113
bool ApproveUntilDateHasBeenSet() const
Definition PatchRule.h:107
bool PatchFilterGroupHasBeenSet() const
Definition PatchRule.h:47
AWS_SSM_API PatchRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComplianceLevel(PatchComplianceLevel &&value)
Definition PatchRule.h:61
bool GetEnableNonSecurity() const
Definition PatchRule.h:123
PatchRule & WithApproveAfterDays(int value)
Definition PatchRule.h:86
PatchRule & WithApproveUntilDate(Aws::String &&value)
Definition PatchRule.h:112
const PatchComplianceLevel & GetComplianceLevel() const
Definition PatchRule.h:58
PatchRule & WithComplianceLevel(const PatchComplianceLevel &value)
Definition PatchRule.h:62
void SetComplianceLevel(const PatchComplianceLevel &value)
Definition PatchRule.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue