AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BaselineOverride.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/OperatingSystem.h>
9#include <aws/ssm/model/PatchFilterGroup.h>
10#include <aws/ssm/model/PatchRuleGroup.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/PatchComplianceLevel.h>
13#include <aws/ssm/model/PatchAction.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/ssm/model/PatchSource.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SSM
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SSM_API BaselineOverride();
46
47
49
52 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
53 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
54 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
55 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
56 inline BaselineOverride& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
57 inline BaselineOverride& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
59
61
62 inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; }
63 inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
64 inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = value; }
65 inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::move(value); }
66 inline BaselineOverride& WithGlobalFilters(const PatchFilterGroup& value) { SetGlobalFilters(value); return *this;}
67 inline BaselineOverride& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;}
69
71
72 inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; }
73 inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
74 inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = value; }
75 inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::move(value); }
76 inline BaselineOverride& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
77 inline BaselineOverride& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;}
79
81
89 inline const Aws::Vector<Aws::String>& GetApprovedPatches() const{ return m_approvedPatches; }
90 inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
91 inline void SetApprovedPatches(const Aws::Vector<Aws::String>& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = value; }
92 inline void SetApprovedPatches(Aws::Vector<Aws::String>&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::move(value); }
94 inline BaselineOverride& WithApprovedPatches(Aws::Vector<Aws::String>&& value) { SetApprovedPatches(std::move(value)); return *this;}
95 inline BaselineOverride& AddApprovedPatches(const Aws::String& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
96 inline BaselineOverride& AddApprovedPatches(Aws::String&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(std::move(value)); return *this; }
97 inline BaselineOverride& AddApprovedPatches(const char* value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
99
101
106 inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; }
107 inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
108 inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
109 inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = std::move(value); }
113
115
123 inline const Aws::Vector<Aws::String>& GetRejectedPatches() const{ return m_rejectedPatches; }
124 inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
125 inline void SetRejectedPatches(const Aws::Vector<Aws::String>& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = value; }
126 inline void SetRejectedPatches(Aws::Vector<Aws::String>&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::move(value); }
128 inline BaselineOverride& WithRejectedPatches(Aws::Vector<Aws::String>&& value) { SetRejectedPatches(std::move(value)); return *this;}
129 inline BaselineOverride& AddRejectedPatches(const Aws::String& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
130 inline BaselineOverride& AddRejectedPatches(Aws::String&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(std::move(value)); return *this; }
131 inline BaselineOverride& AddRejectedPatches(const char* value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
133
135
141 inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; }
142 inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
143 inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
144 inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = std::move(value); }
146 inline BaselineOverride& WithRejectedPatchesAction(PatchAction&& value) { SetRejectedPatchesAction(std::move(value)); return *this;}
148
150
155 inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; }
156 inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
157 inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
160
162
167 inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
168 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
169 inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
170 inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
171 inline BaselineOverride& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
172 inline BaselineOverride& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
173 inline BaselineOverride& AddSources(const PatchSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
174 inline BaselineOverride& AddSources(PatchSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
176 private:
177
178 OperatingSystem m_operatingSystem;
179 bool m_operatingSystemHasBeenSet = false;
180
181 PatchFilterGroup m_globalFilters;
182 bool m_globalFiltersHasBeenSet = false;
183
184 PatchRuleGroup m_approvalRules;
185 bool m_approvalRulesHasBeenSet = false;
186
187 Aws::Vector<Aws::String> m_approvedPatches;
188 bool m_approvedPatchesHasBeenSet = false;
189
190 PatchComplianceLevel m_approvedPatchesComplianceLevel;
191 bool m_approvedPatchesComplianceLevelHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_rejectedPatches;
194 bool m_rejectedPatchesHasBeenSet = false;
195
196 PatchAction m_rejectedPatchesAction;
197 bool m_rejectedPatchesActionHasBeenSet = false;
198
199 bool m_approvedPatchesEnableNonSecurity;
200 bool m_approvedPatchesEnableNonSecurityHasBeenSet = false;
201
202 Aws::Vector<PatchSource> m_sources;
203 bool m_sourcesHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace SSM
208} // namespace Aws
void SetOperatingSystem(const OperatingSystem &value)
void SetRejectedPatchesAction(PatchAction &&value)
BaselineOverride & AddRejectedPatches(Aws::String &&value)
BaselineOverride & AddApprovedPatches(const char *value)
BaselineOverride & AddRejectedPatches(const Aws::String &value)
const OperatingSystem & GetOperatingSystem() const
AWS_SSM_API BaselineOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
BaselineOverride & WithGlobalFilters(PatchFilterGroup &&value)
BaselineOverride & WithSources(Aws::Vector< PatchSource > &&value)
const Aws::Vector< PatchSource > & GetSources() const
void SetApprovedPatches(Aws::Vector< Aws::String > &&value)
bool ApprovedPatchesEnableNonSecurityHasBeenSet() const
void SetGlobalFilters(const PatchFilterGroup &value)
void SetSources(Aws::Vector< PatchSource > &&value)
BaselineOverride & WithSources(const Aws::Vector< PatchSource > &value)
const PatchAction & GetRejectedPatchesAction() const
const Aws::Vector< Aws::String > & GetRejectedPatches() const
BaselineOverride & WithOperatingSystem(OperatingSystem &&value)
const PatchRuleGroup & GetApprovalRules() const
void SetGlobalFilters(PatchFilterGroup &&value)
BaselineOverride & AddSources(PatchSource &&value)
const PatchFilterGroup & GetGlobalFilters() const
void SetRejectedPatches(Aws::Vector< Aws::String > &&value)
void SetApprovalRules(PatchRuleGroup &&value)
BaselineOverride & WithRejectedPatches(Aws::Vector< Aws::String > &&value)
BaselineOverride & AddSources(const PatchSource &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
BaselineOverride & AddApprovedPatches(Aws::String &&value)
BaselineOverride & AddRejectedPatches(const char *value)
void SetSources(const Aws::Vector< PatchSource > &value)
void SetOperatingSystem(OperatingSystem &&value)
BaselineOverride & WithRejectedPatches(const Aws::Vector< Aws::String > &value)
void SetRejectedPatches(const Aws::Vector< Aws::String > &value)
void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
BaselineOverride & WithApprovedPatchesEnableNonSecurity(bool value)
BaselineOverride & AddApprovedPatches(const Aws::String &value)
BaselineOverride & WithApprovedPatches(Aws::Vector< Aws::String > &&value)
BaselineOverride & WithApprovedPatchesComplianceLevel(PatchComplianceLevel &&value)
void SetApprovalRules(const PatchRuleGroup &value)
void SetRejectedPatchesAction(const PatchAction &value)
BaselineOverride & WithApprovedPatches(const Aws::Vector< Aws::String > &value)
void SetApprovedPatchesEnableNonSecurity(bool value)
BaselineOverride & WithRejectedPatchesAction(const PatchAction &value)
void SetApprovedPatches(const Aws::Vector< Aws::String > &value)
BaselineOverride & WithApprovalRules(const PatchRuleGroup &value)
const PatchComplianceLevel & GetApprovedPatchesComplianceLevel() const
BaselineOverride & WithRejectedPatchesAction(PatchAction &&value)
const Aws::Vector< Aws::String > & GetApprovedPatches() const
BaselineOverride & WithApprovedPatchesComplianceLevel(const PatchComplianceLevel &value)
AWS_SSM_API BaselineOverride(Aws::Utils::Json::JsonView jsonValue)
BaselineOverride & WithOperatingSystem(const OperatingSystem &value)
BaselineOverride & WithGlobalFilters(const PatchFilterGroup &value)
BaselineOverride & WithApprovalRules(PatchRuleGroup &&value)
void SetApprovedPatchesComplianceLevel(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