AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BaselineOverride.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/OperatingSystem.h>
11#include <aws/ssm/model/PatchAction.h>
12#include <aws/ssm/model/PatchComplianceLevel.h>
13#include <aws/ssm/model/PatchComplianceStatus.h>
14#include <aws/ssm/model/PatchFilterGroup.h>
15#include <aws/ssm/model/PatchRuleGroup.h>
16#include <aws/ssm/model/PatchSource.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SSM {
28namespace Model {
29
37 public:
38 AWS_SSM_API BaselineOverride() = default;
42
44
47 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
48 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
50 m_operatingSystemHasBeenSet = true;
51 m_operatingSystem = value;
52 }
54 SetOperatingSystem(value);
55 return *this;
56 }
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) {
65 m_globalFiltersHasBeenSet = true;
66 m_globalFilters = std::forward<GlobalFiltersT>(value);
67 }
68 template <typename GlobalFiltersT = PatchFilterGroup>
69 BaselineOverride& WithGlobalFilters(GlobalFiltersT&& value) {
70 SetGlobalFilters(std::forward<GlobalFiltersT>(value));
71 return *this;
72 }
74
76
77 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
78 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
79 template <typename ApprovalRulesT = PatchRuleGroup>
80 void SetApprovalRules(ApprovalRulesT&& value) {
81 m_approvalRulesHasBeenSet = true;
82 m_approvalRules = std::forward<ApprovalRulesT>(value);
83 }
84 template <typename ApprovalRulesT = PatchRuleGroup>
85 BaselineOverride& WithApprovalRules(ApprovalRulesT&& value) {
86 SetApprovalRules(std::forward<ApprovalRulesT>(value));
87 return *this;
88 }
90
92
100 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
101 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
102 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
103 void SetApprovedPatches(ApprovedPatchesT&& value) {
104 m_approvedPatchesHasBeenSet = true;
105 m_approvedPatches = std::forward<ApprovedPatchesT>(value);
106 }
107 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
108 BaselineOverride& WithApprovedPatches(ApprovedPatchesT&& value) {
109 SetApprovedPatches(std::forward<ApprovedPatchesT>(value));
110 return *this;
111 }
112 template <typename ApprovedPatchesT = Aws::String>
113 BaselineOverride& AddApprovedPatches(ApprovedPatchesT&& value) {
114 m_approvedPatchesHasBeenSet = true;
115 m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value));
116 return *this;
117 }
119
121
126 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
127 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
129 m_approvedPatchesComplianceLevelHasBeenSet = true;
130 m_approvedPatchesComplianceLevel = value;
131 }
134 return *this;
135 }
137
139
147 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
148 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
149 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
150 void SetRejectedPatches(RejectedPatchesT&& value) {
151 m_rejectedPatchesHasBeenSet = true;
152 m_rejectedPatches = std::forward<RejectedPatchesT>(value);
153 }
154 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
155 BaselineOverride& WithRejectedPatches(RejectedPatchesT&& value) {
156 SetRejectedPatches(std::forward<RejectedPatchesT>(value));
157 return *this;
158 }
159 template <typename RejectedPatchesT = Aws::String>
160 BaselineOverride& AddRejectedPatches(RejectedPatchesT&& value) {
161 m_rejectedPatchesHasBeenSet = true;
162 m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value));
163 return *this;
164 }
166
168
174 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
175 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
177 m_rejectedPatchesActionHasBeenSet = true;
178 m_rejectedPatchesAction = value;
179 }
182 return *this;
183 }
185
187
192 inline bool GetApprovedPatchesEnableNonSecurity() const { return m_approvedPatchesEnableNonSecurity; }
193 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
194 inline void SetApprovedPatchesEnableNonSecurity(bool value) {
195 m_approvedPatchesEnableNonSecurityHasBeenSet = true;
196 m_approvedPatchesEnableNonSecurity = value;
197 }
200 return *this;
201 }
203
205
210 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
211 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
212 template <typename SourcesT = Aws::Vector<PatchSource>>
213 void SetSources(SourcesT&& value) {
214 m_sourcesHasBeenSet = true;
215 m_sources = std::forward<SourcesT>(value);
216 }
217 template <typename SourcesT = Aws::Vector<PatchSource>>
218 BaselineOverride& WithSources(SourcesT&& value) {
219 SetSources(std::forward<SourcesT>(value));
220 return *this;
221 }
222 template <typename SourcesT = PatchSource>
223 BaselineOverride& AddSources(SourcesT&& value) {
224 m_sourcesHasBeenSet = true;
225 m_sources.emplace_back(std::forward<SourcesT>(value));
226 return *this;
227 }
229
231
239 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
240 inline bool AvailableSecurityUpdatesComplianceStatusHasBeenSet() const { return m_availableSecurityUpdatesComplianceStatusHasBeenSet; }
242 m_availableSecurityUpdatesComplianceStatusHasBeenSet = true;
243 m_availableSecurityUpdatesComplianceStatus = value;
244 }
247 return *this;
248 }
250 private:
251 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
252
253 PatchFilterGroup m_globalFilters;
254
255 PatchRuleGroup m_approvalRules;
256
257 Aws::Vector<Aws::String> m_approvedPatches;
258
259 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
260
261 Aws::Vector<Aws::String> m_rejectedPatches;
262
263 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
264
265 bool m_approvedPatchesEnableNonSecurity{false};
266
267 Aws::Vector<PatchSource> m_sources;
268
269 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
270 bool m_operatingSystemHasBeenSet = false;
271 bool m_globalFiltersHasBeenSet = false;
272 bool m_approvalRulesHasBeenSet = false;
273 bool m_approvedPatchesHasBeenSet = false;
274 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
275 bool m_rejectedPatchesHasBeenSet = false;
276 bool m_rejectedPatchesActionHasBeenSet = false;
277 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
278 bool m_sourcesHasBeenSet = false;
279 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace SSM
284} // 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