AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetPatchBaselineResult.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 GetPatchBaselineResult() = 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>
50 GetPatchBaselineResult& WithBaselineId(BaselineIdT&& value) {
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>
99 GetPatchBaselineResult& WithGlobalFilters(GlobalFiltersT&& value) {
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>
116 GetPatchBaselineResult& WithApprovalRules(ApprovalRulesT&& value) {
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>>
133 GetPatchBaselineResult& WithApprovedPatches(ApprovedPatchesT&& value) {
134 SetApprovedPatches(std::forward<ApprovedPatchesT>(value));
135 return *this;
136 }
137 template <typename ApprovedPatchesT = Aws::String>
138 GetPatchBaselineResult& AddApprovedPatches(ApprovedPatchesT&& value) {
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>>
189 GetPatchBaselineResult& WithRejectedPatches(RejectedPatchesT&& value) {
190 SetRejectedPatches(std::forward<RejectedPatchesT>(value));
191 return *this;
192 }
193 template <typename RejectedPatchesT = Aws::String>
194 GetPatchBaselineResult& AddRejectedPatches(RejectedPatchesT&& value) {
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::Vector<Aws::String>& GetPatchGroups() const { return m_patchGroups; }
224 template <typename PatchGroupsT = Aws::Vector<Aws::String>>
225 void SetPatchGroups(PatchGroupsT&& value) {
226 m_patchGroupsHasBeenSet = true;
227 m_patchGroups = std::forward<PatchGroupsT>(value);
228 }
229 template <typename PatchGroupsT = Aws::Vector<Aws::String>>
231 SetPatchGroups(std::forward<PatchGroupsT>(value));
232 return *this;
233 }
234 template <typename PatchGroupsT = Aws::String>
235 GetPatchBaselineResult& AddPatchGroups(PatchGroupsT&& value) {
236 m_patchGroupsHasBeenSet = true;
237 m_patchGroups.emplace_back(std::forward<PatchGroupsT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
247 template <typename CreatedDateT = Aws::Utils::DateTime>
248 void SetCreatedDate(CreatedDateT&& value) {
249 m_createdDateHasBeenSet = true;
250 m_createdDate = std::forward<CreatedDateT>(value);
251 }
252 template <typename CreatedDateT = Aws::Utils::DateTime>
254 SetCreatedDate(std::forward<CreatedDateT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
264 template <typename ModifiedDateT = Aws::Utils::DateTime>
265 void SetModifiedDate(ModifiedDateT&& value) {
266 m_modifiedDateHasBeenSet = true;
267 m_modifiedDate = std::forward<ModifiedDateT>(value);
268 }
269 template <typename ModifiedDateT = Aws::Utils::DateTime>
270 GetPatchBaselineResult& WithModifiedDate(ModifiedDateT&& value) {
271 SetModifiedDate(std::forward<ModifiedDateT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::String& GetDescription() const { return m_description; }
281 template <typename DescriptionT = Aws::String>
282 void SetDescription(DescriptionT&& value) {
283 m_descriptionHasBeenSet = true;
284 m_description = std::forward<DescriptionT>(value);
285 }
286 template <typename DescriptionT = Aws::String>
288 SetDescription(std::forward<DescriptionT>(value));
289 return *this;
290 }
292
294
299 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
300 template <typename SourcesT = Aws::Vector<PatchSource>>
301 void SetSources(SourcesT&& value) {
302 m_sourcesHasBeenSet = true;
303 m_sources = std::forward<SourcesT>(value);
304 }
305 template <typename SourcesT = Aws::Vector<PatchSource>>
307 SetSources(std::forward<SourcesT>(value));
308 return *this;
309 }
310 template <typename SourcesT = PatchSource>
312 m_sourcesHasBeenSet = true;
313 m_sources.emplace_back(std::forward<SourcesT>(value));
314 return *this;
315 }
317
319
325 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
327 m_availableSecurityUpdatesComplianceStatusHasBeenSet = true;
328 m_availableSecurityUpdatesComplianceStatus = value;
329 }
332 return *this;
333 }
335
337
338 inline const Aws::String& GetRequestId() const { return m_requestId; }
339 template <typename RequestIdT = Aws::String>
340 void SetRequestId(RequestIdT&& value) {
341 m_requestIdHasBeenSet = true;
342 m_requestId = std::forward<RequestIdT>(value);
343 }
344 template <typename RequestIdT = Aws::String>
346 SetRequestId(std::forward<RequestIdT>(value));
347 return *this;
348 }
350 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
351
352 private:
353 Aws::String m_baselineId;
354
355 Aws::String m_name;
356
357 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
358
359 PatchFilterGroup m_globalFilters;
360
361 PatchRuleGroup m_approvalRules;
362
363 Aws::Vector<Aws::String> m_approvedPatches;
364
365 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
366
367 bool m_approvedPatchesEnableNonSecurity{false};
368
369 Aws::Vector<Aws::String> m_rejectedPatches;
370
371 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
372
373 Aws::Vector<Aws::String> m_patchGroups;
374
375 Aws::Utils::DateTime m_createdDate{};
376
377 Aws::Utils::DateTime m_modifiedDate{};
378
379 Aws::String m_description;
380
381 Aws::Vector<PatchSource> m_sources;
382
383 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
384
385 Aws::String m_requestId;
386 Aws::Http::HttpResponseCode m_HttpResponseCode;
387 bool m_baselineIdHasBeenSet = false;
388 bool m_nameHasBeenSet = false;
389 bool m_operatingSystemHasBeenSet = false;
390 bool m_globalFiltersHasBeenSet = false;
391 bool m_approvalRulesHasBeenSet = false;
392 bool m_approvedPatchesHasBeenSet = false;
393 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
394 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
395 bool m_rejectedPatchesHasBeenSet = false;
396 bool m_rejectedPatchesActionHasBeenSet = false;
397 bool m_patchGroupsHasBeenSet = false;
398 bool m_createdDateHasBeenSet = false;
399 bool m_modifiedDateHasBeenSet = false;
400 bool m_descriptionHasBeenSet = false;
401 bool m_sourcesHasBeenSet = false;
402 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
403 bool m_requestIdHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace SSM
408} // namespace Aws
const Aws::Vector< Aws::String > & GetApprovedPatches() const
GetPatchBaselineResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< PatchSource > & GetSources() const
GetPatchBaselineResult & AddRejectedPatches(RejectedPatchesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
const PatchRuleGroup & GetApprovalRules() const
GetPatchBaselineResult & AddPatchGroups(PatchGroupsT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
GetPatchBaselineResult & WithCreatedDate(CreatedDateT &&value)
GetPatchBaselineResult & WithPatchGroups(PatchGroupsT &&value)
GetPatchBaselineResult & WithApprovedPatchesEnableNonSecurity(bool value)
void SetRejectedPatches(RejectedPatchesT &&value)
GetPatchBaselineResult & WithApprovedPatches(ApprovedPatchesT &&value)
GetPatchBaselineResult & AddApprovedPatches(ApprovedPatchesT &&value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
PatchComplianceLevel GetApprovedPatchesComplianceLevel() const
const Aws::Vector< Aws::String > & GetPatchGroups() const
AWS_SSM_API GetPatchBaselineResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPatchBaselineResult & WithRejectedPatches(RejectedPatchesT &&value)
GetPatchBaselineResult & AddSources(SourcesT &&value)
PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const
const Aws::Utils::DateTime & GetModifiedDate() const
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value)
GetPatchBaselineResult & WithApprovedPatchesComplianceLevel(PatchComplianceLevel value)
GetPatchBaselineResult & WithBaselineId(BaselineIdT &&value)
GetPatchBaselineResult & WithOperatingSystem(OperatingSystem value)
AWS_SSM_API GetPatchBaselineResult()=default
void SetApprovedPatches(ApprovedPatchesT &&value)
GetPatchBaselineResult & WithModifiedDate(ModifiedDateT &&value)
GetPatchBaselineResult & WithRejectedPatchesAction(PatchAction value)
GetPatchBaselineResult & WithDescription(DescriptionT &&value)
GetPatchBaselineResult & WithAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
GetPatchBaselineResult & WithGlobalFilters(GlobalFiltersT &&value)
GetPatchBaselineResult & WithApprovalRules(ApprovalRulesT &&value)
GetPatchBaselineResult & WithName(NameT &&value)
AWS_SSM_API GetPatchBaselineResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPatchBaselineResult & WithSources(SourcesT &&value)
void SetGlobalFilters(GlobalFiltersT &&value)
const PatchFilterGroup & GetGlobalFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue