AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePatchBaselineRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/PatchFilterGroup.h>
11#include <aws/ssm/model/PatchRuleGroup.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ssm/model/PatchComplianceLevel.h>
14#include <aws/ssm/model/PatchAction.h>
15#include <aws/ssm/model/PatchSource.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SSM
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdatePatchBaseline"; }
37
38 AWS_SSM_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
48 inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
49 inline void SetBaselineId(const Aws::String& value) { m_baselineIdHasBeenSet = true; m_baselineId = value; }
50 inline void SetBaselineId(Aws::String&& value) { m_baselineIdHasBeenSet = true; m_baselineId = std::move(value); }
51 inline void SetBaselineId(const char* value) { m_baselineIdHasBeenSet = true; m_baselineId.assign(value); }
52 inline UpdatePatchBaselineRequest& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
53 inline UpdatePatchBaselineRequest& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
54 inline UpdatePatchBaselineRequest& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline UpdatePatchBaselineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline UpdatePatchBaselineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline UpdatePatchBaselineRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; }
76 inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
77 inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = value; }
78 inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::move(value); }
80 inline UpdatePatchBaselineRequest& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;}
82
84
87 inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; }
88 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
89 inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = value; }
90 inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::move(value); }
91 inline UpdatePatchBaselineRequest& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
92 inline UpdatePatchBaselineRequest& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;}
94
96
104 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const{ return m_approvedPatches; }
105 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
106 inline void SetApprovedPatches(const Aws::Vector<Aws::String>& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = value; }
107 inline void SetApprovedPatches(Aws::Vector<Aws::String>&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::move(value); }
110 inline UpdatePatchBaselineRequest& AddApprovedPatches(const Aws::String& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
111 inline UpdatePatchBaselineRequest& AddApprovedPatches(Aws::String&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(std::move(value)); return *this; }
112 inline UpdatePatchBaselineRequest& AddApprovedPatches(const char* value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
114
116
119 inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; }
120 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
121 inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
122 inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = std::move(value); }
126
128
133 inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; }
134 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
135 inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
138
140
148 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const{ return m_rejectedPatches; }
149 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
150 inline void SetRejectedPatches(const Aws::Vector<Aws::String>& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = value; }
151 inline void SetRejectedPatches(Aws::Vector<Aws::String>&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::move(value); }
154 inline UpdatePatchBaselineRequest& AddRejectedPatches(const Aws::String& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
155 inline UpdatePatchBaselineRequest& AddRejectedPatches(Aws::String&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(std::move(value)); return *this; }
156 inline UpdatePatchBaselineRequest& AddRejectedPatches(const char* value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
158
160
178 inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; }
179 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
180 inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
181 inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = std::move(value); }
185
187
190 inline const Aws::String& GetDescription() const{ return m_description; }
191 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
192 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
193 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
194 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
195 inline UpdatePatchBaselineRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
196 inline UpdatePatchBaselineRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
197 inline UpdatePatchBaselineRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
199
201
206 inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
207 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
208 inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
209 inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
210 inline UpdatePatchBaselineRequest& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
211 inline UpdatePatchBaselineRequest& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
212 inline UpdatePatchBaselineRequest& AddSources(const PatchSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
213 inline UpdatePatchBaselineRequest& AddSources(PatchSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
215
217
222 inline bool GetReplace() const{ return m_replace; }
223 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
224 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
225 inline UpdatePatchBaselineRequest& WithReplace(bool value) { SetReplace(value); return *this;}
227 private:
228
229 Aws::String m_baselineId;
230 bool m_baselineIdHasBeenSet = false;
231
232 Aws::String m_name;
233 bool m_nameHasBeenSet = false;
234
235 PatchFilterGroup m_globalFilters;
236 bool m_globalFiltersHasBeenSet = false;
237
238 PatchRuleGroup m_approvalRules;
239 bool m_approvalRulesHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_approvedPatches;
242 bool m_approvedPatchesHasBeenSet = false;
243
244 PatchComplianceLevel m_approvedPatchesComplianceLevel;
245 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
246
247 bool m_approvedPatchesEnableNonSecurity;
248 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_rejectedPatches;
251 bool m_rejectedPatchesHasBeenSet = false;
252
253 PatchAction m_rejectedPatchesAction;
254 bool m_rejectedPatchesActionHasBeenSet = false;
255
256 Aws::String m_description;
257 bool m_descriptionHasBeenSet = false;
258
259 Aws::Vector<PatchSource> m_sources;
260 bool m_sourcesHasBeenSet = false;
261
262 bool m_replace;
263 bool m_replaceHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace SSM
268} // namespace Aws
UpdatePatchBaselineRequest & WithGlobalFilters(PatchFilterGroup &&value)
UpdatePatchBaselineRequest & WithGlobalFilters(const PatchFilterGroup &value)
UpdatePatchBaselineRequest & WithApprovalRules(PatchRuleGroup &&value)
UpdatePatchBaselineRequest & AddApprovedPatches(Aws::String &&value)
UpdatePatchBaselineRequest & WithBaselineId(const Aws::String &value)
UpdatePatchBaselineRequest & AddApprovedPatches(const Aws::String &value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdatePatchBaselineRequest & WithApprovalRules(const PatchRuleGroup &value)
const Aws::Vector< Aws::String > & GetApprovedPatches() const
UpdatePatchBaselineRequest & WithBaselineId(Aws::String &&value)
UpdatePatchBaselineRequest & AddApprovedPatches(const char *value)
void SetApprovedPatches(Aws::Vector< Aws::String > &&value)
UpdatePatchBaselineRequest & WithApprovedPatches(const Aws::Vector< Aws::String > &value)
UpdatePatchBaselineRequest & WithSources(const Aws::Vector< PatchSource > &value)
const PatchComplianceLevel & GetApprovedPatchesComplianceLevel() const
UpdatePatchBaselineRequest & WithSources(Aws::Vector< PatchSource > &&value)
UpdatePatchBaselineRequest & WithDescription(Aws::String &&value)
UpdatePatchBaselineRequest & WithRejectedPatchesAction(const PatchAction &value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
void SetSources(const Aws::Vector< PatchSource > &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePatchBaselineRequest & WithName(Aws::String &&value)
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
void SetApprovedPatches(const Aws::Vector< Aws::String > &value)
void SetRejectedPatches(const Aws::Vector< Aws::String > &value)
UpdatePatchBaselineRequest & AddRejectedPatches(const char *value)
void SetRejectedPatches(Aws::Vector< Aws::String > &&value)
UpdatePatchBaselineRequest & WithApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
UpdatePatchBaselineRequest & WithDescription(const char *value)
UpdatePatchBaselineRequest & WithReplace(bool value)
UpdatePatchBaselineRequest & AddSources(const PatchSource &value)
const Aws::Vector< PatchSource > & GetSources() const
UpdatePatchBaselineRequest & WithApprovedPatches(Aws::Vector< Aws::String > &&value)
UpdatePatchBaselineRequest & AddRejectedPatches(Aws::String &&value)
void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
UpdatePatchBaselineRequest & WithApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
virtual const char * GetServiceRequestName() const override
UpdatePatchBaselineRequest & WithApprovedPatchesEnableNonSecurity(bool value)
UpdatePatchBaselineRequest & AddSources(PatchSource &&value)
UpdatePatchBaselineRequest & WithBaselineId(const char *value)
void SetSources(Aws::Vector< PatchSource > &&value)
UpdatePatchBaselineRequest & AddRejectedPatches(const Aws::String &value)
void SetGlobalFilters(const PatchFilterGroup &value)
UpdatePatchBaselineRequest & WithRejectedPatches(const Aws::Vector< Aws::String > &value)
UpdatePatchBaselineRequest & WithDescription(const Aws::String &value)
UpdatePatchBaselineRequest & WithRejectedPatchesAction(PatchAction &&value)
UpdatePatchBaselineRequest & WithRejectedPatches(Aws::Vector< Aws::String > &&value)
UpdatePatchBaselineRequest & WithName(const Aws::String &value)
UpdatePatchBaselineRequest & WithName(const char *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