/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

Defines the basic information about a patch baseline override.

See * Also:

AWS * API Reference

*/ class BaselineOverride { public: AWS_SSM_API BaselineOverride(); AWS_SSM_API BaselineOverride(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API BaselineOverride& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The operating system rule used by the patch baseline override.

*/ inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; } /** *

The operating system rule used by the patch baseline override.

*/ inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; } /** *

The operating system rule used by the patch baseline override.

*/ inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; } /** *

The operating system rule used by the patch baseline override.

*/ inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); } /** *

The operating system rule used by the patch baseline override.

*/ inline BaselineOverride& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;} /** *

The operating system rule used by the patch baseline override.

*/ inline BaselineOverride& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;} inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; } inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; } inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = value; } inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::move(value); } inline BaselineOverride& WithGlobalFilters(const PatchFilterGroup& value) { SetGlobalFilters(value); return *this;} inline BaselineOverride& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;} inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; } inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; } inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = value; } inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::move(value); } inline BaselineOverride& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;} inline BaselineOverride& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;} /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline const Aws::Vector& GetApprovedPatches() const{ return m_approvedPatches; } /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; } /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline void SetApprovedPatches(const Aws::Vector& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = value; } /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline void SetApprovedPatches(Aws::Vector&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::move(value); } /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& WithApprovedPatches(const Aws::Vector& value) { SetApprovedPatches(value); return *this;} /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& WithApprovedPatches(Aws::Vector&& value) { SetApprovedPatches(std::move(value)); return *this;} /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& AddApprovedPatches(const Aws::String& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; } /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& AddApprovedPatches(Aws::String&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(std::move(value)); return *this; } /** *

A list of explicitly approved patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& AddApprovedPatches(const char* value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; } /** *

Defines the compliance level for approved patches. When an approved patch is * reported as missing, this value describes the severity of the compliance * violation.

*/ inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; } /** *

Defines the compliance level for approved patches. When an approved patch is * reported as missing, this value describes the severity of the compliance * violation.

*/ inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; } /** *

Defines the compliance level for approved patches. When an approved patch is * reported as missing, this value describes the severity of the compliance * violation.

*/ inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; } /** *

Defines the compliance level for approved patches. When an approved patch is * reported as missing, this value describes the severity of the compliance * violation.

*/ inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = std::move(value); } /** *

Defines the compliance level for approved patches. When an approved patch is * reported as missing, this value describes the severity of the compliance * violation.

*/ inline BaselineOverride& WithApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { SetApprovedPatchesComplianceLevel(value); return *this;} /** *

Defines the compliance level for approved patches. When an approved patch is * reported as missing, this value describes the severity of the compliance * violation.

*/ inline BaselineOverride& WithApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { SetApprovedPatchesComplianceLevel(std::move(value)); return *this;} /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline const Aws::Vector& GetRejectedPatches() const{ return m_rejectedPatches; } /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; } /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline void SetRejectedPatches(const Aws::Vector& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = value; } /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline void SetRejectedPatches(Aws::Vector&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::move(value); } /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& WithRejectedPatches(const Aws::Vector& value) { SetRejectedPatches(value); return *this;} /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& WithRejectedPatches(Aws::Vector&& value) { SetRejectedPatches(std::move(value)); return *this;} /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& AddRejectedPatches(const Aws::String& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; } /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& AddRejectedPatches(Aws::String&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(std::move(value)); return *this; } /** *

A list of explicitly rejected patches for the baseline.

For * information about accepted formats for lists of approved patches and rejected * patches, see About * package name formats for approved and rejected patch lists in the Amazon * Web Services Systems Manager User Guide.

*/ inline BaselineOverride& AddRejectedPatches(const char* value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; } /** *

The action for Patch Manager to take on patches included in the * RejectedPackages list. A patch can be allowed only if it is a * dependency of another package, or blocked entirely along with packages that * include it as a dependency.

*/ inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; } /** *

The action for Patch Manager to take on patches included in the * RejectedPackages list. A patch can be allowed only if it is a * dependency of another package, or blocked entirely along with packages that * include it as a dependency.

*/ inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; } /** *

The action for Patch Manager to take on patches included in the * RejectedPackages list. A patch can be allowed only if it is a * dependency of another package, or blocked entirely along with packages that * include it as a dependency.

*/ inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; } /** *

The action for Patch Manager to take on patches included in the * RejectedPackages list. A patch can be allowed only if it is a * dependency of another package, or blocked entirely along with packages that * include it as a dependency.

*/ inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = std::move(value); } /** *

The action for Patch Manager to take on patches included in the * RejectedPackages list. A patch can be allowed only if it is a * dependency of another package, or blocked entirely along with packages that * include it as a dependency.

*/ inline BaselineOverride& WithRejectedPatchesAction(const PatchAction& value) { SetRejectedPatchesAction(value); return *this;} /** *

The action for Patch Manager to take on patches included in the * RejectedPackages list. A patch can be allowed only if it is a * dependency of another package, or blocked entirely along with packages that * include it as a dependency.

*/ inline BaselineOverride& WithRejectedPatchesAction(PatchAction&& value) { SetRejectedPatchesAction(std::move(value)); return *this;} /** *

Indicates whether the list of approved patches includes non-security updates * that should be applied to the managed nodes. The default value is * false. Applies to Linux managed nodes only.

*/ inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; } /** *

Indicates whether the list of approved patches includes non-security updates * that should be applied to the managed nodes. The default value is * false. Applies to Linux managed nodes only.

*/ inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; } /** *

Indicates whether the list of approved patches includes non-security updates * that should be applied to the managed nodes. The default value is * false. Applies to Linux managed nodes only.

*/ inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; } /** *

Indicates whether the list of approved patches includes non-security updates * that should be applied to the managed nodes. The default value is * false. Applies to Linux managed nodes only.

*/ inline BaselineOverride& WithApprovedPatchesEnableNonSecurity(bool value) { SetApprovedPatchesEnableNonSecurity(value); return *this;} /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline const Aws::Vector& GetSources() const{ return m_sources; } /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; } /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline void SetSources(const Aws::Vector& value) { m_sourcesHasBeenSet = true; m_sources = value; } /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline void SetSources(Aws::Vector&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); } /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline BaselineOverride& WithSources(const Aws::Vector& value) { SetSources(value); return *this;} /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline BaselineOverride& WithSources(Aws::Vector&& value) { SetSources(std::move(value)); return *this;} /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline BaselineOverride& AddSources(const PatchSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** *

Information about the patches to use to update the managed nodes, including * target operating systems and source repositories. Applies to Linux managed nodes * only.

*/ inline BaselineOverride& AddSources(PatchSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; } private: OperatingSystem m_operatingSystem; bool m_operatingSystemHasBeenSet = false; PatchFilterGroup m_globalFilters; bool m_globalFiltersHasBeenSet = false; PatchRuleGroup m_approvalRules; bool m_approvalRulesHasBeenSet = false; Aws::Vector m_approvedPatches; bool m_approvedPatchesHasBeenSet = false; PatchComplianceLevel m_approvedPatchesComplianceLevel; bool m_approvedPatchesComplianceLevelHasBeenSet = false; Aws::Vector m_rejectedPatches; bool m_rejectedPatchesHasBeenSet = false; PatchAction m_rejectedPatchesAction; bool m_rejectedPatchesActionHasBeenSet = false; bool m_approvedPatchesEnableNonSecurity; bool m_approvedPatchesEnableNonSecurityHasBeenSet = false; Aws::Vector m_sources; bool m_sourcesHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws