This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdatePatchBaselineRequest.h

682 lines
32 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/ssm/SSMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/PatchFilterGroup.h>
#include <aws/ssm/model/PatchRuleGroup.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/PatchComplianceLevel.h>
#include <aws/ssm/model/PatchAction.h>
#include <aws/ssm/model/PatchSource.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API UpdatePatchBaselineRequest : public SSMRequest
{
public:
UpdatePatchBaselineRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdatePatchBaseline"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline void SetBaselineId(const Aws::String& value) { m_baselineIdHasBeenSet = true; m_baselineId = value; }
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline void SetBaselineId(Aws::String&& value) { m_baselineIdHasBeenSet = true; m_baselineId = std::move(value); }
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline void SetBaselineId(const char* value) { m_baselineIdHasBeenSet = true; m_baselineId.assign(value); }
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline UpdatePatchBaselineRequest& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline UpdatePatchBaselineRequest& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
/**
* <p>The ID of the patch baseline to update.</p>
*/
inline UpdatePatchBaselineRequest& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
/**
* <p>The name of the patch baseline.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the patch baseline.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the patch baseline.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the patch baseline.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the patch baseline.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = value; }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::move(value); }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithGlobalFilters(const PatchFilterGroup& value) { SetGlobalFilters(value); return *this;}
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;}
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = value; }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::move(value); }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;}
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline const Aws::Vector<Aws::String>& GetApprovedPatches() const{ return m_approvedPatches; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetApprovedPatches(const Aws::Vector<Aws::String>& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = value; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetApprovedPatches(Aws::Vector<Aws::String>&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::move(value); }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& WithApprovedPatches(const Aws::Vector<Aws::String>& value) { SetApprovedPatches(value); return *this;}
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& WithApprovedPatches(Aws::Vector<Aws::String>&& value) { SetApprovedPatches(std::move(value)); return *this;}
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& AddApprovedPatches(const Aws::String& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& AddApprovedPatches(Aws::String&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(std::move(value)); return *this; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& AddApprovedPatches(const char* value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
/**
* <p>Assigns a new compliance severity level to an existing patch baseline.</p>
*/
inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; }
/**
* <p>Assigns a new compliance severity level to an existing patch baseline.</p>
*/
inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
/**
* <p>Assigns a new compliance severity level to an existing patch baseline.</p>
*/
inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
/**
* <p>Assigns a new compliance severity level to an existing patch baseline.</p>
*/
inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = std::move(value); }
/**
* <p>Assigns a new compliance severity level to an existing patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { SetApprovedPatchesComplianceLevel(value); return *this;}
/**
* <p>Assigns a new compliance severity level to an existing patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { SetApprovedPatchesComplianceLevel(std::move(value)); return *this;}
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; }
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline UpdatePatchBaselineRequest& WithApprovedPatchesEnableNonSecurity(bool value) { SetApprovedPatchesEnableNonSecurity(value); return *this;}
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline const Aws::Vector<Aws::String>& GetRejectedPatches() const{ return m_rejectedPatches; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetRejectedPatches(const Aws::Vector<Aws::String>& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = value; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetRejectedPatches(Aws::Vector<Aws::String>&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::move(value); }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& WithRejectedPatches(const Aws::Vector<Aws::String>& value) { SetRejectedPatches(value); return *this;}
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& WithRejectedPatches(Aws::Vector<Aws::String>&& value) { SetRejectedPatches(std::move(value)); return *this;}
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& AddRejectedPatches(const Aws::String& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& AddRejectedPatches(Aws::String&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(std::move(value)); return *this; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline UpdatePatchBaselineRequest& AddRejectedPatches(const char* value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = std::move(value); }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline UpdatePatchBaselineRequest& WithRejectedPatchesAction(const PatchAction& value) { SetRejectedPatchesAction(value); return *this;}
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline UpdatePatchBaselineRequest& WithRejectedPatchesAction(PatchAction&& value) { SetRejectedPatchesAction(std::move(value)); return *this;}
/**
* <p>A description of the patch baseline.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the patch baseline.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the patch baseline.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the patch baseline.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the patch baseline.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the patch baseline.</p>
*/
inline UpdatePatchBaselineRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline UpdatePatchBaselineRequest& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline UpdatePatchBaselineRequest& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline UpdatePatchBaselineRequest& AddSources(const PatchSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline UpdatePatchBaselineRequest& AddSources(PatchSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
/**
* <p>If True, then all fields that are required by the CreatePatchBaseline action
* are also required for this API request. Optional fields that are not specified
* are set to null.</p>
*/
inline bool GetReplace() const{ return m_replace; }
/**
* <p>If True, then all fields that are required by the CreatePatchBaseline action
* are also required for this API request. Optional fields that are not specified
* are set to null.</p>
*/
inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
/**
* <p>If True, then all fields that are required by the CreatePatchBaseline action
* are also required for this API request. Optional fields that are not specified
* are set to null.</p>
*/
inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
/**
* <p>If True, then all fields that are required by the CreatePatchBaseline action
* are also required for this API request. Optional fields that are not specified
* are set to null.</p>
*/
inline UpdatePatchBaselineRequest& WithReplace(bool value) { SetReplace(value); return *this;}
private:
Aws::String m_baselineId;
bool m_baselineIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
PatchFilterGroup m_globalFilters;
bool m_globalFiltersHasBeenSet;
PatchRuleGroup m_approvalRules;
bool m_approvalRulesHasBeenSet;
Aws::Vector<Aws::String> m_approvedPatches;
bool m_approvedPatchesHasBeenSet;
PatchComplianceLevel m_approvedPatchesComplianceLevel;
bool m_approvedPatchesComplianceLevelHasBeenSet;
bool m_approvedPatchesEnableNonSecurity;
bool m_approvedPatchesEnableNonSecurityHasBeenSet;
Aws::Vector<Aws::String> m_rejectedPatches;
bool m_rejectedPatchesHasBeenSet;
PatchAction m_rejectedPatchesAction;
bool m_rejectedPatchesActionHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<PatchSource> m_sources;
bool m_sourcesHasBeenSet;
bool m_replace;
bool m_replaceHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws