AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreatePatchBaselineRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/OperatingSystem.h>
13#include <aws/ssm/model/PatchAction.h>
14#include <aws/ssm/model/PatchComplianceLevel.h>
15#include <aws/ssm/model/PatchComplianceStatus.h>
16#include <aws/ssm/model/PatchFilterGroup.h>
17#include <aws/ssm/model/PatchRuleGroup.h>
18#include <aws/ssm/model/PatchSource.h>
19#include <aws/ssm/model/Tag.h>
20
21#include <utility>
22
23namespace Aws {
24namespace SSM {
25namespace Model {
26
30 public:
31 AWS_SSM_API CreatePatchBaselineRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreatePatchBaseline"; }
38
39 AWS_SSM_API Aws::String SerializePayload() const override;
40
42
44
48 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
49 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
51 m_operatingSystemHasBeenSet = true;
52 m_operatingSystem = value;
53 }
55 SetOperatingSystem(value);
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
86 inline const PatchFilterGroup& GetGlobalFilters() const { return m_globalFilters; }
87 inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
88 template <typename GlobalFiltersT = PatchFilterGroup>
89 void SetGlobalFilters(GlobalFiltersT&& value) {
90 m_globalFiltersHasBeenSet = true;
91 m_globalFilters = std::forward<GlobalFiltersT>(value);
92 }
93 template <typename GlobalFiltersT = PatchFilterGroup>
95 SetGlobalFilters(std::forward<GlobalFiltersT>(value));
96 return *this;
97 }
99
101
104 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
105 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
106 template <typename ApprovalRulesT = PatchRuleGroup>
107 void SetApprovalRules(ApprovalRulesT&& value) {
108 m_approvalRulesHasBeenSet = true;
109 m_approvalRules = std::forward<ApprovalRulesT>(value);
110 }
111 template <typename ApprovalRulesT = PatchRuleGroup>
113 SetApprovalRules(std::forward<ApprovalRulesT>(value));
114 return *this;
115 }
117
119
127 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
128 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
129 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
130 void SetApprovedPatches(ApprovedPatchesT&& value) {
131 m_approvedPatchesHasBeenSet = true;
132 m_approvedPatches = std::forward<ApprovedPatchesT>(value);
133 }
134 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
136 SetApprovedPatches(std::forward<ApprovedPatchesT>(value));
137 return *this;
138 }
139 template <typename ApprovedPatchesT = Aws::String>
141 m_approvedPatchesHasBeenSet = true;
142 m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value));
143 return *this;
144 }
146
148
153 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
154 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
156 m_approvedPatchesComplianceLevelHasBeenSet = true;
157 m_approvedPatchesComplianceLevel = value;
158 }
161 return *this;
162 }
164
166
171 inline bool GetApprovedPatchesEnableNonSecurity() const { return m_approvedPatchesEnableNonSecurity; }
172 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
173 inline void SetApprovedPatchesEnableNonSecurity(bool value) {
174 m_approvedPatchesEnableNonSecurityHasBeenSet = true;
175 m_approvedPatchesEnableNonSecurity = value;
176 }
179 return *this;
180 }
182
184
192 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
193 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
194 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
195 void SetRejectedPatches(RejectedPatchesT&& value) {
196 m_rejectedPatchesHasBeenSet = true;
197 m_rejectedPatches = std::forward<RejectedPatchesT>(value);
198 }
199 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
201 SetRejectedPatches(std::forward<RejectedPatchesT>(value));
202 return *this;
203 }
204 template <typename RejectedPatchesT = Aws::String>
206 m_rejectedPatchesHasBeenSet = true;
207 m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value));
208 return *this;
209 }
211
213
237 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
238 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
240 m_rejectedPatchesActionHasBeenSet = true;
241 m_rejectedPatchesAction = value;
242 }
245 return *this;
246 }
248
250
253 inline const Aws::String& GetDescription() const { return m_description; }
254 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
255 template <typename DescriptionT = Aws::String>
256 void SetDescription(DescriptionT&& value) {
257 m_descriptionHasBeenSet = true;
258 m_description = std::forward<DescriptionT>(value);
259 }
260 template <typename DescriptionT = Aws::String>
262 SetDescription(std::forward<DescriptionT>(value));
263 return *this;
264 }
266
268
273 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
274 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
275 template <typename SourcesT = Aws::Vector<PatchSource>>
276 void SetSources(SourcesT&& value) {
277 m_sourcesHasBeenSet = true;
278 m_sources = std::forward<SourcesT>(value);
279 }
280 template <typename SourcesT = Aws::Vector<PatchSource>>
282 SetSources(std::forward<SourcesT>(value));
283 return *this;
284 }
285 template <typename SourcesT = PatchSource>
287 m_sourcesHasBeenSet = true;
288 m_sources.emplace_back(std::forward<SourcesT>(value));
289 return *this;
290 }
292
294
305 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
306 inline bool AvailableSecurityUpdatesComplianceStatusHasBeenSet() const { return m_availableSecurityUpdatesComplianceStatusHasBeenSet; }
308 m_availableSecurityUpdatesComplianceStatusHasBeenSet = true;
309 m_availableSecurityUpdatesComplianceStatus = value;
310 }
313 return *this;
314 }
316
318
321 inline const Aws::String& GetClientToken() const { return m_clientToken; }
322 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
323 template <typename ClientTokenT = Aws::String>
324 void SetClientToken(ClientTokenT&& value) {
325 m_clientTokenHasBeenSet = true;
326 m_clientToken = std::forward<ClientTokenT>(value);
327 }
328 template <typename ClientTokenT = Aws::String>
330 SetClientToken(std::forward<ClientTokenT>(value));
331 return *this;
332 }
334
336
346 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
347 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
348 template <typename TagsT = Aws::Vector<Tag>>
349 void SetTags(TagsT&& value) {
350 m_tagsHasBeenSet = true;
351 m_tags = std::forward<TagsT>(value);
352 }
353 template <typename TagsT = Aws::Vector<Tag>>
355 SetTags(std::forward<TagsT>(value));
356 return *this;
357 }
358 template <typename TagsT = Tag>
360 m_tagsHasBeenSet = true;
361 m_tags.emplace_back(std::forward<TagsT>(value));
362 return *this;
363 }
365 private:
366 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
367
368 Aws::String m_name;
369
370 PatchFilterGroup m_globalFilters;
371
372 PatchRuleGroup m_approvalRules;
373
374 Aws::Vector<Aws::String> m_approvedPatches;
375
376 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
377
378 bool m_approvedPatchesEnableNonSecurity{false};
379
380 Aws::Vector<Aws::String> m_rejectedPatches;
381
382 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
383
384 Aws::String m_description;
385
386 Aws::Vector<PatchSource> m_sources;
387
388 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
389
391
392 Aws::Vector<Tag> m_tags;
393 bool m_operatingSystemHasBeenSet = false;
394 bool m_nameHasBeenSet = false;
395 bool m_globalFiltersHasBeenSet = false;
396 bool m_approvalRulesHasBeenSet = false;
397 bool m_approvedPatchesHasBeenSet = false;
398 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
399 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
400 bool m_rejectedPatchesHasBeenSet = false;
401 bool m_rejectedPatchesActionHasBeenSet = false;
402 bool m_descriptionHasBeenSet = false;
403 bool m_sourcesHasBeenSet = false;
404 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
405 bool m_clientTokenHasBeenSet = true;
406 bool m_tagsHasBeenSet = false;
407};
408
409} // namespace Model
410} // namespace SSM
411} // namespace Aws
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value)
CreatePatchBaselineRequest & WithSources(SourcesT &&value)
CreatePatchBaselineRequest & WithGlobalFilters(GlobalFiltersT &&value)
CreatePatchBaselineRequest & WithName(NameT &&value)
CreatePatchBaselineRequest & WithTags(TagsT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePatchBaselineRequest & AddApprovedPatches(ApprovedPatchesT &&value)
PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const
AWS_SSM_API Aws::String SerializePayload() const override
CreatePatchBaselineRequest & WithOperatingSystem(OperatingSystem value)
CreatePatchBaselineRequest & WithApprovedPatchesEnableNonSecurity(bool value)
CreatePatchBaselineRequest & AddSources(SourcesT &&value)
AWS_SSM_API CreatePatchBaselineRequest()=default
CreatePatchBaselineRequest & WithApprovalRules(ApprovalRulesT &&value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
CreatePatchBaselineRequest & WithApprovedPatches(ApprovedPatchesT &&value)
const Aws::Vector< PatchSource > & GetSources() const
CreatePatchBaselineRequest & WithDescription(DescriptionT &&value)
CreatePatchBaselineRequest & WithAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
CreatePatchBaselineRequest & WithClientToken(ClientTokenT &&value)
CreatePatchBaselineRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetApprovedPatches() const
void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
CreatePatchBaselineRequest & AddRejectedPatches(RejectedPatchesT &&value)
CreatePatchBaselineRequest & WithApprovedPatchesComplianceLevel(PatchComplianceLevel value)
CreatePatchBaselineRequest & WithRejectedPatchesAction(PatchAction value)
CreatePatchBaselineRequest & WithRejectedPatches(RejectedPatchesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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