AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdatePatchBaselineRequest.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/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.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 SSM {
22namespace Model {
23
27 public:
28 AWS_SSM_API UpdatePatchBaselineRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdatePatchBaseline"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetBaselineId() const { return m_baselineId; }
45 inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
46 template <typename BaselineIdT = Aws::String>
47 void SetBaselineId(BaselineIdT&& value) {
48 m_baselineIdHasBeenSet = true;
49 m_baselineId = std::forward<BaselineIdT>(value);
50 }
51 template <typename BaselineIdT = Aws::String>
53 SetBaselineId(std::forward<BaselineIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
84 inline const PatchFilterGroup& GetGlobalFilters() const { return m_globalFilters; }
85 inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
86 template <typename GlobalFiltersT = PatchFilterGroup>
87 void SetGlobalFilters(GlobalFiltersT&& value) {
88 m_globalFiltersHasBeenSet = true;
89 m_globalFilters = std::forward<GlobalFiltersT>(value);
90 }
91 template <typename GlobalFiltersT = PatchFilterGroup>
93 SetGlobalFilters(std::forward<GlobalFiltersT>(value));
94 return *this;
95 }
97
99
102 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
103 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
104 template <typename ApprovalRulesT = PatchRuleGroup>
105 void SetApprovalRules(ApprovalRulesT&& value) {
106 m_approvalRulesHasBeenSet = true;
107 m_approvalRules = std::forward<ApprovalRulesT>(value);
108 }
109 template <typename ApprovalRulesT = PatchRuleGroup>
111 SetApprovalRules(std::forward<ApprovalRulesT>(value));
112 return *this;
113 }
115
117
125 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
126 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
127 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
128 void SetApprovedPatches(ApprovedPatchesT&& value) {
129 m_approvedPatchesHasBeenSet = true;
130 m_approvedPatches = std::forward<ApprovedPatchesT>(value);
131 }
132 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
134 SetApprovedPatches(std::forward<ApprovedPatchesT>(value));
135 return *this;
136 }
137 template <typename ApprovedPatchesT = Aws::String>
139 m_approvedPatchesHasBeenSet = true;
140 m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value));
141 return *this;
142 }
144
146
149 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
150 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
152 m_approvedPatchesComplianceLevelHasBeenSet = true;
153 m_approvedPatchesComplianceLevel = value;
154 }
157 return *this;
158 }
160
162
167 inline bool GetApprovedPatchesEnableNonSecurity() const { return m_approvedPatchesEnableNonSecurity; }
168 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
169 inline void SetApprovedPatchesEnableNonSecurity(bool value) {
170 m_approvedPatchesEnableNonSecurityHasBeenSet = true;
171 m_approvedPatchesEnableNonSecurity = value;
172 }
175 return *this;
176 }
178
180
188 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
189 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
190 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
191 void SetRejectedPatches(RejectedPatchesT&& value) {
192 m_rejectedPatchesHasBeenSet = true;
193 m_rejectedPatches = std::forward<RejectedPatchesT>(value);
194 }
195 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
197 SetRejectedPatches(std::forward<RejectedPatchesT>(value));
198 return *this;
199 }
200 template <typename RejectedPatchesT = Aws::String>
202 m_rejectedPatchesHasBeenSet = true;
203 m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value));
204 return *this;
205 }
207
209
233 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
234 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
236 m_rejectedPatchesActionHasBeenSet = true;
237 m_rejectedPatchesAction = value;
238 }
241 return *this;
242 }
244
246
249 inline const Aws::String& GetDescription() const { return m_description; }
250 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
251 template <typename DescriptionT = Aws::String>
252 void SetDescription(DescriptionT&& value) {
253 m_descriptionHasBeenSet = true;
254 m_description = std::forward<DescriptionT>(value);
255 }
256 template <typename DescriptionT = Aws::String>
258 SetDescription(std::forward<DescriptionT>(value));
259 return *this;
260 }
262
264
269 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
270 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
271 template <typename SourcesT = Aws::Vector<PatchSource>>
272 void SetSources(SourcesT&& value) {
273 m_sourcesHasBeenSet = true;
274 m_sources = std::forward<SourcesT>(value);
275 }
276 template <typename SourcesT = Aws::Vector<PatchSource>>
278 SetSources(std::forward<SourcesT>(value));
279 return *this;
280 }
281 template <typename SourcesT = PatchSource>
283 m_sourcesHasBeenSet = true;
284 m_sources.emplace_back(std::forward<SourcesT>(value));
285 return *this;
286 }
288
290
301 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
302 inline bool AvailableSecurityUpdatesComplianceStatusHasBeenSet() const { return m_availableSecurityUpdatesComplianceStatusHasBeenSet; }
304 m_availableSecurityUpdatesComplianceStatusHasBeenSet = true;
305 m_availableSecurityUpdatesComplianceStatus = value;
306 }
309 return *this;
310 }
312
314
319 inline bool GetReplace() const { return m_replace; }
320 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
321 inline void SetReplace(bool value) {
322 m_replaceHasBeenSet = true;
323 m_replace = value;
324 }
326 SetReplace(value);
327 return *this;
328 }
330 private:
331 Aws::String m_baselineId;
332
333 Aws::String m_name;
334
335 PatchFilterGroup m_globalFilters;
336
337 PatchRuleGroup m_approvalRules;
338
339 Aws::Vector<Aws::String> m_approvedPatches;
340
341 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
342
343 bool m_approvedPatchesEnableNonSecurity{false};
344
345 Aws::Vector<Aws::String> m_rejectedPatches;
346
347 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
348
349 Aws::String m_description;
350
351 Aws::Vector<PatchSource> m_sources;
352
353 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
354
355 bool m_replace{false};
356 bool m_baselineIdHasBeenSet = false;
357 bool m_nameHasBeenSet = false;
358 bool m_globalFiltersHasBeenSet = false;
359 bool m_approvalRulesHasBeenSet = false;
360 bool m_approvedPatchesHasBeenSet = false;
361 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
362 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
363 bool m_rejectedPatchesHasBeenSet = false;
364 bool m_rejectedPatchesActionHasBeenSet = false;
365 bool m_descriptionHasBeenSet = false;
366 bool m_sourcesHasBeenSet = false;
367 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
368 bool m_replaceHasBeenSet = false;
369};
370
371} // namespace Model
372} // namespace SSM
373} // namespace Aws
void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
UpdatePatchBaselineRequest & WithAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetApprovedPatches() const
UpdatePatchBaselineRequest & WithRejectedPatches(RejectedPatchesT &&value)
UpdatePatchBaselineRequest & WithBaselineId(BaselineIdT &&value)
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
UpdatePatchBaselineRequest & WithSources(SourcesT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePatchBaselineRequest & AddRejectedPatches(RejectedPatchesT &&value)
UpdatePatchBaselineRequest & AddApprovedPatches(ApprovedPatchesT &&value)
AWS_SSM_API UpdatePatchBaselineRequest()=default
UpdatePatchBaselineRequest & WithApprovedPatches(ApprovedPatchesT &&value)
PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const
UpdatePatchBaselineRequest & WithApprovalRules(ApprovalRulesT &&value)
UpdatePatchBaselineRequest & WithName(NameT &&value)
UpdatePatchBaselineRequest & WithReplace(bool value)
UpdatePatchBaselineRequest & WithApprovedPatchesComplianceLevel(PatchComplianceLevel value)
const Aws::Vector< PatchSource > & GetSources() const
virtual const char * GetServiceRequestName() const override
UpdatePatchBaselineRequest & WithApprovedPatchesEnableNonSecurity(bool value)
UpdatePatchBaselineRequest & AddSources(SourcesT &&value)
UpdatePatchBaselineRequest & WithGlobalFilters(GlobalFiltersT &&value)
UpdatePatchBaselineRequest & WithDescription(DescriptionT &&value)
UpdatePatchBaselineRequest & WithRejectedPatchesAction(PatchAction value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector