AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BaselineOverride.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/OperatingSystem.h>
9#include <aws/ssm/model/PatchFilterGroup.h>
10#include <aws/ssm/model/PatchRuleGroup.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/PatchComplianceLevel.h>
13#include <aws/ssm/model/PatchAction.h>
14#include <aws/ssm/model/PatchComplianceStatus.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/ssm/model/PatchSource.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SSM
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_SSM_API BaselineOverride() = default;
47
48
50
53 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
54 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
55 inline void SetOperatingSystem(OperatingSystem value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
58
60
61 inline const PatchFilterGroup& GetGlobalFilters() const { return m_globalFilters; }
62 inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
63 template<typename GlobalFiltersT = PatchFilterGroup>
64 void SetGlobalFilters(GlobalFiltersT&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::forward<GlobalFiltersT>(value); }
65 template<typename GlobalFiltersT = PatchFilterGroup>
66 BaselineOverride& WithGlobalFilters(GlobalFiltersT&& value) { SetGlobalFilters(std::forward<GlobalFiltersT>(value)); return *this;}
68
70
71 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
72 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
73 template<typename ApprovalRulesT = PatchRuleGroup>
74 void SetApprovalRules(ApprovalRulesT&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::forward<ApprovalRulesT>(value); }
75 template<typename ApprovalRulesT = PatchRuleGroup>
76 BaselineOverride& WithApprovalRules(ApprovalRulesT&& value) { SetApprovalRules(std::forward<ApprovalRulesT>(value)); return *this;}
78
80
88 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
89 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
90 template<typename ApprovedPatchesT = Aws::Vector<Aws::String>>
91 void SetApprovedPatches(ApprovedPatchesT&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::forward<ApprovedPatchesT>(value); }
92 template<typename ApprovedPatchesT = Aws::Vector<Aws::String>>
93 BaselineOverride& WithApprovedPatches(ApprovedPatchesT&& value) { SetApprovedPatches(std::forward<ApprovedPatchesT>(value)); return *this;}
94 template<typename ApprovedPatchesT = Aws::String>
95 BaselineOverride& AddApprovedPatches(ApprovedPatchesT&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value)); return *this; }
97
99
104 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
105 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
106 inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
109
111
119 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
120 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
121 template<typename RejectedPatchesT = Aws::Vector<Aws::String>>
122 void SetRejectedPatches(RejectedPatchesT&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::forward<RejectedPatchesT>(value); }
123 template<typename RejectedPatchesT = Aws::Vector<Aws::String>>
124 BaselineOverride& WithRejectedPatches(RejectedPatchesT&& value) { SetRejectedPatches(std::forward<RejectedPatchesT>(value)); return *this;}
125 template<typename RejectedPatchesT = Aws::String>
126 BaselineOverride& AddRejectedPatches(RejectedPatchesT&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value)); return *this; }
128
130
136 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
137 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
138 inline void SetRejectedPatchesAction(PatchAction value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
141
143
148 inline bool GetApprovedPatchesEnableNonSecurity() const { return m_approvedPatchesEnableNonSecurity; }
149 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
150 inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
153
155
160 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
161 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
162 template<typename SourcesT = Aws::Vector<PatchSource>>
163 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
164 template<typename SourcesT = Aws::Vector<PatchSource>>
165 BaselineOverride& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
166 template<typename SourcesT = PatchSource>
167 BaselineOverride& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
169
171
179 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
180 inline bool AvailableSecurityUpdatesComplianceStatusHasBeenSet() const { return m_availableSecurityUpdatesComplianceStatusHasBeenSet; }
181 inline void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value) { m_availableSecurityUpdatesComplianceStatusHasBeenSet = true; m_availableSecurityUpdatesComplianceStatus = value; }
184 private:
185
186 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
187 bool m_operatingSystemHasBeenSet = false;
188
189 PatchFilterGroup m_globalFilters;
190 bool m_globalFiltersHasBeenSet = false;
191
192 PatchRuleGroup m_approvalRules;
193 bool m_approvalRulesHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_approvedPatches;
196 bool m_approvedPatchesHasBeenSet = false;
197
198 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
199 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
200
201 Aws::Vector<Aws::String> m_rejectedPatches;
202 bool m_rejectedPatchesHasBeenSet = false;
203
204 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
205 bool m_rejectedPatchesActionHasBeenSet = false;
206
207 bool m_approvedPatchesEnableNonSecurity{false};
208 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
209
210 Aws::Vector<PatchSource> m_sources;
211 bool m_sourcesHasBeenSet = false;
212
213 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
214 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace SSM
219} // namespace Aws
BaselineOverride & WithGlobalFilters(GlobalFiltersT &&value)
void SetApprovalRules(ApprovalRulesT &&value)
void SetOperatingSystem(OperatingSystem value)
BaselineOverride & WithRejectedPatches(RejectedPatchesT &&value)
AWS_SSM_API BaselineOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
BaselineOverride & WithRejectedPatchesAction(PatchAction value)
const Aws::Vector< PatchSource > & GetSources() const
bool ApprovedPatchesEnableNonSecurityHasBeenSet() const
BaselineOverride & AddSources(SourcesT &&value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
const PatchRuleGroup & GetApprovalRules() const
BaselineOverride & AddApprovedPatches(ApprovedPatchesT &&value)
void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value)
void SetApprovedPatches(ApprovedPatchesT &&value)
BaselineOverride & WithAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
const PatchFilterGroup & GetGlobalFilters() const
BaselineOverride & WithOperatingSystem(OperatingSystem value)
PatchComplianceLevel GetApprovedPatchesComplianceLevel() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
bool AvailableSecurityUpdatesComplianceStatusHasBeenSet() const
void SetRejectedPatches(RejectedPatchesT &&value)
void SetGlobalFilters(GlobalFiltersT &&value)
OperatingSystem GetOperatingSystem() const
BaselineOverride & WithApprovedPatchesEnableNonSecurity(bool value)
BaselineOverride & WithApprovalRules(ApprovalRulesT &&value)
BaselineOverride & AddRejectedPatches(RejectedPatchesT &&value)
void SetApprovedPatchesEnableNonSecurity(bool value)
PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const
BaselineOverride & WithApprovedPatches(ApprovedPatchesT &&value)
const Aws::Vector< Aws::String > & GetApprovedPatches() const
BaselineOverride & WithSources(SourcesT &&value)
AWS_SSM_API BaselineOverride(Aws::Utils::Json::JsonView jsonValue)
PatchAction GetRejectedPatchesAction() const
AWS_SSM_API BaselineOverride()=default
void SetRejectedPatchesAction(PatchAction value)
BaselineOverride & WithApprovedPatchesComplianceLevel(PatchComplianceLevel value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue