/** * 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 #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SSM { namespace Model { class GetPatchBaselineResult { public: AWS_SSM_API GetPatchBaselineResult(); AWS_SSM_API GetPatchBaselineResult(const Aws::AmazonWebServiceResult& result); AWS_SSM_API GetPatchBaselineResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the retrieved patch baseline.

*/ inline const Aws::String& GetBaselineId() const{ return m_baselineId; } /** *

The ID of the retrieved patch baseline.

*/ inline void SetBaselineId(const Aws::String& value) { m_baselineId = value; } /** *

The ID of the retrieved patch baseline.

*/ inline void SetBaselineId(Aws::String&& value) { m_baselineId = std::move(value); } /** *

The ID of the retrieved patch baseline.

*/ inline void SetBaselineId(const char* value) { m_baselineId.assign(value); } /** *

The ID of the retrieved patch baseline.

*/ inline GetPatchBaselineResult& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;} /** *

The ID of the retrieved patch baseline.

*/ inline GetPatchBaselineResult& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;} /** *

The ID of the retrieved patch baseline.

*/ inline GetPatchBaselineResult& WithBaselineId(const char* value) { SetBaselineId(value); return *this;} /** *

The name of the patch baseline.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the patch baseline.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the patch baseline.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the patch baseline.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the patch baseline.

*/ inline GetPatchBaselineResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the patch baseline.

*/ inline GetPatchBaselineResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the patch baseline.

