AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePatchBaselineRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/model/OperatingSystem.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm/model/PatchFilterGroup.h>
12#include <aws/ssm/model/PatchRuleGroup.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ssm/model/PatchComplianceLevel.h>
15#include <aws/ssm/model/PatchAction.h>
16#include <aws/ssm/model/PatchSource.h>
17#include <aws/ssm/model/Tag.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace SSM
24{
25namespace Model
26{
27
31 {
32 public:
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreatePatchBaseline"; }
40
41 AWS_SSM_API Aws::String SerializePayload() const override;
42
44
45
47
51 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
52 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
53 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
54 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
56 inline CreatePatchBaselineRequest& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline CreatePatchBaselineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline CreatePatchBaselineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline CreatePatchBaselineRequest& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; }
78 inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
79 inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = value; }
80 inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::move(value); }
82 inline CreatePatchBaselineRequest& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;}
84
86
89 inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; }
90 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
91 inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = value; }
92 inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::move(value); }
93 inline CreatePatchBaselineRequest& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
94 inline CreatePatchBaselineRequest& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;}
96
98
106 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const{ return m_approvedPatches; }
107 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
108 inline void SetApprovedPatches(const Aws::Vector<Aws::String>& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = value; }
109 inline void SetApprovedPatches(Aws::Vector<Aws::String>&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::move(value); }
112 inline CreatePatchBaselineRequest& AddApprovedPatches(const Aws::String& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
113 inline CreatePatchBaselineRequest& AddApprovedPatches(Aws::String&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(std::move(value)); return *this; }
114 inline CreatePatchBaselineRequest& AddApprovedPatches(const char* value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
116
118
123 inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; }
124 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
125 inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
126 inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = std::move(value); }
130
132
137 inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; }
138 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
139 inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
142
144
152 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const{ return m_rejectedPatches; }
153 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
154 inline void SetRejectedPatches(const Aws::Vector<Aws::String>& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = value; }
155 inline void SetRejectedPatches(Aws::Vector<Aws::String>&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::move(value); }
158 inline CreatePatchBaselineRequest& AddRejectedPatches(const Aws::String& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
159 inline CreatePatchBaselineRequest& AddRejectedPatches(Aws::String&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(std::move(value)); return *this; }
160 inline CreatePatchBaselineRequest& AddRejectedPatches(const char* value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
162
164
182 inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; }
183 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
184 inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
185 inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = std::move(value); }
189
191
194 inline const Aws::String& GetDescription() const{ return m_description; }
195 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
196 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
197 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
198 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
199 inline CreatePatchBaselineRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
200 inline CreatePatchBaselineRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
201 inline CreatePatchBaselineRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
203
205
210 inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
211 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
212 inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
213 inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
214 inline CreatePatchBaselineRequest& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
215 inline CreatePatchBaselineRequest& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
216 inline CreatePatchBaselineRequest& AddSources(const PatchSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
217 inline CreatePatchBaselineRequest& AddSources(PatchSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
219
221
224 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
225 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
226 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
227 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
228 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
229 inline CreatePatchBaselineRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
230 inline CreatePatchBaselineRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
231 inline CreatePatchBaselineRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
233
235
245 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
246 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
247 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
248 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
249 inline CreatePatchBaselineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
250 inline CreatePatchBaselineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
251 inline CreatePatchBaselineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
252 inline CreatePatchBaselineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
254 private:
255
256 OperatingSystem m_operatingSystem;
257 bool m_operatingSystemHasBeenSet = false;
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 PatchFilterGroup m_globalFilters;
263 bool m_globalFiltersHasBeenSet = false;
264
265 PatchRuleGroup m_approvalRules;
266 bool m_approvalRulesHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_approvedPatches;
269 bool m_approvedPatchesHasBeenSet = false;
270
271 PatchComplianceLevel m_approvedPatchesComplianceLevel;
272 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
273
274 bool m_approvedPatchesEnableNonSecurity;
275 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
276
277 Aws::Vector<Aws::String> m_rejectedPatches;
278 bool m_rejectedPatchesHasBeenSet = false;
279
280 PatchAction m_rejectedPatchesAction;
281 bool m_rejectedPatchesActionHasBeenSet = false;
282
283 Aws::String m_description;
284 bool m_descriptionHasBeenSet = false;
285
286 Aws::Vector<PatchSource> m_sources;
287 bool m_sourcesHasBeenSet = false;
288
289 Aws::String m_clientToken;
290 bool m_clientTokenHasBeenSet = false;
291
292 Aws::Vector<Tag> m_tags;
293 bool m_tagsHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace SSM
298} // namespace Aws
CreatePatchBaselineRequest & WithApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
CreatePatchBaselineRequest & AddRejectedPatches(const Aws::String &value)
CreatePatchBaselineRequest & WithClientToken(const char *value)
void SetSources(Aws::Vector< PatchSource > &&value)
CreatePatchBaselineRequest & AddTags(Tag &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreatePatchBaselineRequest & AddApprovedPatches(Aws::String &&value)
CreatePatchBaselineRequest & AddApprovedPatches(const char *value)
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
CreatePatchBaselineRequest & AddSources(PatchSource &&value)
CreatePatchBaselineRequest & AddApprovedPatches(const Aws::String &value)
void SetRejectedPatches(const Aws::Vector< Aws::String > &value)
void SetGlobalFilters(const PatchFilterGroup &value)
CreatePatchBaselineRequest & AddRejectedPatches(const char *value)
CreatePatchBaselineRequest & AddSources(const PatchSource &value)
CreatePatchBaselineRequest & AddTags(const Tag &value)
CreatePatchBaselineRequest & WithOperatingSystem(OperatingSystem &&value)
CreatePatchBaselineRequest & WithGlobalFilters(const PatchFilterGroup &value)
CreatePatchBaselineRequest & WithRejectedPatches(const Aws::Vector< Aws::String > &value)
CreatePatchBaselineRequest & WithApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
const PatchComplianceLevel & GetApprovedPatchesComplianceLevel() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePatchBaselineRequest & WithSources(const Aws::Vector< PatchSource > &value)
CreatePatchBaselineRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_SSM_API Aws::String SerializePayload() const override
void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
CreatePatchBaselineRequest & WithApprovedPatchesEnableNonSecurity(bool value)
CreatePatchBaselineRequest & WithApprovedPatches(Aws::Vector< Aws::String > &&value)
CreatePatchBaselineRequest & WithApprovalRules(PatchRuleGroup &&value)
void SetOperatingSystem(const OperatingSystem &value)
CreatePatchBaselineRequest & AddRejectedPatches(Aws::String &&value)
CreatePatchBaselineRequest & WithOperatingSystem(const OperatingSystem &value)
CreatePatchBaselineRequest & WithName(const char *value)
CreatePatchBaselineRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
CreatePatchBaselineRequest & WithSources(Aws::Vector< PatchSource > &&value)
const Aws::Vector< PatchSource > & GetSources() const
CreatePatchBaselineRequest & WithGlobalFilters(PatchFilterGroup &&value)
CreatePatchBaselineRequest & WithDescription(const Aws::String &value)
CreatePatchBaselineRequest & WithApprovalRules(const PatchRuleGroup &value)
virtual const char * GetServiceRequestName() const override
CreatePatchBaselineRequest & WithApprovedPatches(const Aws::Vector< Aws::String > &value)
CreatePatchBaselineRequest & WithClientToken(const Aws::String &value)
CreatePatchBaselineRequest & WithRejectedPatches(Aws::Vector< Aws::String > &&value)
CreatePatchBaselineRequest & WithName(Aws::String &&value)
CreatePatchBaselineRequest & WithName(const Aws::String &value)
CreatePatchBaselineRequest & WithDescription(const char *value)
CreatePatchBaselineRequest & WithClientToken(Aws::String &&value)
void SetRejectedPatches(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetApprovedPatches() const
CreatePatchBaselineRequest & WithDescription(Aws::String &&value)
void SetApprovedPatches(const Aws::Vector< Aws::String > &value)
void SetSources(const Aws::Vector< PatchSource > &value)
CreatePatchBaselineRequest & WithRejectedPatchesAction(const PatchAction &value)
void SetApprovedPatches(Aws::Vector< Aws::String > &&value)
CreatePatchBaselineRequest & 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