@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.
|
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 instances identified by the approval rule filters, enables a patch baseline to apply non-security updates
available in the specified repository.
|
boolean |
equals(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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public PatchFilterGroup patchFilterGroup()
The patch filter group that defines the criteria for the rule.
public 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.
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()
.
PatchComplianceLevel
public String complianceLevelAsString()
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.
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()
.
PatchComplianceLevel
public 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.
7
means that patches are approved
seven days after they are released.public 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.
public PatchRule.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PatchRule.Builder,PatchRule>
public static PatchRule.Builder builder()
public static Class<? extends PatchRule.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.