AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/PatchSource.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace SSM
32{
33namespace Model
34{
36 {
37 public:
41
42
44
47 inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
48 inline void SetBaselineId(const Aws::String& value) { m_baselineId = value; }
49 inline void SetBaselineId(Aws::String&& value) { m_baselineId = std::move(value); }
50 inline void SetBaselineId(const char* value) { m_baselineId.assign(value); }
51 inline GetPatchBaselineResult& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
52 inline GetPatchBaselineResult& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
53 inline GetPatchBaselineResult& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline void SetName(const Aws::String& value) { m_name = value; }
62 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
63 inline void SetName(const char* value) { m_name.assign(value); }
64 inline GetPatchBaselineResult& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline GetPatchBaselineResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline GetPatchBaselineResult& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
74 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystem = value; }
75 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystem = std::move(value); }
77 inline GetPatchBaselineResult& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
79
81
84 inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; }
85 inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFilters = value; }
86 inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFilters = std::move(value); }
87 inline GetPatchBaselineResult& WithGlobalFilters(const PatchFilterGroup& value) { SetGlobalFilters(value); return *this;}
88 inline GetPatchBaselineResult& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;}
90
92
95 inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; }
96 inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRules = value; }
97 inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRules = std::move(value); }
98 inline GetPatchBaselineResult& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
99 inline GetPatchBaselineResult& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;}
101
103
106 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const{ return m_approvedPatches; }
107 inline void SetApprovedPatches(const Aws::Vector<Aws::String>& value) { m_approvedPatches = value; }
108 inline void SetApprovedPatches(Aws::Vector<Aws::String>&& value) { m_approvedPatches = std::move(value); }
111 inline GetPatchBaselineResult& AddApprovedPatches(const Aws::String& value) { m_approvedPatches.push_back(value); return *this; }
112 inline GetPatchBaselineResult& AddApprovedPatches(Aws::String&& value) { m_approvedPatches.push_back(std::move(value)); return *this; }
113 inline GetPatchBaselineResult& AddApprovedPatches(const char* value) { m_approvedPatches.push_back(value); return *this; }
115
117
121 inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; }
122 inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevel = value; }
123 inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevel = std::move(value); }
127
129
134 inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; }
135 inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurity = value; }
138
140
143 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const{ return m_rejectedPatches; }
144 inline void SetRejectedPatches(const Aws::Vector<Aws::String>& value) { m_rejectedPatches = value; }
145 inline void SetRejectedPatches(Aws::Vector<Aws::String>&& value) { m_rejectedPatches = std::move(value); }
148 inline GetPatchBaselineResult& AddRejectedPatches(const Aws::String& value) { m_rejectedPatches.push_back(value); return *this; }
149 inline GetPatchBaselineResult& AddRejectedPatches(Aws::String&& value) { m_rejectedPatches.push_back(std::move(value)); return *this; }
150 inline GetPatchBaselineResult& AddRejectedPatches(const char* value) { m_rejectedPatches.push_back(value); return *this; }
152
154
160 inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; }
161 inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesAction = value; }
162 inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesAction = std::move(value); }
166
168
171 inline const Aws::Vector<Aws::String>& GetPatchGroups() const{ return m_patchGroups; }
172 inline void SetPatchGroups(const Aws::Vector<Aws::String>& value) { m_patchGroups = value; }
173 inline void SetPatchGroups(Aws::Vector<Aws::String>&& value) { m_patchGroups = std::move(value); }
175 inline GetPatchBaselineResult& WithPatchGroups(Aws::Vector<Aws::String>&& value) { SetPatchGroups(std::move(value)); return *this;}
176 inline GetPatchBaselineResult& AddPatchGroups(const Aws::String& value) { m_patchGroups.push_back(value); return *this; }
177 inline GetPatchBaselineResult& AddPatchGroups(Aws::String&& value) { m_patchGroups.push_back(std::move(value)); return *this; }
178 inline GetPatchBaselineResult& AddPatchGroups(const char* value) { m_patchGroups.push_back(value); return *this; }
180
182
185 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
186 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
187 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
188 inline GetPatchBaselineResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
189 inline GetPatchBaselineResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
191
193
196 inline const Aws::Utils::DateTime& GetModifiedDate() const{ return m_modifiedDate; }
197 inline void SetModifiedDate(const Aws::Utils::DateTime& value) { m_modifiedDate = value; }
198 inline void SetModifiedDate(Aws::Utils::DateTime&& value) { m_modifiedDate = std::move(value); }
200 inline GetPatchBaselineResult& WithModifiedDate(Aws::Utils::DateTime&& value) { SetModifiedDate(std::move(value)); return *this;}
202
204
207 inline const Aws::String& GetDescription() const{ return m_description; }
208 inline void SetDescription(const Aws::String& value) { m_description = value; }
209 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
210 inline void SetDescription(const char* value) { m_description.assign(value); }
211 inline GetPatchBaselineResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
212 inline GetPatchBaselineResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
213 inline GetPatchBaselineResult& WithDescription(const char* value) { SetDescription(value); return *this;}
215
217
222 inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
223 inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sources = value; }
224 inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sources = std::move(value); }
225 inline GetPatchBaselineResult& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
226 inline GetPatchBaselineResult& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
227 inline GetPatchBaselineResult& AddSources(const PatchSource& value) { m_sources.push_back(value); return *this; }
228 inline GetPatchBaselineResult& AddSources(PatchSource&& value) { m_sources.push_back(std::move(value)); return *this; }
230
232
233 inline const Aws::String& GetRequestId() const{ return m_requestId; }
234 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
235 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
236 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
237 inline GetPatchBaselineResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
238 inline GetPatchBaselineResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
239 inline GetPatchBaselineResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
241 private:
242
243 Aws::String m_baselineId;
244
245 Aws::String m_name;
246
247 OperatingSystem m_operatingSystem;
248
249 PatchFilterGroup m_globalFilters;
250
251 PatchRuleGroup m_approvalRules;
252
253 Aws::Vector<Aws::String> m_approvedPatches;
254
255 PatchComplianceLevel m_approvedPatchesComplianceLevel;
256
257 bool m_approvedPatchesEnableNonSecurity;
258
259 Aws::Vector<Aws::String> m_rejectedPatches;
260
261 PatchAction m_rejectedPatchesAction;
262
263 Aws::Vector<Aws::String> m_patchGroups;
264
265 Aws::Utils::DateTime m_createdDate;
266
267 Aws::Utils::DateTime m_modifiedDate;
268
269 Aws::String m_description;
270
271 Aws::Vector<PatchSource> m_sources;
272
273 Aws::String m_requestId;
274 };
275
276} // namespace Model
277} // namespace SSM
278} // namespace Aws
GetPatchBaselineResult & WithApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
const Aws::Vector< Aws::String > & GetApprovedPatches() const
GetPatchBaselineResult & WithGlobalFilters(PatchFilterGroup &&value)
GetPatchBaselineResult & WithRejectedPatchesAction(const PatchAction &value)
void SetPatchGroups(Aws::Vector< Aws::String > &&value)
GetPatchBaselineResult & WithGlobalFilters(const PatchFilterGroup &value)
const Aws::Vector< PatchSource > & GetSources() const
GetPatchBaselineResult & WithSources(const Aws::Vector< PatchSource > &value)
GetPatchBaselineResult & WithApprovedPatches(const Aws::Vector< Aws::String > &value)
GetPatchBaselineResult & WithDescription(const char *value)
GetPatchBaselineResult & WithApprovedPatches(Aws::Vector< Aws::String > &&value)
void SetBaselineId(const Aws::String &value)
void SetApprovalRules(PatchRuleGroup &&value)
GetPatchBaselineResult & WithBaselineId(const Aws::String &value)
const PatchRuleGroup & GetApprovalRules() const
const Aws::Utils::DateTime & GetCreatedDate() const
GetPatchBaselineResult & WithName(const char *value)
const OperatingSystem & GetOperatingSystem() const
GetPatchBaselineResult & WithRejectedPatches(const Aws::Vector< Aws::String > &value)
GetPatchBaselineResult & WithName(const Aws::String &value)
GetPatchBaselineResult & WithApprovedPatchesEnableNonSecurity(bool value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
void SetRejectedPatches(Aws::Vector< Aws::String > &&value)
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
void SetPatchGroups(const Aws::Vector< Aws::String > &value)
GetPatchBaselineResult & WithBaselineId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
GetPatchBaselineResult & WithOperatingSystem(const OperatingSystem &value)
GetPatchBaselineResult & AddPatchGroups(const char *value)
GetPatchBaselineResult & WithOperatingSystem(OperatingSystem &&value)
void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
void SetGlobalFilters(PatchFilterGroup &&value)
const Aws::Vector< Aws::String > & GetPatchGroups() const
GetPatchBaselineResult & WithRequestId(const Aws::String &value)
const PatchComplianceLevel & GetApprovedPatchesComplianceLevel() const
GetPatchBaselineResult & WithApprovalRules(PatchRuleGroup &&value)
AWS_SSM_API GetPatchBaselineResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPatchBaselineResult & AddSources(const PatchSource &value)
const Aws::Utils::DateTime & GetModifiedDate() const
void SetModifiedDate(const Aws::Utils::DateTime &value)
void SetOperatingSystem(const OperatingSystem &value)
void SetApprovedPatches(Aws::Vector< Aws::String > &&value)
GetPatchBaselineResult & WithPatchGroups(const Aws::Vector< Aws::String > &value)
void SetSources(const Aws::Vector< PatchSource > &value)
GetPatchBaselineResult & AddApprovedPatches(Aws::String &&value)
GetPatchBaselineResult & WithRequestId(const char *value)
void SetGlobalFilters(const PatchFilterGroup &value)
GetPatchBaselineResult & AddPatchGroups(Aws::String &&value)
GetPatchBaselineResult & WithRejectedPatchesAction(PatchAction &&value)
GetPatchBaselineResult & AddApprovedPatches(const Aws::String &value)
GetPatchBaselineResult & WithDescription(Aws::String &&value)
GetPatchBaselineResult & WithModifiedDate(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
void SetModifiedDate(Aws::Utils::DateTime &&value)
GetPatchBaselineResult & WithPatchGroups(Aws::Vector< Aws::String > &&value)
GetPatchBaselineResult & WithRequestId(Aws::String &&value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
GetPatchBaselineResult & WithBaselineId(const char *value)
GetPatchBaselineResult & AddRejectedPatches(const Aws::String &value)
const PatchAction & GetRejectedPatchesAction() const
GetPatchBaselineResult & WithCreatedDate(Aws::Utils::DateTime &&value)
GetPatchBaselineResult & AddRejectedPatches(const char *value)
void SetApprovedPatches(const Aws::Vector< Aws::String > &value)
GetPatchBaselineResult & AddSources(PatchSource &&value)
GetPatchBaselineResult & AddApprovedPatches(const char *value)
GetPatchBaselineResult & WithDescription(const Aws::String &value)
void SetRejectedPatches(const Aws::Vector< Aws::String > &value)
GetPatchBaselineResult & WithApprovalRules(const PatchRuleGroup &value)
GetPatchBaselineResult & AddRejectedPatches(Aws::String &&value)
void SetOperatingSystem(OperatingSystem &&value)
void SetSources(Aws::Vector< PatchSource > &&value)
void SetApprovalRules(const PatchRuleGroup &value)
AWS_SSM_API GetPatchBaselineResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPatchBaselineResult & WithCreatedDate(const Aws::Utils::DateTime &value)
GetPatchBaselineResult & WithSources(Aws::Vector< PatchSource > &&value)
GetPatchBaselineResult & WithRejectedPatches(Aws::Vector< Aws::String > &&value)
const PatchFilterGroup & GetGlobalFilters() const
GetPatchBaselineResult & WithModifiedDate(const Aws::Utils::DateTime &value)
void SetRequestId(const Aws::String &value)
void SetRejectedPatchesAction(const PatchAction &value)
GetPatchBaselineResult & AddPatchGroups(const Aws::String &value)
GetPatchBaselineResult & WithName(Aws::String &&value)
GetPatchBaselineResult & WithApprovedPatchesComplianceLevel(PatchComplianceLevel &&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