@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PatchRule extends Object implements Serializable, Cloneable, StructuredPojo
Defines an approval rule for a patch baseline.
| Constructor and Description |
|---|
PatchRule() |
| Modifier and Type | Method and Description |
|---|---|
PatchRule |
clone() |
boolean |
equals(Object obj) |
Integer |
getApproveAfterDays()
The number of days after the release date of each patch matched by the rule that the patch is marked as approved
in the patch baseline.
|
String |
getComplianceLevel()
A compliance severity level for all approved patches in a patch baseline.
|
Boolean |
getEnableNonSecurity()
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates
available in the specified repository.
|
PatchFilterGroup |
getPatchFilterGroup()
The patch filter group that defines the criteria for the rule.
|
int |
hashCode() |
Boolean |
isEnableNonSecurity()
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates
available in the specified repository.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setApproveAfterDays(Integer approveAfterDays)
The number of days after the release date of each patch matched by the rule that the patch is marked as approved
in the patch baseline.
|
void |
setComplianceLevel(PatchComplianceLevel complianceLevel)
A compliance severity level for all approved patches in a patch baseline.
|
void |
setComplianceLevel(String complianceLevel)
A compliance severity level for all approved patches in a patch baseline.
|
void |
setEnableNonSecurity(Boolean enableNonSecurity)
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates
available in the specified repository.
|
void |
setPatchFilterGroup(PatchFilterGroup patchFilterGroup)
The patch filter group that defines the criteria for the rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PatchRule |
withApproveAfterDays(Integer approveAfterDays)
The number of days after the release date of each patch matched by the rule that the patch is marked as approved
in the patch baseline.
|
PatchRule |
withComplianceLevel(PatchComplianceLevel complianceLevel)
A compliance severity level for all approved patches in a patch baseline.
|
PatchRule |
withComplianceLevel(String complianceLevel)
A compliance severity level for all approved patches in a patch baseline.
|
PatchRule |
withEnableNonSecurity(Boolean enableNonSecurity)
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates
available in the specified repository.
|
PatchRule |
withPatchFilterGroup(PatchFilterGroup patchFilterGroup)
The patch filter group that defines the criteria for the rule.
|
public void setPatchFilterGroup(PatchFilterGroup patchFilterGroup)
The patch filter group that defines the criteria for the rule.
patchFilterGroup - The patch filter group that defines the criteria for the rule.public PatchFilterGroup getPatchFilterGroup()
The patch filter group that defines the criteria for the rule.
public PatchRule withPatchFilterGroup(PatchFilterGroup patchFilterGroup)
The patch filter group that defines the criteria for the rule.
patchFilterGroup - The patch filter group that defines the criteria for the rule.public void setComplianceLevel(String complianceLevel)
A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following: Unspecified, Critical, High, Medium, Low, and Informational.
complianceLevel - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels
include the following: Unspecified, Critical, High, Medium, Low, and Informational.PatchComplianceLevelpublic String getComplianceLevel()
A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following: Unspecified, Critical, High, Medium, Low, and Informational.
PatchComplianceLevelpublic PatchRule withComplianceLevel(String complianceLevel)
A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following: Unspecified, Critical, High, Medium, Low, and Informational.
complianceLevel - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels
include the following: Unspecified, Critical, High, Medium, Low, and Informational.PatchComplianceLevelpublic void setComplianceLevel(PatchComplianceLevel complianceLevel)
A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following: Unspecified, Critical, High, Medium, Low, and Informational.
complianceLevel - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels
include the following: Unspecified, Critical, High, Medium, Low, and Informational.PatchComplianceLevelpublic PatchRule withComplianceLevel(PatchComplianceLevel complianceLevel)
A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels include the following: Unspecified, Critical, High, Medium, Low, and Informational.
complianceLevel - A compliance severity level for all approved patches in a patch baseline. Valid compliance severity levels
include the following: Unspecified, Critical, High, Medium, Low, and Informational.PatchComplianceLevelpublic void setApproveAfterDays(Integer approveAfterDays)
The number of days after the release date of each patch matched by the rule that the patch is marked as approved
in the patch baseline. For example, a value of 7 means that patches are approved seven days after
they are released.
approveAfterDays - The number of days after the release date of each patch matched by the rule that the patch is marked as
approved in the patch baseline. For example, a value of 7 means that patches are approved
seven days after they are released.public Integer getApproveAfterDays()
The number of days after the release date of each patch matched by the rule that the patch is marked as approved
in the patch baseline. For example, a value of 7 means that patches are approved seven days after
they are released.
7 means that patches are approved
seven days after they are released.public PatchRule withApproveAfterDays(Integer approveAfterDays)
The number of days after the release date of each patch matched by the rule that the patch is marked as approved
in the patch baseline. For example, a value of 7 means that patches are approved seven days after
they are released.
approveAfterDays - The number of days after the release date of each patch matched by the rule that the patch is marked as
approved in the patch baseline. For example, a value of 7 means that patches are approved
seven days after they are released.public void setEnableNonSecurity(Boolean enableNonSecurity)
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is 'false'. Applies to Linux instances only.
enableNonSecurity - For instances identified by the approval rule filters, enables a patch baseline to apply non-security
updates available in the specified repository. The default value is 'false'. Applies to Linux instances
only.public Boolean getEnableNonSecurity()
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is 'false'. Applies to Linux instances only.
public PatchRule withEnableNonSecurity(Boolean enableNonSecurity)
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is 'false'. Applies to Linux instances only.
enableNonSecurity - For instances identified by the approval rule filters, enables a patch baseline to apply non-security
updates available in the specified repository. The default value is 'false'. Applies to Linux instances
only.public Boolean isEnableNonSecurity()
For instances identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is 'false'. Applies to Linux instances only.
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.