AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/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 UpdatePatchBaselineResult& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
52 inline UpdatePatchBaselineResult& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
53 inline UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline UpdatePatchBaselineResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& 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); }
88 inline UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
99 inline UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& AddApprovedPatches(const Aws::String& value) { m_approvedPatches.push_back(value); return *this; }
112 inline UpdatePatchBaselineResult& AddApprovedPatches(Aws::String&& value) { m_approvedPatches.push_back(std::move(value)); return *this; }
113 inline UpdatePatchBaselineResult& 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 UpdatePatchBaselineResult& AddRejectedPatches(const Aws::String& value) { m_rejectedPatches.push_back(value); return *this; }
149 inline UpdatePatchBaselineResult& AddRejectedPatches(Aws::String&& value) { m_rejectedPatches.push_back(std::move(value)); return *this; }
150 inline UpdatePatchBaselineResult& 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::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
172 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
173 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
175 inline UpdatePatchBaselineResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetModifiedDate() const{ return m_modifiedDate; }
183 inline void SetModifiedDate(const Aws::Utils::DateTime& value) { m_modifiedDate = value; }
184 inline void SetModifiedDate(Aws::Utils::DateTime&& value) { m_modifiedDate = std::move(value); }
186 inline UpdatePatchBaselineResult& WithModifiedDate(Aws::Utils::DateTime&& value) { SetModifiedDate(std::move(value)); return *this;}
188
190
193 inline const Aws::String& GetDescription() const{ return m_description; }
194 inline void SetDescription(const Aws::String& value) { m_description = value; }
195 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
196 inline void SetDescription(const char* value) { m_description.assign(value); }
197 inline UpdatePatchBaselineResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
198 inline UpdatePatchBaselineResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
199 inline UpdatePatchBaselineResult& WithDescription(const char* value) { SetDescription(value); return *this;}
201
203
208 inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
209 inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sources = value; }
210 inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sources = std::move(value); }
211 inline UpdatePatchBaselineResult& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
212 inline UpdatePatchBaselineResult& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
213 inline UpdatePatchBaselineResult& AddSources(const PatchSource& value) { m_sources.push_back(value); return *this; }
214 inline UpdatePatchBaselineResult& AddSources(PatchSource&& value) { m_sources.push_back(std::move(value)); return *this; }
216
218
219 inline const Aws::String& GetRequestId() const{ return m_requestId; }
220 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
221 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
222 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
223 inline UpdatePatchBaselineResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
224 inline UpdatePatchBaselineResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
225 inline UpdatePatchBaselineResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
227 private:
228
229 Aws::String m_baselineId;
230
231 Aws::String m_name;
232
233 OperatingSystem m_operatingSystem;
234
235 PatchFilterGroup m_globalFilters;
236
237 PatchRuleGroup m_approvalRules;
238
239 Aws::Vector<Aws::String> m_approvedPatches;
240
241 PatchComplianceLevel m_approvedPatchesComplianceLevel;
242
243 bool m_approvedPatchesEnableNonSecurity;
244
245 Aws::Vector<Aws::String> m_rejectedPatches;
246
247 PatchAction m_rejectedPatchesAction;
248
249 Aws::Utils::DateTime m_createdDate;
250
251 Aws::Utils::DateTime m_modifiedDate;
252
253 Aws::String m_description;
254
255 Aws::Vector<PatchSource> m_sources;
256
257 Aws::String m_requestId;
258 };
259
260} // namespace Model
261} // namespace SSM
262} // namespace Aws
UpdatePatchBaselineResult & WithName(Aws::String &&value)
UpdatePatchBaselineResult & WithApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
UpdatePatchBaselineResult & WithSources(const Aws::Vector< PatchSource > &value)
UpdatePatchBaselineResult & WithSources(Aws::Vector< PatchSource > &&value)
UpdatePatchBaselineResult & WithCreatedDate(Aws::Utils::DateTime &&value)
UpdatePatchBaselineResult & WithName(const char *value)
UpdatePatchBaselineResult & AddSources(PatchSource &&value)
UpdatePatchBaselineResult & WithRequestId(const Aws::String &value)
UpdatePatchBaselineResult & AddApprovedPatches(Aws::String &&value)
void SetApprovalRules(const PatchRuleGroup &value)
void SetApprovedPatches(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRejectedPatches() const
UpdatePatchBaselineResult & WithDescription(const Aws::String &value)
UpdatePatchBaselineResult & WithApprovedPatchesEnableNonSecurity(bool value)
UpdatePatchBaselineResult & AddRejectedPatches(Aws::String &&value)
void SetApprovedPatches(const Aws::Vector< Aws::String > &value)
UpdatePatchBaselineResult & WithDescription(const char *value)
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
void SetModifiedDate(const Aws::Utils::DateTime &value)
UpdatePatchBaselineResult & WithRequestId(const char *value)
UpdatePatchBaselineResult & WithCreatedDate(const Aws::Utils::DateTime &value)
void SetModifiedDate(Aws::Utils::DateTime &&value)
UpdatePatchBaselineResult & WithBaselineId(const char *value)
UpdatePatchBaselineResult & WithGlobalFilters(PatchFilterGroup &&value)
void SetSources(const Aws::Vector< PatchSource > &value)
void SetSources(Aws::Vector< PatchSource > &&value)
void SetRejectedPatches(Aws::Vector< Aws::String > &&value)
UpdatePatchBaselineResult & WithDescription(Aws::String &&value)
AWS_SSM_API UpdatePatchBaselineResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetApprovedPatches() const
UpdatePatchBaselineResult & WithOperatingSystem(OperatingSystem &&value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
void SetRejectedPatches(const Aws::Vector< Aws::String > &value)
UpdatePatchBaselineResult & AddApprovedPatches(const Aws::String &value)
UpdatePatchBaselineResult & WithApprovedPatches(Aws::Vector< Aws::String > &&value)
UpdatePatchBaselineResult & WithRejectedPatchesAction(PatchAction &&value)
UpdatePatchBaselineResult & WithApprovalRules(PatchRuleGroup &&value)
const Aws::Vector< PatchSource > & GetSources() const
UpdatePatchBaselineResult & WithRejectedPatches(Aws::Vector< Aws::String > &&value)
UpdatePatchBaselineResult & WithRequestId(Aws::String &&value)
UpdatePatchBaselineResult & WithOperatingSystem(const OperatingSystem &value)
UpdatePatchBaselineResult & WithGlobalFilters(const PatchFilterGroup &value)
UpdatePatchBaselineResult & WithRejectedPatchesAction(const PatchAction &value)
AWS_SSM_API UpdatePatchBaselineResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetModifiedDate() const
UpdatePatchBaselineResult & AddRejectedPatches(const Aws::String &value)
UpdatePatchBaselineResult & WithBaselineId(const Aws::String &value)
UpdatePatchBaselineResult & AddSources(const PatchSource &value)
UpdatePatchBaselineResult & WithApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
UpdatePatchBaselineResult & WithModifiedDate(const Aws::Utils::DateTime &value)
UpdatePatchBaselineResult & WithApprovalRules(const PatchRuleGroup &value)
UpdatePatchBaselineResult & WithApprovedPatches(const Aws::Vector< Aws::String > &value)
UpdatePatchBaselineResult & WithName(const Aws::String &value)
void SetRejectedPatchesAction(const PatchAction &value)
void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
const PatchFilterGroup & GetGlobalFilters() const
const PatchComplianceLevel & GetApprovedPatchesComplianceLevel() const
UpdatePatchBaselineResult & WithRejectedPatches(const Aws::Vector< Aws::String > &value)
UpdatePatchBaselineResult & WithModifiedDate(Aws::Utils::DateTime &&value)
UpdatePatchBaselineResult & AddApprovedPatches(const char *value)
void SetOperatingSystem(const OperatingSystem &value)
UpdatePatchBaselineResult & WithBaselineId(Aws::String &&value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetGlobalFilters(const PatchFilterGroup &value)
UpdatePatchBaselineResult & AddRejectedPatches(const char *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