@Generated(value="software.amazon.awssdk:codegen") public final class PatchRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PatchRule.Builder,PatchRule>
Defines an approval rule for a patch baseline.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PatchRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
approveUntilDate()
The cutoff date for auto approval of released patches.
|
static PatchRule.Builder |
builder() |
PatchComplianceLevel |
complianceLevel()
A compliance severity level for all approved patches in a patch baseline.
|
String |
complianceLevelAsString()
A compliance severity level for all approved patches in a patch baseline.
|
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.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
PatchFilterGroup |
patchFilterGroup()
The patch filter group that defines the criteria for the rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PatchRule.Builder> |
serializableBuilderClass() |
PatchRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final PatchFilterGroup patchFilterGroup()
The patch filter group that defines the criteria for the rule.
public final PatchComplianceLevel complianceLevel()
A compliance severity level for all approved patches in a patch baseline.
If the service returns an enum value that is not available in the current SDK version, complianceLevel
will return PatchComplianceLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from complianceLevelAsString().
PatchComplianceLevelpublic final String complianceLevelAsString()
A compliance severity level for all approved patches in a patch baseline.
If the service returns an enum value that is not available in the current SDK version, complianceLevel
will return PatchComplianceLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from complianceLevelAsString().
PatchComplianceLevelpublic final 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.
7 means that patches are approved
seven days after they are released. Not supported on Debian Server or Ubuntu Server.public final 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.
Enter dates in the format YYYY-MM-DD. For example, 2021-12-31.
public final 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.
false. Applies to Linux
managed nodes only.public PatchRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PatchRule.Builder,PatchRule>public static PatchRule.Builder builder()
public static Class<? extends PatchRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.