AWS SDK for C++

AWS SDK for C++ Version 1.11.552

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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/PatchComplianceStatus.h>
16#include <aws/ssm/model/PatchSource.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SSM
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SSM_API UpdatePatchBaselineRequest() = 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 "UpdatePatchBaseline"; }
38
39 AWS_SSM_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetBaselineId() const { return m_baselineId; }
49 inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
50 template<typename BaselineIdT = Aws::String>
51 void SetBaselineId(BaselineIdT&& value) { m_baselineIdHasBeenSet = true; m_baselineId = std::forward<BaselineIdT>(value); }
52 template<typename BaselineIdT = Aws::String>
53 UpdatePatchBaselineRequest& WithBaselineId(BaselineIdT&& value) { SetBaselineId(std::forward<BaselineIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 UpdatePatchBaselineRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
76 inline const PatchFilterGroup& GetGlobalFilters() const { return m_globalFilters; }
77 inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
78 template<typename GlobalFiltersT = PatchFilterGroup>
79 void SetGlobalFilters(GlobalFiltersT&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::forward<GlobalFiltersT>(value); }
80 template<typename GlobalFiltersT = PatchFilterGroup>
81 UpdatePatchBaselineRequest& WithGlobalFilters(GlobalFiltersT&& value) { SetGlobalFilters(std::forward<GlobalFiltersT>(value)); return *this;}
83
85
88 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
89 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
90 template<typename ApprovalRulesT = PatchRuleGroup>
91 void SetApprovalRules(ApprovalRulesT&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::forward<ApprovalRulesT>(value); }
92 template<typename ApprovalRulesT = PatchRuleGroup>
93 UpdatePatchBaselineRequest& WithApprovalRules(ApprovalRulesT&& value) { SetApprovalRules(std::forward<ApprovalRulesT>(value)); return *this;}
95
97
105 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
106 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
107 template<typename ApprovedPatchesT = Aws::Vector<Aws::String>>
108 void SetApprovedPatches(ApprovedPatchesT&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::forward<ApprovedPatchesT>(value); }
109 template<typename ApprovedPatchesT = Aws::Vector<Aws::String>>
110 UpdatePatchBaselineRequest& WithApprovedPatches(ApprovedPatchesT&& value) { SetApprovedPatches(std::forward<ApprovedPatchesT>(value)); return *this;}
111 template<typename ApprovedPatchesT = Aws::String>
112 UpdatePatchBaselineRequest& AddApprovedPatches(ApprovedPatchesT&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value)); return *this; }
114
116
119 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
120 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
121 inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
124
126
131 inline bool GetApprovedPatchesEnableNonSecurity() const { return m_approvedPatchesEnableNonSecurity; }
132 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
133 inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
136
138
146 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
147 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
148 template<typename RejectedPatchesT = Aws::Vector<Aws::String>>
149 void SetRejectedPatches(RejectedPatchesT&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::forward<RejectedPatchesT>(value); }
150 template<typename RejectedPatchesT = Aws::Vector<Aws::String>>
151 UpdatePatchBaselineRequest& WithRejectedPatches(RejectedPatchesT&& value) { SetRejectedPatches(std::forward<RejectedPatchesT>(value)); return *this;}
152 template<typename RejectedPatchesT = Aws::String>
153 UpdatePatchBaselineRequest& AddRejectedPatches(RejectedPatchesT&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value)); return *this; }
155
157
175 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
176 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
177 inline void SetRejectedPatchesAction(PatchAction value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
180
182
185 inline const Aws::String& GetDescription() const { return m_description; }
186 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
187 template<typename DescriptionT = Aws::String>
188 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
189 template<typename DescriptionT = Aws::String>
190 UpdatePatchBaselineRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
192
194
199 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
200 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
201 template<typename SourcesT = Aws::Vector<PatchSource>>
202 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
203 template<typename SourcesT = Aws::Vector<PatchSource>>
204 UpdatePatchBaselineRequest& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
205 template<typename SourcesT = PatchSource>
206 UpdatePatchBaselineRequest& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
208
210
221 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
222 inline bool AvailableSecurityUpdatesComplianceStatusHasBeenSet() const { return m_availableSecurityUpdatesComplianceStatusHasBeenSet; }
223 inline void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value) { m_availableSecurityUpdatesComplianceStatusHasBeenSet = true; m_availableSecurityUpdatesComplianceStatus = value; }
226
228
233 inline bool GetReplace() const { return m_replace; }
234 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
235 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
236 inline UpdatePatchBaselineRequest& WithReplace(bool value) { SetReplace(value); return *this;}
238 private:
239
240 Aws::String m_baselineId;
241 bool m_baselineIdHasBeenSet = false;
242
243 Aws::String m_name;
244 bool m_nameHasBeenSet = false;
245
246 PatchFilterGroup m_globalFilters;
247 bool m_globalFiltersHasBeenSet = false;
248
249 PatchRuleGroup m_approvalRules;
250 bool m_approvalRulesHasBeenSet = false;
251
252 Aws::Vector<Aws::String> m_approvedPatches;
253 bool m_approvedPatchesHasBeenSet = false;
254
255 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
256 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
257
258 bool m_approvedPatchesEnableNonSecurity{false};
259 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
260
261 Aws::Vector<Aws::String> m_rejectedPatches;
262 bool m_rejectedPatchesHasBeenSet = false;
263
264 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
265 bool m_rejectedPatchesActionHasBeenSet = false;
266
267 Aws::String m_description;
268 bool m_descriptionHasBeenSet = false;
269
270 Aws::Vector<PatchSource> m_sources;
271 bool m_sourcesHasBeenSet = false;
272
273 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
274 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
275
276 bool m_replace{false};
277 bool m_replaceHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace SSM
282} // 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