AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetPatchBaselineResult.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/OperatingSystem.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/core/utils/DateTime.h>
16#include <aws/ssm/model/PatchComplianceStatus.h>
17#include <aws/ssm/model/PatchSource.h>
18#include <utility>
19
20namespace Aws
21{
22template<typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace SSM
33{
34namespace Model
35{
37 {
38 public:
39 AWS_SSM_API GetPatchBaselineResult() = default;
42
43
45
48 inline const Aws::String& GetBaselineId() const { return m_baselineId; }
49 template<typename BaselineIdT = Aws::String>
50 void SetBaselineId(BaselineIdT&& value) { m_baselineIdHasBeenSet = true; m_baselineId = std::forward<BaselineIdT>(value); }
51 template<typename BaselineIdT = Aws::String>
52 GetPatchBaselineResult& WithBaselineId(BaselineIdT&& value) { SetBaselineId(std::forward<BaselineIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 GetPatchBaselineResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
71 inline void SetOperatingSystem(OperatingSystem value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
74
76
79 inline const PatchFilterGroup& GetGlobalFilters() const { return m_globalFilters; }
80 template<typename GlobalFiltersT = PatchFilterGroup>
81 void SetGlobalFilters(GlobalFiltersT&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::forward<GlobalFiltersT>(value); }
82 template<typename GlobalFiltersT = PatchFilterGroup>
83 GetPatchBaselineResult& WithGlobalFilters(GlobalFiltersT&& value) { SetGlobalFilters(std::forward<GlobalFiltersT>(value)); return *this;}
85
87
90 inline const PatchRuleGroup& GetApprovalRules() const { return m_approvalRules; }
91 template<typename ApprovalRulesT = PatchRuleGroup>
92 void SetApprovalRules(ApprovalRulesT&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::forward<ApprovalRulesT>(value); }
93 template<typename ApprovalRulesT = PatchRuleGroup>
94 GetPatchBaselineResult& WithApprovalRules(ApprovalRulesT&& value) { SetApprovalRules(std::forward<ApprovalRulesT>(value)); return *this;}
96
98
101 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const { return m_approvedPatches; }
102 template<typename ApprovedPatchesT = Aws::Vector<Aws::String>>
103 void SetApprovedPatches(ApprovedPatchesT&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::forward<ApprovedPatchesT>(value); }
104 template<typename ApprovedPatchesT = Aws::Vector<Aws::String>>
105 GetPatchBaselineResult& WithApprovedPatches(ApprovedPatchesT&& value) { SetApprovedPatches(std::forward<ApprovedPatchesT>(value)); return *this;}
106 template<typename ApprovedPatchesT = Aws::String>
107 GetPatchBaselineResult& AddApprovedPatches(ApprovedPatchesT&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value)); return *this; }
109
111
115 inline PatchComplianceLevel GetApprovedPatchesComplianceLevel() const { return m_approvedPatchesComplianceLevel; }
116 inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
119
121
126 inline bool GetApprovedPatchesEnableNonSecurity() const { return m_approvedPatchesEnableNonSecurity; }
127 inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
130
132
135 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const { return m_rejectedPatches; }
136 template<typename RejectedPatchesT = Aws::Vector<Aws::String>>
137 void SetRejectedPatches(RejectedPatchesT&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::forward<RejectedPatchesT>(value); }
138 template<typename RejectedPatchesT = Aws::Vector<Aws::String>>
139 GetPatchBaselineResult& WithRejectedPatches(RejectedPatchesT&& value) { SetRejectedPatches(std::forward<RejectedPatchesT>(value)); return *this;}
140 template<typename RejectedPatchesT = Aws::String>
141 GetPatchBaselineResult& AddRejectedPatches(RejectedPatchesT&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value)); return *this; }
143
145
151 inline PatchAction GetRejectedPatchesAction() const { return m_rejectedPatchesAction; }
152 inline void SetRejectedPatchesAction(PatchAction value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
155
157
160 inline const Aws::Vector<Aws::String>& GetPatchGroups() const { return m_patchGroups; }
161 template<typename PatchGroupsT = Aws::Vector<Aws::String>>
162 void SetPatchGroups(PatchGroupsT&& value) { m_patchGroupsHasBeenSet = true; m_patchGroups = std::forward<PatchGroupsT>(value); }
163 template<typename PatchGroupsT = Aws::Vector<Aws::String>>
164 GetPatchBaselineResult& WithPatchGroups(PatchGroupsT&& value) { SetPatchGroups(std::forward<PatchGroupsT>(value)); return *this;}
165 template<typename PatchGroupsT = Aws::String>
166 GetPatchBaselineResult& AddPatchGroups(PatchGroupsT&& value) { m_patchGroupsHasBeenSet = true; m_patchGroups.emplace_back(std::forward<PatchGroupsT>(value)); return *this; }
168
170
173 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
174 template<typename CreatedDateT = Aws::Utils::DateTime>
175 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
176 template<typename CreatedDateT = Aws::Utils::DateTime>
177 GetPatchBaselineResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
179
181
184 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
185 template<typename ModifiedDateT = Aws::Utils::DateTime>
186 void SetModifiedDate(ModifiedDateT&& value) { m_modifiedDateHasBeenSet = true; m_modifiedDate = std::forward<ModifiedDateT>(value); }
187 template<typename ModifiedDateT = Aws::Utils::DateTime>
188 GetPatchBaselineResult& WithModifiedDate(ModifiedDateT&& value) { SetModifiedDate(std::forward<ModifiedDateT>(value)); return *this;}
190
192
195 inline const Aws::String& GetDescription() const { return m_description; }
196 template<typename DescriptionT = Aws::String>
197 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
198 template<typename DescriptionT = Aws::String>
199 GetPatchBaselineResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
201
203
208 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
209 template<typename SourcesT = Aws::Vector<PatchSource>>
210 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
211 template<typename SourcesT = Aws::Vector<PatchSource>>
212 GetPatchBaselineResult& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
213 template<typename SourcesT = PatchSource>
214 GetPatchBaselineResult& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
216
218
224 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
225 inline void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value) { m_availableSecurityUpdatesComplianceStatusHasBeenSet = true; m_availableSecurityUpdatesComplianceStatus = value; }
228
230
231 inline const Aws::String& GetRequestId() const { return m_requestId; }
232 template<typename RequestIdT = Aws::String>
233 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
234 template<typename RequestIdT = Aws::String>
235 GetPatchBaselineResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
237 private:
238
239 Aws::String m_baselineId;
240 bool m_baselineIdHasBeenSet = false;
241
242 Aws::String m_name;
243 bool m_nameHasBeenSet = false;
244
245 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
246 bool m_operatingSystemHasBeenSet = false;
247
248 PatchFilterGroup m_globalFilters;
249 bool m_globalFiltersHasBeenSet = false;
250
251 PatchRuleGroup m_approvalRules;
252 bool m_approvalRulesHasBeenSet = false;
253
254 Aws::Vector<Aws::String> m_approvedPatches;
255 bool m_approvedPatchesHasBeenSet = false;
256
257 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
258 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
259
260 bool m_approvedPatchesEnableNonSecurity{false};
261 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
262
263 Aws::Vector<Aws::String> m_rejectedPatches;
264 bool m_rejectedPatchesHasBeenSet = false;
265
266 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
267 bool m_rejectedPatchesActionHasBeenSet = false;
268
269 Aws::Vector<Aws::String> m_patchGroups;
270 bool m_patchGroupsHasBeenSet = false;
271
272 Aws::Utils::DateTime m_createdDate{};
273 bool m_createdDateHasBeenSet = false;
274
275 Aws::Utils::DateTime m_modifiedDate{};
276 bool m_modifiedDateHasBeenSet = false;
277
278 Aws::String m_description;
279 bool m_descriptionHasBeenSet = false;
280
281 Aws::Vector<PatchSource> m_sources;
282 bool m_sourcesHasBeenSet = false;
283
284 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
285 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
286
287 Aws::String m_requestId;
288 bool m_requestIdHasBeenSet = false;
289 };
290
291} // namespace Model
292} // namespace SSM
293} // 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)
void SetApprovalRules(ApprovalRulesT &&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