AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdatePatchBaselineResult.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 UpdatePatchBaselineResult() = 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 UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& WithApprovedPatches(ApprovedPatchesT&& value) { SetApprovedPatches(std::forward<ApprovedPatchesT>(value)); return *this;}
106 template<typename ApprovedPatchesT = Aws::String>
107 UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& WithRejectedPatches(RejectedPatchesT&& value) { SetRejectedPatches(std::forward<RejectedPatchesT>(value)); return *this;}
140 template<typename RejectedPatchesT = Aws::String>
141 UpdatePatchBaselineResult& 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::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
161 template<typename CreatedDateT = Aws::Utils::DateTime>
162 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
163 template<typename CreatedDateT = Aws::Utils::DateTime>
164 UpdatePatchBaselineResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
166
168
171 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
172 template<typename ModifiedDateT = Aws::Utils::DateTime>
173 void SetModifiedDate(ModifiedDateT&& value) { m_modifiedDateHasBeenSet = true; m_modifiedDate = std::forward<ModifiedDateT>(value); }
174 template<typename ModifiedDateT = Aws::Utils::DateTime>
175 UpdatePatchBaselineResult& WithModifiedDate(ModifiedDateT&& value) { SetModifiedDate(std::forward<ModifiedDateT>(value)); return *this;}
177
179
182 inline const Aws::String& GetDescription() const { return m_description; }
183 template<typename DescriptionT = Aws::String>
184 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
185 template<typename DescriptionT = Aws::String>
186 UpdatePatchBaselineResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
188
190
195 inline const Aws::Vector<PatchSource>& GetSources() const { return m_sources; }
196 template<typename SourcesT = Aws::Vector<PatchSource>>
197 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
198 template<typename SourcesT = Aws::Vector<PatchSource>>
199 UpdatePatchBaselineResult& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
200 template<typename SourcesT = PatchSource>
201 UpdatePatchBaselineResult& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
203
205
211 inline PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const { return m_availableSecurityUpdatesComplianceStatus; }
212 inline void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value) { m_availableSecurityUpdatesComplianceStatusHasBeenSet = true; m_availableSecurityUpdatesComplianceStatus = value; }
215
217
218 inline const Aws::String& GetRequestId() const { return m_requestId; }
219 template<typename RequestIdT = Aws::String>
220 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
221 template<typename RequestIdT = Aws::String>
222 UpdatePatchBaselineResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
224 private:
225
226 Aws::String m_baselineId;
227 bool m_baselineIdHasBeenSet = false;
228
229 Aws::String m_name;
230 bool m_nameHasBeenSet = false;
231
232 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
233 bool m_operatingSystemHasBeenSet = false;
234
235 PatchFilterGroup m_globalFilters;
236 bool m_globalFiltersHasBeenSet = false;
237
238 PatchRuleGroup m_approvalRules;
239 bool m_approvalRulesHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_approvedPatches;
242 bool m_approvedPatchesHasBeenSet = false;
243
244 PatchComplianceLevel m_approvedPatchesComplianceLevel{PatchComplianceLevel::NOT_SET};
245 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
246
247 bool m_approvedPatchesEnableNonSecurity{false};
248 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_rejectedPatches;
251 bool m_rejectedPatchesHasBeenSet = false;
252
253 PatchAction m_rejectedPatchesAction{PatchAction::NOT_SET};
254 bool m_rejectedPatchesActionHasBeenSet = false;
255
256 Aws::Utils::DateTime m_createdDate{};
257 bool m_createdDateHasBeenSet = false;
258
259 Aws::Utils::DateTime m_modifiedDate{};
260 bool m_modifiedDateHasBeenSet = false;
261
262 Aws::String m_description;
263 bool m_descriptionHasBeenSet = false;
264
265 Aws::Vector<PatchSource> m_sources;
266 bool m_sourcesHasBeenSet = false;
267
268 PatchComplianceStatus m_availableSecurityUpdatesComplianceStatus{PatchComplianceStatus::NOT_SET};
269 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet = false;
270
271 Aws::String m_requestId;
272 bool m_requestIdHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace SSM
277} // 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)
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