*/ inline GetPatchBaselineResult& WithName(const char* value) { SetName(value); return *this;} /** *

Returns the operating system specified for the patch baseline.

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

Returns the operating system specified for the patch baseline.

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

Returns the operating system specified for the patch baseline.

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

Returns the operating system specified for the patch baseline.

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

Returns the operating system specified for the patch baseline.

*/ inline GetPatchBaselineResult& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;} /** *

A set of global filters used to exclude patches from the baseline.

*/ inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; } /** *

A set of global filters used to exclude patches from the baseline.

*/ inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFilters = value; } /** *

A set of global filters used to exclude patches from the baseline.

*/ inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFilters = std::move(value); } /** *

A set of global filters used to exclude patches from the baseline.

*/ inline GetPatchBaselineResult& WithGlobalFilters(const PatchFilterGroup& value) { SetGlobalFilters(value); return *this;} /** *

A set of global filters used to exclude patches from the baseline.

*/ inline GetPatchBaselineResult& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;} /** *

A set of rules used to include patches in the baseline.

*/ inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; } /** *

A set of rules used to include patches in the baseline.

*/ inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRules = value; } /** *

A set of rules used to include patches in the baseline.

*/ inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRules = std::move(value); } /** *

A set of rules used to include patches in the baseline.

*/ inline GetPatchBaselineResult& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;} /** *

A set of rules used to include patches in the baseline.

*/ inline GetPatchBaselineResult& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;} /** *

A list of explicitly approved patches for the baseline.

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

A list of explicitly approved patches for the baseline.

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

A list of explicitly approved patches for the baseline.

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

A list of explicitly approved patches for the baseline.

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

A list of explicitly approved patches for the baseline.

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

A list of explicitly approved patches for the baseline.

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

A list of explicitly approved patches for the baseline.

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

A list of explicitly approved patches for the baseline.

*/ inline GetPatchBaselineResult& AddApprovedPatches(const char* value) { m_approvedPatches.push_back(value); return *this; } /** *

Returns the specified compliance severity level for approved patches in the * patch baseline.

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

Returns the specified compliance severity level for approved patches in the * patch baseline.

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

Returns the specified compliance severity level for approved patches in the * patch baseline.

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

Returns the specified compliance severity level for approved patches in the * patch baseline.

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

Returns the specified compliance severity level for approved patches in the * patch baseline.

*/ inline GetPatchBaselineResult& WithApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { SetApprovedPatchesComplianceLevel(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 void SetApprovedPatchesEnableNonSecurity(bool value) { 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 GetPatchBaselineResult& WithApprovedPatchesEnableNonSecurity(bool value) { SetApprovedPatchesEnableNonSecurity(value); return *this;} /** *

A list of explicitly rejected patches for the baseline.

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

A list of explicitly rejected patches for the baseline.

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

A list of explicitly rejected patches for the baseline.

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

A list of explicitly rejected patches for the baseline.

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

A list of explicitly rejected patches for the baseline.

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

A list of explicitly rejected patches for the baseline.

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

A list of explicitly rejected patches for the baseline.

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

A list of explicitly rejected patches for the baseline.

*/ inline GetPatchBaselineResult& AddRejectedPatches(const char* value) { m_rejectedPatches.push_back(value); return *this; } /** *

The action specified to take on patches included in the * RejectedPatches 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 specified to take on patches included in the * RejectedPatches 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_rejectedPatchesAction = value; } /** *

The action specified to take on patches included in the * RejectedPatches 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_rejectedPatchesAction = std::move(value); } /** *

The action specified to take on patches included in the * RejectedPatches 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 GetPatchBaselineResult& WithRejectedPatchesAction(const PatchAction& value) { SetRejectedPatchesAction(value); return *this;} /** *

The action specified to take on patches included in the * RejectedPatches 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 GetPatchBaselineResult& WithRejectedPatchesAction(PatchAction&& value) { SetRejectedPatchesAction(std::move(value)); return *this;} /** *

Patch groups included in the patch baseline.

*/ inline const Aws::Vector& GetPatchGroups() const{ return m_patchGroups; } /** *

Patch groups included in the patch baseline.

*/ inline void SetPatchGroups(const Aws::Vector& value) { m_patchGroups = value; } /** *

Patch groups included in the patch baseline.

*/ inline void SetPatchGroups(Aws::Vector&& value) { m_patchGroups = std::move(value); } /** *

Patch groups included in the patch baseline.

*/ inline GetPatchBaselineResult& WithPatchGroups(const Aws::Vector& value) { SetPatchGroups(value); return *this;} /** *

Patch groups included in the patch baseline.

*/ inline GetPatchBaselineResult& WithPatchGroups(Aws::Vector&& value) { SetPatchGroups(std::move(value)); return *this;} /** *

Patch groups included in the patch baseline.

*/ inline GetPatchBaselineResult& AddPatchGroups(const Aws::String& value) { m_patchGroups.push_back(value); return *this; } /** *

Patch groups included in the patch baseline.

*/ inline GetPatchBaselineResult& AddPatchGroups(Aws::String&& value) { m_patchGroups.push_back(std::move(value)); return *this; } /** *

Patch groups included in the patch baseline.

*/ inline GetPatchBaselineResult& AddPatchGroups(const char* value) { m_patchGroups.push_back(value); return *this; } /** *

The date the patch baseline was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date the patch baseline was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } /** *

The date the patch baseline was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); } /** *

The date the patch baseline was created.

*/ inline GetPatchBaselineResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date the patch baseline was created.

*/ inline GetPatchBaselineResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The date the patch baseline was last modified.

*/ inline const Aws::Utils::DateTime& GetModifiedDate() const{ return m_modifiedDate; } /** *

The date the patch baseline was last modified.

*/ inline void SetModifiedDate(const Aws::Utils::DateTime& value) { m_modifiedDate = value; } /** *

The date the patch baseline was last modified.

*/ inline void SetModifiedDate(Aws::Utils::DateTime&& value) { m_modifiedDate = std::move(value); } /** *

The date the patch baseline was last modified.

*/ inline GetPatchBaselineResult& WithModifiedDate(const Aws::Utils::DateTime& value) { SetModifiedDate(value); return *this;} /** *

The date the patch baseline was last modified.

*/ inline GetPatchBaselineResult& WithModifiedDate(Aws::Utils::DateTime&& value) { SetModifiedDate(std::move(value)); return *this;} /** *

A description of the patch baseline.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the patch baseline.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

A description of the patch baseline.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

A description of the patch baseline.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

A description of the patch baseline.

*/ inline GetPatchBaselineResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the patch baseline.

*/ inline GetPatchBaselineResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the patch baseline.

*/ inline GetPatchBaselineResult& WithDescription(const char* value) { SetDescription(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 void SetSources(const Aws::Vector& value) { 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_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 GetPatchBaselineResult& 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 GetPatchBaselineResult& 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 GetPatchBaselineResult& AddSources(const PatchSource& value) { 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 GetPatchBaselineResult& AddSources(PatchSource&& value) { m_sources.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetPatchBaselineResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPatchBaselineResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPatchBaselineResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_baselineId; Aws::String m_name; OperatingSystem m_operatingSystem; PatchFilterGroup m_globalFilters; PatchRuleGroup m_approvalRules; Aws::Vector m_approvedPatches; PatchComplianceLevel m_approvedPatchesComplianceLevel; bool m_approvedPatchesEnableNonSecurity; Aws::Vector m_rejectedPatches; PatchAction m_rejectedPatchesAction; Aws::Vector m_patchGroups; Aws::Utils::DateTime m_createdDate; Aws::Utils::DateTime m_modifiedDate; Aws::String m_description; Aws::Vector m_sources; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws