/** * 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 #include #include namespace Aws { namespace SSM { namespace Model { /** */ class CreatePatchBaselineRequest : public SSMRequest { public: AWS_SSM_API CreatePatchBaselineRequest(); // 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 "CreatePatchBaseline"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Defines the operating system the patch baseline applies to. The default value * is WINDOWS.

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

Defines the operating system the patch baseline applies to. The default value * is WINDOWS.

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

Defines the operating system the patch baseline applies to. The default value * is WINDOWS.

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

Defines the operating system the patch baseline applies to. The default value * is WINDOWS.

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

Defines the operating system the patch baseline applies to. The default value * is WINDOWS.

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

Defines the operating system the patch baseline applies to. The default value * is WINDOWS.

*/ inline CreatePatchBaselineRequest& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(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 bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the patch baseline.

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

The name of the patch baseline.

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

The name of the patch baseline.

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

The name of the patch baseline.

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

The name of the patch baseline.

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

The name of the patch baseline.

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

A set of global filters used to include patches in the baseline.

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

A set of global filters used to include patches in the baseline.

*/ inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; } /** *

A set of global filters used to include patches in the baseline.

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

A set of global filters used to include patches in the baseline.

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

A set of global filters used to include patches in the baseline.

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

A set of global filters used to include patches in the baseline.

*/ inline CreatePatchBaselineRequest& 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 bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; } /** *

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

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

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

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

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

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

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

*/ inline CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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. The default value is UNSPECIFIED.

*/ 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. The default value is UNSPECIFIED.

*/ 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. The default value is UNSPECIFIED.

*/ 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. The default value is UNSPECIFIED.

*/ 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. The default value is UNSPECIFIED.

*/ inline CreatePatchBaselineRequest& 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. The default value is UNSPECIFIED.

*/ inline CreatePatchBaselineRequest& 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 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 CreatePatchBaselineRequest& WithApprovedPatchesEnableNonSecurity(bool value) { SetApprovedPatchesEnableNonSecurity(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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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.

  • * ALLOW_AS_DEPENDENCY : 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 * InstalledOther. This is the default action if no option is * specified.

  • BLOCK : Packages in the * RejectedPatches list, and packages that include them as * dependencies, aren't 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 * InstalledRejected.

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

The action for Patch Manager to take on patches included in the * RejectedPackages list.

  • * ALLOW_AS_DEPENDENCY : 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 * InstalledOther. This is the default action if no option is * specified.

  • BLOCK : Packages in the * RejectedPatches list, and packages that include them as * dependencies, aren't 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 * InstalledRejected.

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

The action for Patch Manager to take on patches included in the * RejectedPackages list.

  • * ALLOW_AS_DEPENDENCY : 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 * InstalledOther. This is the default action if no option is * specified.

  • BLOCK : Packages in the * RejectedPatches list, and packages that include them as * dependencies, aren't 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 * InstalledRejected.

*/ 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.

  • * ALLOW_AS_DEPENDENCY : 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 * InstalledOther. This is the default action if no option is * specified.

  • BLOCK : Packages in the * RejectedPatches list, and packages that include them as * dependencies, aren't 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 * InstalledRejected.

*/ 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.

  • * ALLOW_AS_DEPENDENCY : 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 * InstalledOther. This is the default action if no option is * specified.

  • BLOCK : Packages in the * RejectedPatches list, and packages that include them as * dependencies, aren't 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 * InstalledRejected.

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

The action for Patch Manager to take on patches included in the * RejectedPackages list.

  • * ALLOW_AS_DEPENDENCY : 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 * InstalledOther. This is the default action if no option is * specified.

  • BLOCK : Packages in the * RejectedPatches list, and packages that include them as * dependencies, aren't 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 * InstalledRejected.

*/ inline CreatePatchBaselineRequest& WithRejectedPatchesAction(PatchAction&& value) { SetRejectedPatchesAction(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 bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the patch baseline.

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

A description of the patch baseline.

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

A description of the patch baseline.

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

A description of the patch baseline.

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

A description of the patch baseline.

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

A description of the patch baseline.

*/ inline CreatePatchBaselineRequest& 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 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& 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 CreatePatchBaselineRequest& AddSources(PatchSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; } /** *

User-provided idempotency token.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

User-provided idempotency token.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

User-provided idempotency token.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

User-provided idempotency token.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

User-provided idempotency token.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

User-provided idempotency token.

*/ inline CreatePatchBaselineRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

User-provided idempotency token.

*/ inline CreatePatchBaselineRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

User-provided idempotency token.

*/ inline CreatePatchBaselineRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline CreatePatchBaselineRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline CreatePatchBaselineRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline CreatePatchBaselineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag a patch baseline to identify the * severity level of patches it specifies and the operating system family it * applies to. In this case, you could specify the following key-value pairs:

*
  • Key=PatchSeverity,Value=Critical

  • * Key=OS,Value=Windows

To add tags to an * existing patch baseline, use the AddTagsToResource operation.

*/ inline CreatePatchBaselineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: OperatingSystem m_operatingSystem; bool m_operatingSystemHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = 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; bool m_approvedPatchesEnableNonSecurity; bool m_approvedPatchesEnableNonSecurityHasBeenSet = false; Aws::Vector m_rejectedPatches; bool m_rejectedPatchesHasBeenSet = false; PatchAction m_rejectedPatchesAction; bool m_rejectedPatchesActionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_sources; bool m_sourcesHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws