/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Defines the basic information about a patch baseline override. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BaselineOverride implements Serializable, Cloneable, StructuredPojo { /** ** The operating system rule used by the patch baseline override. *
*/ private String operatingSystem; private PatchFilterGroup globalFilters; 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. *
*/ private String approvedPatchesComplianceLevel; /** ** 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. A patch can
* be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it
* as a dependency.
*
* 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.
*
* 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* The operating system rule used by the patch baseline override. *
* * @param operatingSystem * The operating system rule used by the patch baseline override. * @see OperatingSystem */ public void setOperatingSystem(String operatingSystem) { this.operatingSystem = operatingSystem; } /** ** The operating system rule used by the patch baseline override. *
* * @return The operating system rule used by the patch baseline override. * @see OperatingSystem */ public String getOperatingSystem() { return this.operatingSystem; } /** ** The operating system rule used by the patch baseline override. *
* * @param operatingSystem * The operating system rule used by the patch baseline override. * @return Returns a reference to this object so that method calls can be chained together. * @see OperatingSystem */ public BaselineOverride withOperatingSystem(String operatingSystem) { setOperatingSystem(operatingSystem); return this; } /** ** The operating system rule used by the patch baseline override. *
* * @param operatingSystem * The operating system rule used by the patch baseline override. * @return Returns a reference to this object so that method calls can be chained together. * @see OperatingSystem */ public BaselineOverride withOperatingSystem(OperatingSystem operatingSystem) { this.operatingSystem = operatingSystem.toString(); return this; } /** * @param globalFilters */ public void setGlobalFilters(PatchFilterGroup globalFilters) { this.globalFilters = globalFilters; } /** * @return */ public PatchFilterGroup getGlobalFilters() { return this.globalFilters; } /** * @param globalFilters * @return Returns a reference to this object so that method calls can be chained together. */ public BaselineOverride withGlobalFilters(PatchFilterGroup globalFilters) { setGlobalFilters(globalFilters); return this; } /** * @param approvalRules */ public void setApprovalRules(PatchRuleGroup approvalRules) { this.approvalRules = approvalRules; } /** * @return */ public PatchRuleGroup getApprovalRules() { return this.approvalRules; } /** * @param approvalRules * @return Returns a reference to this object so that method calls can be chained together. */ public BaselineOverride 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 BaselineOverride 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 BaselineOverride 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.
*
* Defines the compliance level for approved patches. When an approved patch is reported as missing, this value
* describes the severity of the compliance violation.
*
* Defines the compliance level for approved patches. When an approved patch is reported as missing, this value
* describes the severity of the compliance violation.
*
* Defines the compliance level for approved patches. When an approved patch is reported as missing, this value
* describes the severity of the compliance violation.
*
* 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 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 BaselineOverride 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 BaselineOverride withRejectedPatches(java.util.Collection
* The action for Patch Manager to take on patches included in the
* The action for Patch Manager to take on patches included in the
* The action for Patch Manager to take on patches included in the
* The action for Patch Manager to take on patches included in the
* 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
* Information about the patches to use to update the managed nodes, including target operating systems and source
* repositories. Applies to Linux managed nodes only.
*
* Information about the patches to use to update the managed nodes, including target operating systems and source
* repositories. Applies to Linux managed nodes only.
*
* 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.
*
* Information about the patches to use to update the managed nodes, including target operating systems and source
* repositories. Applies to Linux managed nodes only.
* RejectedPackages
list. A patch can
* be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it
* as a dependency.
* RejectedPackages
list. A
* patch can be allowed only if it is a dependency of another package, or blocked entirely along with
* packages that include it as a dependency.
* @see PatchAction
*/
public void setRejectedPatchesAction(String rejectedPatchesAction) {
this.rejectedPatchesAction = rejectedPatchesAction;
}
/**
* RejectedPackages
list. A patch can
* be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it
* as a dependency.
* RejectedPackages
list. A
* patch can be allowed only if it is a dependency of another package, or blocked entirely along with
* packages that include it as a dependency.
* @see PatchAction
*/
public String getRejectedPatchesAction() {
return this.rejectedPatchesAction;
}
/**
* RejectedPackages
list. A patch can
* be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it
* as a dependency.
* RejectedPackages
list. A
* patch can be allowed only if it is a dependency of another package, or blocked entirely along with
* packages that include it as a dependency.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PatchAction
*/
public BaselineOverride withRejectedPatchesAction(String rejectedPatchesAction) {
setRejectedPatchesAction(rejectedPatchesAction);
return this;
}
/**
* RejectedPackages
list. A patch can
* be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it
* as a dependency.
* RejectedPackages
list. A
* patch can be allowed only if it is a dependency of another package, or blocked entirely along with
* packages that include it as a dependency.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PatchAction
*/
public BaselineOverride withRejectedPatchesAction(PatchAction rejectedPatchesAction) {
this.rejectedPatchesAction = rejectedPatchesAction.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 BaselineOverride 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;
}
/**
*