@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePatchBaselineRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePatchBaselineRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePatchBaselineRequest |
clone() |
boolean |
equals(Object obj) |
PatchRuleGroup |
getApprovalRules()
A set of rules used to include patches in the baseline.
|
List<String> |
getApprovedPatches()
A list of explicitly approved patches for the baseline.
|
String |
getApprovedPatchesComplianceLevel()
Defines the compliance level for approved patches.
|
Boolean |
getApprovedPatchesEnableNonSecurity()
Indicates whether the list of approved patches includes non-security updates that should be applied to the
instances.
|
String |
getClientToken()
User-provided idempotency token.
|
String |
getDescription()
A description of the patch baseline.
|
PatchFilterGroup |
getGlobalFilters()
A set of global filters used to include patches in the baseline.
|
String |
getName()
The name of the patch baseline.
|
String |
getOperatingSystem()
Defines the operating system the patch baseline applies to.
|
List<String> |
getRejectedPatches()
A list of explicitly rejected patches for the baseline.
|
String |
getRejectedPatchesAction()
The action for Patch Manager to take on patches included in the RejectedPackages list.
|
List<PatchSource> |
getSources()
Information about the patches to use to update the instances, including target operating systems and source
repositories.
|
List<Tag> |
getTags()
Optional metadata that you assign to a resource.
|
int |
hashCode() |
Boolean |
isApprovedPatchesEnableNonSecurity()
Indicates whether the list of approved patches includes non-security updates that should be applied to the
instances.
|
void |
setApprovalRules(PatchRuleGroup approvalRules)
A set of rules used to include patches in the baseline.
|
void |
setApprovedPatches(Collection<String> approvedPatches)
A list of explicitly approved patches for the baseline.
|
void |
setApprovedPatchesComplianceLevel(PatchComplianceLevel approvedPatchesComplianceLevel)
Defines the compliance level for approved patches.
|
void |
setApprovedPatchesComplianceLevel(String approvedPatchesComplianceLevel)
Defines the compliance level for approved patches.
|
void |
setApprovedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity)
Indicates whether the list of approved patches includes non-security updates that should be applied to the
instances.
|
void |
setClientToken(String clientToken)
User-provided idempotency token.
|
void |
setDescription(String description)
A description of the patch baseline.
|
void |
setGlobalFilters(PatchFilterGroup globalFilters)
A set of global filters used to include patches in the baseline.
|
void |
setName(String name)
The name of the patch baseline.
|
void |
setOperatingSystem(OperatingSystem operatingSystem)
Defines the operating system the patch baseline applies to.
|
void |
setOperatingSystem(String operatingSystem)
Defines the operating system the patch baseline applies to.
|
void |
setRejectedPatches(Collection<String> rejectedPatches)
A list of explicitly rejected patches for the baseline.
|
void |
setRejectedPatchesAction(PatchAction rejectedPatchesAction)
The action for Patch Manager to take on patches included in the RejectedPackages list.
|
void |
setRejectedPatchesAction(String rejectedPatchesAction)
The action for Patch Manager to take on patches included in the RejectedPackages list.
|
void |
setSources(Collection<PatchSource> sources)
Information about the patches to use to update the instances, including target operating systems and source
repositories.
|
void |
setTags(Collection<Tag> tags)
Optional metadata that you assign to a resource.
|
String |
toString()
Returns a string representation of this object.
|
CreatePatchBaselineRequest |
withApprovalRules(PatchRuleGroup approvalRules)
A set of rules used to include patches in the baseline.
|
CreatePatchBaselineRequest |
withApprovedPatches(Collection<String> approvedPatches)
A list of explicitly approved patches for the baseline.
|
CreatePatchBaselineRequest |
withApprovedPatches(String... approvedPatches)
A list of explicitly approved patches for the baseline.
|
CreatePatchBaselineRequest |
withApprovedPatchesComplianceLevel(PatchComplianceLevel approvedPatchesComplianceLevel)
Defines the compliance level for approved patches.
|
CreatePatchBaselineRequest |
withApprovedPatchesComplianceLevel(String approvedPatchesComplianceLevel)
Defines the compliance level for approved patches.
|
CreatePatchBaselineRequest |
withApprovedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity)
Indicates whether the list of approved patches includes non-security updates that should be applied to the
instances.
|
CreatePatchBaselineRequest |
withClientToken(String clientToken)
User-provided idempotency token.
|
CreatePatchBaselineRequest |
withDescription(String description)
A description of the patch baseline.
|
CreatePatchBaselineRequest |
withGlobalFilters(PatchFilterGroup globalFilters)
A set of global filters used to include patches in the baseline.
|
CreatePatchBaselineRequest |
withName(String name)
The name of the patch baseline.
|
CreatePatchBaselineRequest |
withOperatingSystem(OperatingSystem operatingSystem)
Defines the operating system the patch baseline applies to.
|
CreatePatchBaselineRequest |
withOperatingSystem(String operatingSystem)
Defines the operating system the patch baseline applies to.
|
CreatePatchBaselineRequest |
withRejectedPatches(Collection<String> rejectedPatches)
A list of explicitly rejected patches for the baseline.
|
CreatePatchBaselineRequest |
withRejectedPatches(String... rejectedPatches)
A list of explicitly rejected patches for the baseline.
|
CreatePatchBaselineRequest |
withRejectedPatchesAction(PatchAction rejectedPatchesAction)
The action for Patch Manager to take on patches included in the RejectedPackages list.
|
CreatePatchBaselineRequest |
withRejectedPatchesAction(String rejectedPatchesAction)
The action for Patch Manager to take on patches included in the RejectedPackages list.
|
CreatePatchBaselineRequest |
withSources(Collection<PatchSource> sources)
Information about the patches to use to update the instances, including target operating systems and source
repositories.
|
CreatePatchBaselineRequest |
withSources(PatchSource... sources)
Information about the patches to use to update the instances, including target operating systems and source
repositories.
|
CreatePatchBaselineRequest |
withTags(Collection<Tag> tags)
Optional metadata that you assign to a resource.
|
CreatePatchBaselineRequest |
withTags(Tag... tags)
Optional metadata that you assign to a resource.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setOperatingSystem(String operatingSystem)
Defines the operating system the patch baseline applies to. The Default value is WINDOWS.
operatingSystem
- Defines the operating system the patch baseline applies to. The Default value is WINDOWS.OperatingSystem
public String getOperatingSystem()
Defines the operating system the patch baseline applies to. The Default value is WINDOWS.
OperatingSystem
public CreatePatchBaselineRequest withOperatingSystem(String operatingSystem)
Defines the operating system the patch baseline applies to. The Default value is WINDOWS.
operatingSystem
- Defines the operating system the patch baseline applies to. The Default value is WINDOWS.OperatingSystem
public void setOperatingSystem(OperatingSystem operatingSystem)
Defines the operating system the patch baseline applies to. The Default value is WINDOWS.
operatingSystem
- Defines the operating system the patch baseline applies to. The Default value is WINDOWS.OperatingSystem
public CreatePatchBaselineRequest withOperatingSystem(OperatingSystem operatingSystem)
Defines the operating system the patch baseline applies to. The Default value is WINDOWS.
operatingSystem
- Defines the operating system the patch baseline applies to. The Default value is WINDOWS.OperatingSystem
public void setName(String name)
The name of the patch baseline.
name
- The name of the patch baseline.public String getName()
The name of the patch baseline.
public CreatePatchBaselineRequest withName(String name)
The name of the patch baseline.
name
- The name of the patch baseline.public void setGlobalFilters(PatchFilterGroup globalFilters)
A set of global filters used to include patches in the baseline.
globalFilters
- A set of global filters used to include patches in the baseline.public PatchFilterGroup getGlobalFilters()
A set of global filters used to include patches in the baseline.
public CreatePatchBaselineRequest withGlobalFilters(PatchFilterGroup globalFilters)
A set of global filters used to include patches in the baseline.
globalFilters
- A set of global filters used to include patches in the baseline.public void setApprovalRules(PatchRuleGroup approvalRules)
A set of rules used to include patches in the baseline.
approvalRules
- A set of rules used to include patches in the baseline.public PatchRuleGroup getApprovalRules()
A set of rules used to include patches in the baseline.
public CreatePatchBaselineRequest withApprovalRules(PatchRuleGroup approvalRules)
A set of rules used to include patches in the baseline.
approvalRules
- A set of rules used to include patches in the baseline.public List<String> getApprovedPatches()
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 AWS 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 AWS Systems Manager User Guide.
public void setApprovedPatches(Collection<String> 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 AWS Systems Manager User Guide.
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 AWS Systems Manager User Guide.
public CreatePatchBaselineRequest withApprovedPatches(String... 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 AWS Systems Manager User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setApprovedPatches(java.util.Collection)
or withApprovedPatches(java.util.Collection)
if you
want to override the existing values.
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 AWS Systems Manager User Guide.
public CreatePatchBaselineRequest withApprovedPatches(Collection<String> 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 AWS Systems Manager User Guide.
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 AWS Systems Manager User Guide.
public void setApprovedPatchesComplianceLevel(String 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.
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.PatchComplianceLevel
public String getApprovedPatchesComplianceLevel()
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.
PatchComplianceLevel
public CreatePatchBaselineRequest withApprovedPatchesComplianceLevel(String 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.
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.PatchComplianceLevel
public void setApprovedPatchesComplianceLevel(PatchComplianceLevel 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.
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.PatchComplianceLevel
public CreatePatchBaselineRequest withApprovedPatchesComplianceLevel(PatchComplianceLevel 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.
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.PatchComplianceLevel
public void setApprovedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity)
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.
approvedPatchesEnableNonSecurity
- 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.public Boolean getApprovedPatchesEnableNonSecurity()
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.
public CreatePatchBaselineRequest withApprovedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity)
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.
approvedPatchesEnableNonSecurity
- 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.public Boolean isApprovedPatchesEnableNonSecurity()
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.
public List<String> getRejectedPatches()
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 AWS 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 AWS Systems Manager User Guide.
public void setRejectedPatches(Collection<String> 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 AWS Systems Manager User Guide.
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 AWS Systems Manager User Guide.
public CreatePatchBaselineRequest withRejectedPatches(String... 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 AWS Systems Manager User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setRejectedPatches(java.util.Collection)
or withRejectedPatches(java.util.Collection)
if you
want to override the existing values.
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 AWS Systems Manager User Guide.
public CreatePatchBaselineRequest withRejectedPatches(Collection<String> 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 AWS Systems Manager User Guide.
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 AWS Systems Manager User Guide.
public void setRejectedPatchesAction(String 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, 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 InstalledRejected.
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, 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 InstalledRejected.
PatchAction
public String getRejectedPatchesAction()
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, 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 InstalledRejected.
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, 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 InstalledRejected.
PatchAction
public CreatePatchBaselineRequest withRejectedPatchesAction(String 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, 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 InstalledRejected.
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, 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 InstalledRejected.
PatchAction
public void setRejectedPatchesAction(PatchAction 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, 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 InstalledRejected.
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, 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 InstalledRejected.
PatchAction
public CreatePatchBaselineRequest withRejectedPatchesAction(PatchAction 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, 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 InstalledRejected.
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, 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 InstalledRejected.
PatchAction
public void setDescription(String description)
A description of the patch baseline.
description
- A description of the patch baseline.public String getDescription()
A description of the patch baseline.
public CreatePatchBaselineRequest withDescription(String description)
A description of the patch baseline.
description
- A description of the patch baseline.public List<PatchSource> getSources()
Information about the patches to use to update the instances, including target operating systems and source repositories. Applies to Linux instances only.
public void setSources(Collection<PatchSource> sources)
Information about the patches to use to update the instances, including target operating systems and source repositories. Applies to Linux instances only.
sources
- Information about the patches to use to update the instances, including target operating systems and
source repositories. Applies to Linux instances only.public CreatePatchBaselineRequest withSources(PatchSource... sources)
Information about the patches to use to update the instances, including target operating systems and source repositories. Applies to Linux instances only.
NOTE: This method appends the values to the existing list (if any). Use
setSources(java.util.Collection)
or withSources(java.util.Collection)
if you want to override
the existing values.
sources
- Information about the patches to use to update the instances, including target operating systems and
source repositories. Applies to Linux instances only.public CreatePatchBaselineRequest withSources(Collection<PatchSource> sources)
Information about the patches to use to update the instances, including target operating systems and source repositories. Applies to Linux instances only.
sources
- Information about the patches to use to update the instances, including target operating systems and
source repositories. Applies to Linux instances only.public void setClientToken(String clientToken)
User-provided idempotency token.
clientToken
- User-provided idempotency token.public String getClientToken()
User-provided idempotency token.
public CreatePatchBaselineRequest withClientToken(String clientToken)
User-provided idempotency token.
clientToken
- User-provided idempotency token.public List<Tag> getTags()
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 name/value pairs:
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
public void setTags(Collection<Tag> 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 name/value pairs:
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
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 name/value pairs:
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
public CreatePatchBaselineRequest withTags(Tag... 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 name/value pairs:
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
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 name/value pairs:
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
public CreatePatchBaselineRequest withTags(Collection<Tag> 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 name/value pairs:
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
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 name/value pairs:
Key=PatchSeverity,Value=Critical
Key=OS,Value=Windows
To add tags to an existing patch baseline, use the AddTagsToResource action.
public String toString()
toString
in class Object
Object.toString()
public CreatePatchBaselineRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2021. All rights reserved.