AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
UpdatePatchBaselineResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace SSM {
32namespace Model {
34 public:
35 AWS_SSM_API UpdatePatchBaselineResult() = default;
38
40
43 inline const Aws::String& GetBaselineId() const { return m_baselineId; }
44 template <typename BaselineIdT = Aws::String>
45 void SetBaselineId(BaselineIdT&& value) {
46 m_baselineIdHasBeenSet = true;
47 m_baselineId = std::forward<BaselineIdT>(value);
48 }
49 template <typename BaselineIdT = Aws::String>
51 SetBaselineId(std::forward<BaselineIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
79 m_operatingSystemHasBeenSet = true;
80 m_operatingSystem = value;
81 }
83 SetOperatingSystem(value);
84 return *this;
85 }
87
89
92 inline const PatchFilterGroup& GetGlobalFilters() const { return m_globalFilters; }
93 template <typename GlobalFiltersT = PatchFilterGroup>
94 void SetGlobalFilters(GlobalFiltersT&& value) {
95 m_globalFiltersHasBeenSet = true;
96 m_globalFilters = std::forward<GlobalFiltersT>(value);
97 }
98 template <typename GlobalFiltersT = PatchFilterGroup>
100 SetGlobalFilters(std::forward<GlobalFiltersT>(value));
101 return *this;
102 }
104
106
109 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
110 template <typename ApprovalRulesT = PatchRuleGroup>
111 void SetApprovalRules(ApprovalRulesT&& value) {
112 m_approvalRulesHasBeenSet = true;
113 m_approvalRules = std::forward<ApprovalRulesT>(value);
114 }
115 template <typename ApprovalRulesT = PatchRuleGroup>
117 SetApprovalRules(std::forward<ApprovalRulesT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
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
150 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
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 void SetApprovedPatchesEnableNonSecurity(bool value) {
169 m_approvedPatchesEnableNonSecurityHasBeenSet = true;
170 m_approvedPatchesEnableNonSecurity = value;
171 }
174 return *this;
175 }
177
179
182 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
183 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
184 void SetRejectedPatches(RejectedPatchesT&& value) {
185 m_rejectedPatchesHasBeenSet = true;
186 m_rejectedPatches = std::forward<RejectedPatchesT>(value);
187 }
188 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
190 SetRejectedPatches(std::forward<RejectedPatchesT>(value));
191 return *this;
192 }
193 template <typename RejectedPatchesT = Aws::String>
195 m_rejectedPatchesHasBeenSet = true;
196 m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value));
197 return *this;
198 }
200
202
208 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
210 m_rejectedPatchesActionHasBeenSet = true;
211 m_rejectedPatchesAction = value;
212 }
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
224 template <typename CreatedDateT = Aws::Utils::DateTime>
225 void SetCreatedDate(CreatedDateT&& value) {
226 m_createdDateHasBeenSet = true;
227 m_createdDate = std::forward<CreatedDateT>(value);
228 }
229 template <typename CreatedDateT = Aws::Utils::DateTime>
231 SetCreatedDate(std::forward<CreatedDateT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
241 template <typename ModifiedDateT = Aws::Utils::DateTime>
242 void SetModifiedDate(ModifiedDateT&& value) {
243 m_modifiedDateHasBeenSet = true;
244 m_modifiedDate = std::forward<ModifiedDateT>(value);
245 }
246 template <typename ModifiedDateT = Aws::Utils::DateTime>
248 SetModifiedDate(std::forward<ModifiedDateT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::String& GetDescription() const { return m_description; }
258 template <typename DescriptionT = Aws::String>
259 void SetDescription(DescriptionT&& value) {
260 m_descriptionHasBeenSet = true;
261 m_description = std::forward<DescriptionT>(value);
262 }
263 template <typename DescriptionT = Aws::String>
265 SetDescription(std::forward<DescriptionT>(value));
266 return *this;
267 }
269
271
276 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
277 template <typename SourcesT = Aws::Vector<PatchSource>>
278 void SetSources(SourcesT&& value) {
279 m_sourcesHasBeenSet = true;
280 m_sources = std::forward<SourcesT>(value);
281 }
282 template <typename SourcesT = Aws::Vector<PatchSource>>
284 SetSources(std::forward<SourcesT>(value));
285 return *this;
286 }
287 template <typename SourcesT = PatchSource>
289 m_sourcesHasBeenSet = true;
290 m_sources.emplace_back(std::forward<SourcesT>(value));
291 return *this;
292 }
294
296
302 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
304 m_availableSecurityUpdatesComplianceStatusHasBeenSet = true;
305 m_availableSecurityUpdatesComplianceStatus = value;
306 }
309 return *this;
310 }
312
314
315 inline const Aws::String& GetRequestId() const { return m_requestId; }
316 template <typename RequestIdT = Aws::String>
317 void SetRequestId(RequestIdT&& value) {
318 m_requestIdHasBeenSet = true;
319 m_requestId = std::forward<RequestIdT>(value);
320 }
321 template <typename RequestIdT = Aws::String>
323 SetRequestId(std::forward<RequestIdT>(value));
324 return *this;
325 }
327 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
328
329 private:
330 Aws::String m_baselineId;
331
332 Aws::String m_name;
333
334 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
335
336 PatchFilterGroup m_globalFilters;
337
338 PatchRuleGroup m_approvalRules;
339
340 Aws::Vector<Aws::String> m_approvedPatches;
341
342 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
343
344 bool m_approvedPatchesEnableNonSecurity{false};
345
346 Aws::Vector<Aws::String> m_rejectedPatches;
347
348 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
349
350 Aws::Utils::DateTime m_createdDate{};
351
352 Aws::Utils::DateTime m_modifiedDate{};
353
354 Aws::String m_description;
355
356 Aws::Vector<PatchSource> m_sources;
357
358 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
359
360 Aws::String m_requestId;
361 Aws::Http::HttpResponseCode m_HttpResponseCode;
362 bool m_baselineIdHasBeenSet = false;
363 bool m_nameHasBeenSet = false;
364 bool m_operatingSystemHasBeenSet = false;
365 bool m_globalFiltersHasBeenSet = false;
366 bool m_approvalRulesHasBeenSet = false;
367 bool m_approvedPatchesHasBeenSet = false;
368 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
369 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
370 bool m_rejectedPatchesHasBeenSet = false;
371 bool m_rejectedPatchesActionHasBeenSet = false;
372 bool m_createdDateHasBeenSet = false;
373 bool m_modifiedDateHasBeenSet = false;
374 bool m_descriptionHasBeenSet = false;
375 bool m_sourcesHasBeenSet = false;
376 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
377 bool m_requestIdHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace SSM
382} // namespace Aws
UpdatePatchBaselineResult & WithGlobalFilters(GlobalFiltersT &&value)
UpdatePatchBaselineResult & AddSources(SourcesT &&value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
UpdatePatchBaselineResult & WithAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
UpdatePatchBaselineResult & WithApprovedPatchesEnableNonSecurity(bool value)
UpdatePatchBaselineResult & WithBaselineId(BaselineIdT &&value)
UpdatePatchBaselineResult & AddRejectedPatches(RejectedPatchesT &&value)
UpdatePatchBaselineResult & WithApprovalRules(ApprovalRulesT &&value)
UpdatePatchBaselineResult & WithModifiedDate(ModifiedDateT &&value)
UpdatePatchBaselineResult & WithOperatingSystem(OperatingSystem value)
UpdatePatchBaselineResult & WithName(NameT &&value)
UpdatePatchBaselineResult & AddApprovedPatches(ApprovedPatchesT &&value)
PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const
UpdatePatchBaselineResult & WithRejectedPatchesAction(PatchAction value)
AWS_SSM_API UpdatePatchBaselineResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetApprovedPatches() const
UpdatePatchBaselineResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< PatchSource > & GetSources() const
PatchComplianceLevel GetApprovedPatchesComplianceLevel() const
UpdatePatchBaselineResult & WithSources(SourcesT &&value)
UpdatePatchBaselineResult & WithRejectedPatches(RejectedPatchesT &&value)
UpdatePatchBaselineResult & WithApprovedPatchesComplianceLevel(PatchComplianceLevel value)
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value)
AWS_SSM_API UpdatePatchBaselineResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetModifiedDate() const
UpdatePatchBaselineResult & WithApprovedPatches(ApprovedPatchesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const PatchFilterGroup & GetGlobalFilters() const
AWS_SSM_API UpdatePatchBaselineResult()=default
void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
UpdatePatchBaselineResult & WithCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
UpdatePatchBaselineResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue