7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/OperatingSystem.h>
13#include <aws/ssm/model/PatchAction.h>
14#include <aws/ssm/model/PatchComplianceLevel.h>
15#include <aws/ssm/model/PatchComplianceStatus.h>
16#include <aws/ssm/model/PatchFilterGroup.h>
17#include <aws/ssm/model/PatchRuleGroup.h>
18#include <aws/ssm/model/PatchSource.h>
19#include <aws/ssm/model/Tag.h>
51 m_operatingSystemHasBeenSet =
true;
52 m_operatingSystem = value;
66 template <
typename NameT = Aws::String>
68 m_nameHasBeenSet =
true;
69 m_name = std::forward<NameT>(value);
71 template <
typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
88 template <
typename GlobalFiltersT = PatchFilterGroup>
90 m_globalFiltersHasBeenSet =
true;
91 m_globalFilters = std::forward<GlobalFiltersT>(value);
93 template <
typename GlobalFiltersT = PatchFilterGroup>
106 template <
typename ApprovalRulesT = PatchRuleGroup>
108 m_approvalRulesHasBeenSet =
true;
109 m_approvalRules = std::forward<ApprovalRulesT>(value);
111 template <
typename ApprovalRulesT = PatchRuleGroup>
129 template <
typename ApprovedPatchesT = Aws::Vector<Aws::String>>
131 m_approvedPatchesHasBeenSet =
true;
132 m_approvedPatches = std::forward<ApprovedPatchesT>(value);
134 template <
typename ApprovedPatchesT = Aws::Vector<Aws::String>>
139 template <
typename ApprovedPatchesT = Aws::String>
141 m_approvedPatchesHasBeenSet =
true;
142 m_approvedPatches.emplace_back(std::forward<ApprovedPatchesT>(value));
156 m_approvedPatchesComplianceLevelHasBeenSet =
true;
157 m_approvedPatchesComplianceLevel = value;
174 m_approvedPatchesEnableNonSecurityHasBeenSet =
true;
175 m_approvedPatchesEnableNonSecurity = value;
194 template <
typename RejectedPatchesT = Aws::Vector<Aws::String>>
196 m_rejectedPatchesHasBeenSet =
true;
197 m_rejectedPatches = std::forward<RejectedPatchesT>(value);
199 template <
typename RejectedPatchesT = Aws::Vector<Aws::String>>
204 template <
typename RejectedPatchesT = Aws::String>
206 m_rejectedPatchesHasBeenSet =
true;
207 m_rejectedPatches.emplace_back(std::forward<RejectedPatchesT>(value));
240 m_rejectedPatchesActionHasBeenSet =
true;
241 m_rejectedPatchesAction = value;
255 template <
typename DescriptionT = Aws::String>
257 m_descriptionHasBeenSet =
true;
258 m_description = std::forward<DescriptionT>(value);
260 template <
typename DescriptionT = Aws::String>
275 template <
typename SourcesT = Aws::Vector<PatchSource>>
277 m_sourcesHasBeenSet =
true;
278 m_sources = std::forward<SourcesT>(value);
280 template <
typename SourcesT = Aws::Vector<PatchSource>>
285 template <
typename SourcesT = PatchSource>
287 m_sourcesHasBeenSet =
true;
288 m_sources.emplace_back(std::forward<SourcesT>(value));
308 m_availableSecurityUpdatesComplianceStatusHasBeenSet =
true;
309 m_availableSecurityUpdatesComplianceStatus = value;
323 template <
typename ClientTokenT = Aws::String>
325 m_clientTokenHasBeenSet =
true;
326 m_clientToken = std::forward<ClientTokenT>(value);
328 template <
typename ClientTokenT = Aws::String>
348 template <
typename TagsT = Aws::Vector<Tag>>
350 m_tagsHasBeenSet =
true;
351 m_tags = std::forward<TagsT>(value);
353 template <
typename TagsT = Aws::Vector<Tag>>
355 SetTags(std::forward<TagsT>(value));
358 template <
typename TagsT = Tag>
360 m_tagsHasBeenSet =
true;
361 m_tags.emplace_back(std::forward<TagsT>(value));
370 PatchFilterGroup m_globalFilters;
372 PatchRuleGroup m_approvalRules;
378 bool m_approvedPatchesEnableNonSecurity{
false};
393 bool m_operatingSystemHasBeenSet =
false;
394 bool m_nameHasBeenSet =
false;
395 bool m_globalFiltersHasBeenSet =
false;
396 bool m_approvalRulesHasBeenSet =
false;
397 bool m_approvedPatchesHasBeenSet =
false;
398 bool m_approvedPatchesComplianceLevelHasBeenSet =
false;
399 bool m_approvedPatchesEnableNonSecurityHasBeenSet =
false;
400 bool m_rejectedPatchesHasBeenSet =
false;
401 bool m_rejectedPatchesActionHasBeenSet =
false;
402 bool m_descriptionHasBeenSet =
false;
403 bool m_sourcesHasBeenSet =
false;
404 bool m_availableSecurityUpdatesComplianceStatusHasBeenSet =
false;
405 bool m_clientTokenHasBeenSet =
true;
406 bool m_tagsHasBeenSet =
false;
void SetApprovedPatchesComplianceLevel(PatchComplianceLevel value)
const Aws::String & GetClientToken() const
void SetDescription(DescriptionT &&value)
const PatchRuleGroup & GetApprovalRules() const
void SetGlobalFilters(GlobalFiltersT &&value)
CreatePatchBaselineRequest & WithSources(SourcesT &&value)
bool ApprovedPatchesComplianceLevelHasBeenSet() const
bool ClientTokenHasBeenSet() const
CreatePatchBaselineRequest & WithGlobalFilters(GlobalFiltersT &&value)
CreatePatchBaselineRequest & WithName(NameT &&value)
bool AvailableSecurityUpdatesComplianceStatusHasBeenSet() const
CreatePatchBaselineRequest & WithTags(TagsT &&value)
bool GetApprovedPatchesEnableNonSecurity() const
void SetClientToken(ClientTokenT &&value)
bool RejectedPatchesActionHasBeenSet() const
void SetApprovedPatches(ApprovedPatchesT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRejectedPatches(RejectedPatchesT &&value)
CreatePatchBaselineRequest & AddApprovedPatches(ApprovedPatchesT &&value)
PatchComplianceStatus GetAvailableSecurityUpdatesComplianceStatus() const
AWS_SSM_API Aws::String SerializePayload() const override
CreatePatchBaselineRequest & WithOperatingSystem(OperatingSystem value)
CreatePatchBaselineRequest & WithApprovedPatchesEnableNonSecurity(bool value)
bool NameHasBeenSet() const
void SetSources(SourcesT &&value)
PatchComplianceLevel GetApprovedPatchesComplianceLevel() const
void SetRejectedPatchesAction(PatchAction value)
const PatchFilterGroup & GetGlobalFilters() const
const Aws::String & GetDescription() const
CreatePatchBaselineRequest & AddSources(SourcesT &&value)
void SetApprovalRules(ApprovalRulesT &&value)
AWS_SSM_API CreatePatchBaselineRequest()=default
CreatePatchBaselineRequest & WithApprovalRules(ApprovalRulesT &&value)
bool TagsHasBeenSet() const
bool ApprovedPatchesEnableNonSecurityHasBeenSet() const
const Aws::Vector< Aws::String > & GetRejectedPatches() const
bool RejectedPatchesHasBeenSet() const
CreatePatchBaselineRequest & WithApprovedPatches(ApprovedPatchesT &&value)
const Aws::Vector< PatchSource > & GetSources() const
CreatePatchBaselineRequest & WithDescription(DescriptionT &&value)
CreatePatchBaselineRequest & WithAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
void SetApprovedPatchesEnableNonSecurity(bool value)
CreatePatchBaselineRequest & WithClientToken(ClientTokenT &&value)
CreatePatchBaselineRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
bool OperatingSystemHasBeenSet() const
bool ApprovedPatchesHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< Aws::String > & GetApprovedPatches() const
void SetAvailableSecurityUpdatesComplianceStatus(PatchComplianceStatus value)
CreatePatchBaselineRequest & AddRejectedPatches(RejectedPatchesT &&value)
CreatePatchBaselineRequest & WithApprovedPatchesComplianceLevel(PatchComplianceLevel value)
bool DescriptionHasBeenSet() const
bool ApprovalRulesHasBeenSet() const
void SetOperatingSystem(OperatingSystem value)
PatchAction GetRejectedPatchesAction() const
void SetTags(TagsT &&value)
CreatePatchBaselineRequest & WithRejectedPatchesAction(PatchAction value)
bool GlobalFiltersHasBeenSet() const
OperatingSystem GetOperatingSystem() const
bool SourcesHasBeenSet() const
void SetName(NameT &&value)
CreatePatchBaselineRequest & WithRejectedPatches(RejectedPatchesT &&value)
const Aws::String & GetName() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector