/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.simplesystemsmanagement.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreatePatchBaselineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Defines the operating system the patch baseline applies to. The default value is WINDOWS
.
*
* The name of the patch baseline. *
*/ private String name; /** ** A set of global filters used to include patches in the baseline. *
*/ private PatchFilterGroup globalFilters; /** ** A set of rules used to include patches in the baseline. *
*/ private PatchRuleGroup approvalRules; /** ** 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. *
*/ private com.amazonaws.internal.SdkInternalList
* 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
.
*
* 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.
*
* 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. *
*/ private com.amazonaws.internal.SdkInternalList
* 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
.
*
* A description of the patch baseline. *
*/ private String description; /** ** Information about the patches to use to update the managed nodes, including target operating systems and source * repositories. Applies to Linux managed nodes only. *
*/ private com.amazonaws.internal.SdkInternalList* User-provided idempotency token. *
*/ private String clientToken; /** ** 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. *
*
* Defines the operating system the patch baseline applies to. The default value is WINDOWS
.
*
WINDOWS
.
* @see OperatingSystem
*/
public void setOperatingSystem(String operatingSystem) {
this.operatingSystem = operatingSystem;
}
/**
*
* Defines the operating system the patch baseline applies to. The default value is WINDOWS
.
*
WINDOWS
.
* @see OperatingSystem
*/
public String getOperatingSystem() {
return this.operatingSystem;
}
/**
*
* Defines the operating system the patch baseline applies to. The default value is WINDOWS
.
*
WINDOWS
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OperatingSystem
*/
public CreatePatchBaselineRequest withOperatingSystem(String operatingSystem) {
setOperatingSystem(operatingSystem);
return this;
}
/**
*
* Defines the operating system the patch baseline applies to. The default value is WINDOWS
.
*
WINDOWS
.
* @see OperatingSystem
*/
public void setOperatingSystem(OperatingSystem operatingSystem) {
withOperatingSystem(operatingSystem);
}
/**
*
* Defines the operating system the patch baseline applies to. The default value is WINDOWS
.
*
WINDOWS
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OperatingSystem
*/
public CreatePatchBaselineRequest withOperatingSystem(OperatingSystem operatingSystem) {
this.operatingSystem = operatingSystem.toString();
return this;
}
/**
* * The name of the patch baseline. *
* * @param name * The name of the patch baseline. */ public void setName(String name) { this.name = name; } /** ** The name of the patch baseline. *
* * @return The name of the patch baseline. */ public String getName() { return this.name; } /** ** The name of the patch baseline. *
* * @param name * The name of the patch baseline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withName(String name) { setName(name); return this; } /** ** A set of global filters used to include patches in the baseline. *
* * @param globalFilters * A set of global filters used to include patches in the baseline. */ public void setGlobalFilters(PatchFilterGroup globalFilters) { this.globalFilters = globalFilters; } /** ** A set of global filters used to include patches in the baseline. *
* * @return A set of global filters used to include patches in the baseline. */ public PatchFilterGroup getGlobalFilters() { return this.globalFilters; } /** ** A set of global filters used to include patches in the baseline. *
* * @param globalFilters * A set of global filters used to include patches in the baseline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withGlobalFilters(PatchFilterGroup globalFilters) { setGlobalFilters(globalFilters); return this; } /** ** A set of rules used to include patches in the baseline. *
* * @param approvalRules * A set of rules used to include patches in the baseline. */ public void setApprovalRules(PatchRuleGroup approvalRules) { this.approvalRules = approvalRules; } /** ** A set of rules used to include patches in the baseline. *
* * @return A set of rules used to include patches in the baseline. */ public PatchRuleGroup getApprovalRules() { return this.approvalRules; } /** ** A set of rules used to include patches in the baseline. *
* * @param approvalRules * A set of rules used to include patches in the baseline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withApprovalRules(PatchRuleGroup approvalRules) { setApprovalRules(approvalRules); 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. *
* * @return 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.
*/
public java.util.List
* 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.
*
* 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.
*/
public void setApprovedPatches(java.util.Collection
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setApprovedPatches(java.util.Collection)} or {@link #withApprovedPatches(java.util.Collection)} if you
* want to override the existing values.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePatchBaselineRequest withApprovedPatches(String... approvedPatches) {
if (this.approvedPatches == null) {
setApprovedPatches(new com.amazonaws.internal.SdkInternalList
* 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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePatchBaselineRequest withApprovedPatches(java.util.Collection
* 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
* 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
* 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
* 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
* 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
* Indicates whether the list of approved patches includes non-security updates that should be applied to the
* managed nodes. The default value is
* Indicates whether the list of approved patches includes non-security updates that should be applied to the
* managed nodes. The default value is
* Indicates whether the list of approved patches includes non-security updates that should be applied to the
* managed nodes. The default value is
* Indicates whether the list of approved patches includes non-security updates that should be applied to the
* managed nodes. The default value is
* 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.
* UNSPECIFIED
.
* UNSPECIFIED
.
* @see PatchComplianceLevel
*/
public void setApprovedPatchesComplianceLevel(String approvedPatchesComplianceLevel) {
this.approvedPatchesComplianceLevel = approvedPatchesComplianceLevel;
}
/**
* UNSPECIFIED
.
* UNSPECIFIED
.
* @see PatchComplianceLevel
*/
public String getApprovedPatchesComplianceLevel() {
return this.approvedPatchesComplianceLevel;
}
/**
* UNSPECIFIED
.
* UNSPECIFIED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PatchComplianceLevel
*/
public CreatePatchBaselineRequest withApprovedPatchesComplianceLevel(String approvedPatchesComplianceLevel) {
setApprovedPatchesComplianceLevel(approvedPatchesComplianceLevel);
return this;
}
/**
* UNSPECIFIED
.
* UNSPECIFIED
.
* @see PatchComplianceLevel
*/
public void setApprovedPatchesComplianceLevel(PatchComplianceLevel approvedPatchesComplianceLevel) {
withApprovedPatchesComplianceLevel(approvedPatchesComplianceLevel);
}
/**
* UNSPECIFIED
.
* UNSPECIFIED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PatchComplianceLevel
*/
public CreatePatchBaselineRequest withApprovedPatchesComplianceLevel(PatchComplianceLevel approvedPatchesComplianceLevel) {
this.approvedPatchesComplianceLevel = approvedPatchesComplianceLevel.toString();
return this;
}
/**
* false
. Applies to Linux managed nodes only.
* false
. Applies to Linux managed nodes only.
*/
public void setApprovedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity) {
this.approvedPatchesEnableNonSecurity = approvedPatchesEnableNonSecurity;
}
/**
* false
. Applies to Linux managed nodes only.
* false
. Applies to Linux managed nodes only.
*/
public Boolean getApprovedPatchesEnableNonSecurity() {
return this.approvedPatchesEnableNonSecurity;
}
/**
* false
. Applies to Linux managed nodes only.
* false
. Applies to Linux managed nodes only.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePatchBaselineRequest withApprovedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity) {
setApprovedPatchesEnableNonSecurity(approvedPatchesEnableNonSecurity);
return this;
}
/**
* false
. Applies to Linux managed nodes only.
* false
. Applies to Linux managed nodes only.
*/
public Boolean isApprovedPatchesEnableNonSecurity() {
return this.approvedPatchesEnableNonSecurity;
}
/**
*
* 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.
*/
public java.util.List
* 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.
*
* 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.
*/
public void setRejectedPatches(java.util.Collection
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRejectedPatches(java.util.Collection)} or {@link #withRejectedPatches(java.util.Collection)} if you
* want to override the existing values.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePatchBaselineRequest withRejectedPatches(String... rejectedPatches) {
if (this.rejectedPatches == null) {
setRejectedPatches(new com.amazonaws.internal.SdkInternalList
* 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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePatchBaselineRequest withRejectedPatches(java.util.Collection
* The action for Patch Manager to take on patches included in the
*
* RejectedPackages
list.
*
*
*
* @param rejectedPatchesAction
* The action for Patch Manager to take on patches included in the 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
.
* 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
.
*
* 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
.
*
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
.
*
* 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
.
*
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
.
*
* 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
.
*
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
.
*
* 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
.
*
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
.
*
* A description of the patch baseline. *
* * @param description * A description of the patch baseline. */ public void setDescription(String description) { this.description = description; } /** ** A description of the patch baseline. *
* * @return A description of the patch baseline. */ public String getDescription() { return this.description; } /** ** A description of the patch baseline. *
* * @param description * A description of the patch baseline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withDescription(String description) { setDescription(description); 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. *
* * @return Information about the patches to use to update the managed nodes, including target operating systems and * source repositories. Applies to Linux managed nodes only. */ public java.util.List* Information about the patches to use to update the managed nodes, including target operating systems and source * repositories. Applies to Linux managed nodes only. *
* * @param 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. */ public void setSources(java.util.Collection* Information about the patches to use to update the managed nodes, including target operating systems and source * repositories. Applies to Linux managed nodes only. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSources(java.util.Collection)} or {@link #withSources(java.util.Collection)} if you want to override * the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withSources(PatchSource... sources) { if (this.sources == null) { setSources(new com.amazonaws.internal.SdkInternalList* Information about the patches to use to update the managed nodes, including target operating systems and source * repositories. Applies to Linux managed nodes only. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withSources(java.util.Collection* User-provided idempotency token. *
* * @param clientToken * User-provided idempotency token. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** User-provided idempotency token. *
* * @return User-provided idempotency token. */ public String getClientToken() { return this.clientToken; } /** ** User-provided idempotency token. *
* * @param clientToken * User-provided idempotency token. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withClientToken(String clientToken) { setClientToken(clientToken); 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. *
*
* Key=PatchSeverity,Value=Critical
*
* Key=OS,Value=Windows
*
* To add tags to an existing patch baseline, use the AddTagsToResource operation. *
*/ public java.util.List* 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. *
*
* Key=PatchSeverity,Value=Critical
*
* Key=OS,Value=Windows
*
* To add tags to an existing patch baseline, use the AddTagsToResource operation. *
*/ public void setTags(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param 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. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* 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. *
*
* Key=PatchSeverity,Value=Critical
*
* Key=OS,Value=Windows
*
* To add tags to an existing patch baseline, use the AddTagsToResource operation. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreatePatchBaselineRequest withTags(java.util.Collection