@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 |
getApproveUntilDate()
The cutoff date for auto approval of released patches.
|
String |
getComplianceLevel()
A compliance severity level for all approved patches in a patch baseline.
|
Boolean |
getEnableNonSecurity()
For managed nodes 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 managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates
available in the specified repository.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 |
setApproveUntilDate(String approveUntilDate)
The cutoff date for auto approval of released patches.
|
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 managed nodes 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.
|
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 |
withApproveUntilDate(String approveUntilDate)
The cutoff date for auto approval of released patches.
|
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 managed nodes 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.
complianceLevel
- A compliance severity level for all approved patches in a patch baseline.PatchComplianceLevel
public String getComplianceLevel()
A compliance severity level for all approved patches in a patch baseline.
PatchComplianceLevel
public PatchRule withComplianceLevel(String complianceLevel)
A compliance severity level for all approved patches in a patch baseline.
complianceLevel
- A compliance severity level for all approved patches in a patch baseline.PatchComplianceLevel
public void setComplianceLevel(PatchComplianceLevel complianceLevel)
A compliance severity level for all approved patches in a patch baseline.
complianceLevel
- A compliance severity level for all approved patches in a patch baseline.PatchComplianceLevel
public PatchRule withComplianceLevel(PatchComplianceLevel complianceLevel)
A compliance severity level for all approved patches in a patch baseline.
complianceLevel
- A compliance severity level for all approved patches in a patch baseline.PatchComplianceLevel
public 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. Not supported on Debian Server or Ubuntu Server.
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. Not supported on Debian Server or Ubuntu Server.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. Not supported on Debian Server or Ubuntu Server.
7
means that patches are approved
seven days after they are released. Not supported on Debian Server or Ubuntu Server.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. Not supported on Debian Server or Ubuntu Server.
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. Not supported on Debian Server or Ubuntu Server.public void setApproveUntilDate(String approveUntilDate)
The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
approveUntilDate
- The cutoff date for auto approval of released patches. Any patches released on or before this date are
installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
public String getApproveUntilDate()
The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
public PatchRule withApproveUntilDate(String approveUntilDate)
The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
approveUntilDate
- The cutoff date for auto approval of released patches. Any patches released on or before this date are
installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
public void setEnableNonSecurity(Boolean enableNonSecurity)
For managed nodes 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 managed nodes
only.
enableNonSecurity
- For managed nodes 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
managed nodes only.public Boolean getEnableNonSecurity()
For managed nodes 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 managed nodes
only.
false
. Applies to Linux
managed nodes only.public PatchRule withEnableNonSecurity(Boolean enableNonSecurity)
For managed nodes 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 managed nodes
only.
enableNonSecurity
- For managed nodes 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
managed nodes only.public Boolean isEnableNonSecurity()
For managed nodes 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 managed nodes
only.
false
. Applies to Linux
managed nodes only.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.