AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetPatchBaselineResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/OperatingSystem.h>
12#include <aws/ssm/model/PatchAction.h>
13#include <aws/ssm/model/PatchComplianceLevel.h>
14#include <aws/ssm/model/PatchComplianceStatus.h>
15#include <aws/ssm/model/PatchFilterGroup.h>
16#include <aws/ssm/model/PatchRuleGroup.h>
17#include <aws/ssm/model/PatchSource.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace SSM {
31namespace Model {
33 public:
34 AWS_SSM_API GetPatchBaselineResult() = default;
37
39
42 inline const Aws::String& GetBaselineId() const { return m_baselineId; }
43 template <typename BaselineIdT = Aws::String>
44 void SetBaselineId(BaselineIdT&& value) {
45 m_baselineIdHasBeenSet = true;
46 m_baselineId = std::forward<BaselineIdT>(value);
47 }
48 template <typename BaselineIdT = Aws::String>
49 GetPatchBaselineResult& WithBaselineId(BaselineIdT&& value) {
50 SetBaselineId(std::forward<BaselineIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
78 m_operatingSystemHasBeenSet = true;
79 m_operatingSystem = value;
80 }
82 SetOperatingSystem(value);
83 return *this;
84 }
86
88
91 inline const PatchFilterGroup& GetGlobalFilters() const { return m_globalFilters; }
92 template <typename GlobalFiltersT = PatchFilterGroup>
93 void SetGlobalFilters(GlobalFiltersT&& value) {
94 m_globalFiltersHasBeenSet = true;
95 m_globalFilters = std::forward<GlobalFiltersT>(value);
96 }
97 template <typename GlobalFiltersT = PatchFilterGroup>
98 GetPatchBaselineResult& WithGlobalFilters(GlobalFiltersT&& value) {
99 SetGlobalFilters(std::forward<GlobalFiltersT>(value));
100 return *this;
101 }
103
105
108 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
109 template <typename ApprovalRulesT = PatchRuleGroup>
110 void SetApprovalRules(ApprovalRulesT&& value) {
111 m_approvalRulesHasBeenSet = true;
112 m_approvalRules = std::forward<ApprovalRulesT>(value);
113 }
114 template <typename ApprovalRulesT = PatchRuleGroup>
115 GetPatchBaselineResult& WithApprovalRules(ApprovalRulesT&& value) {
116 SetApprovalRules(std::forward<ApprovalRulesT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
126 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
127 void SetApprovedPatches(ApprovedPatchesT&& value) {
128 m_approvedPatchesHasBeenSet = true;
129 m_approvedPatches = std::forward<ApprovedPatchesT>(value);
130 }
131 template <typename ApprovedPatchesT = Aws::Vector<Aws::String>>
132 GetPatchBaselineResult& WithApprovedPatches(ApprovedPatchesT&& value) {
133 SetApprovedPatches(std::forward<ApprovedPatchesT>(value));
134 return *this;
135 }
136 template <typename ApprovedPatchesT = Aws::String>
137 GetPatchBaselineResult& AddApprovedPatches(ApprovedPatchesT&& value) {
138 m_approvedPatchesHasBeenSet = true;
139 m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value));
140 return *this;
141 }
143
145
149 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
151 m_approvedPatchesComplianceLevelHasBeenSet = true;
152 m_approvedPatchesComplianceLevel = value;
153 }
156 return *this;
157 }
159
161
166 inline bool GetApprovedPatchesEnableNonSecurity() const { return m_approvedPatchesEnableNonSecurity; }
167 inline void SetApprovedPatchesEnableNonSecurity(bool value) {
168 m_approvedPatchesEnableNonSecurityHasBeenSet = true;
169 m_approvedPatchesEnableNonSecurity = value;
170 }
173 return *this;
174 }
176
178
181 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
182 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
183 void SetRejectedPatches(RejectedPatchesT&& value) {
184 m_rejectedPatchesHasBeenSet = true;
185 m_rejectedPatches = std::forward<RejectedPatchesT>(value);
186 }
187 template <typename RejectedPatchesT = Aws::Vector<Aws::String>>
188 GetPatchBaselineResult& WithRejectedPatches(RejectedPatchesT&& value) {
189 SetRejectedPatches(std::forward<RejectedPatchesT>(value));
190 return *this;
191 }
192 template <typename RejectedPatchesT = Aws::String>
193 GetPatchBaselineResult& AddRejectedPatches(RejectedPatchesT&& value) {
194 m_rejectedPatchesHasBeenSet = true;
195 m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value));
196 return *this;
197 }
199
201
207 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
209 m_rejectedPatchesActionHasBeenSet = true;
210 m_rejectedPatchesAction = value;
211 }
214 return *this;
215 }
217
219
222 inline const Aws::Vector<Aws::String>& GetPatchGroups() const { return m_patchGroups; }
223 template <typename PatchGroupsT = Aws::Vector<Aws::String>>
224 void SetPatchGroups(PatchGroupsT&& value) {
225 m_patchGroupsHasBeenSet = true;
226 m_patchGroups = std::forward<PatchGroupsT>(value);
227 }
228 template <typename PatchGroupsT = Aws::Vector<Aws::String>>
230 SetPatchGroups(std::forward<PatchGroupsT>(value));
231 return *this;
232 }
233 template <typename PatchGroupsT = Aws::String>
234 GetPatchBaselineResult& AddPatchGroups(PatchGroupsT&& value) {
235 m_patchGroupsHasBeenSet = true;
236 m_patchGroups.emplace_back(std::forward<PatchGroupsT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
246 template <typename CreatedDateT = Aws::Utils::DateTime>
247 void SetCreatedDate(CreatedDateT&& value) {
248 m_createdDateHasBeenSet = true;
249 m_createdDate = std::forward<CreatedDateT>(value);
250 }
251 template <typename CreatedDateT = Aws::Utils::DateTime>
253 SetCreatedDate(std::forward<CreatedDateT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
263 template <typename ModifiedDateT = Aws::Utils::DateTime>
264 void SetModifiedDate(ModifiedDateT&& value) {
265 m_modifiedDateHasBeenSet = true;
266 m_modifiedDate = std::forward<ModifiedDateT>(value);
267 }
268 template <typename ModifiedDateT = Aws::Utils::DateTime>
269 GetPatchBaselineResult& WithModifiedDate(ModifiedDateT&& value) {
270 SetModifiedDate(std::forward<ModifiedDateT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::String& GetDescription() const { return m_description; }
280 template <typename DescriptionT = Aws::String>
281 void SetDescription(DescriptionT&& value) {
282 m_descriptionHasBeenSet = true;
283 m_description = std::forward<DescriptionT>(value);
284 }
285 template <typename DescriptionT = Aws::String>
287 SetDescription(std::forward<DescriptionT>(value));
288 return *this;
289 }
291
293
298 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
299 template <typename SourcesT = Aws::Vector<PatchSource>>
300 void SetSources(SourcesT&& value) {
301 m_sourcesHasBeenSet = true;
302 m_sources = std::forward<SourcesT>(value);
303 }
304 template <typename SourcesT = Aws::Vector<PatchSource>>
306 SetSources(std::forward<SourcesT>(value));
307 return *this;
308 }
309 template <typename SourcesT = PatchSource>
311 m_sourcesHasBeenSet = true;
312 m_sources.emplace_back(std::forward<SourcesT>(value));
313 return *this;
314 }
316
318
324 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
326 m_availableSecurityUpdatesComplianceStatusHasBeenSet = true;
327 m_availableSecurityUpdatesComplianceStatus = value;
328 }
331 return *this;
332 }
334
336
337 inline const Aws::String& GetRequestId() const { return m_requestId; }
338 template <typename RequestIdT = Aws::String>
339 void SetRequestId(RequestIdT&& value) {
340 m_requestIdHasBeenSet = true;
341 m_requestId = std::forward<RequestIdT>(value);
342 }
343 template <typename RequestIdT = Aws::String>
345 SetRequestId(std::forward<RequestIdT>(value));
346 return *this;
347 }
349 private:
350 Aws::String m_baselineId;
351
352 Aws::String m_name;
353
354 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
355
356 PatchFilterGroup m_globalFilters;
357
358 PatchRuleGroup m_approvalRules;
359
360 Aws::Vector<Aws::String> m_approvedPatches;
361
362 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
363
364 bool m_approvedPatchesEnableNonSecurity{false};
365
366 Aws::Vector<Aws::String> m_rejectedPatches;
367
368 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
369
370 Aws::Vector<Aws::String> m_patchGroups;
371
372 Aws::Utils::DateTime m_createdDate{};
373
374 Aws::Utils::DateTime m_modifiedDate{};
375
376 Aws::String m_description;
377
378 Aws::Vector<PatchSource> m_sources;
379
380 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
381
382 Aws::String m_requestId;
383 bool m_baselineIdHasBeenSet = false;
384 bool m_nameHasBeenSet = false;
385 bool m_operatingSystemHasBeenSet = false;
386 bool m_globalFiltersHasBeenSet = false;
387 bool m_approvalRulesHasBeenSet = false;
388 bool m_approvedPatchesHasBeenSet = false;
389 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
390 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
391 bool m_rejectedPatchesHasBeenSet = false;
392 bool m_rejectedPatchesActionHasBeenSet = false;
393 bool m_patchGroupsHasBeenSet = false;
394 bool m_createdDateHasBeenSet = false;
395 bool m_modifiedDateHasBeenSet = false;
396 bool m_descriptionHasBeenSet = false;
397 bool m_sourcesHasBeenSet = false;
398 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
399 bool m_requestIdHasBeenSet = false;
400};
401
402} // namespace Model
403} // namespace SSM
404} // namespace Aws
const Aws::Vector< Aws::String > & GetApprovedPatches() const
GetPatchBaselineResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< PatchSource > & GetSources() const
GetPatchBaselineResult & AddRejectedPatches(RejectedPatchesT &&value)
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