@Generated(value="software.amazon.awssdk:codegen") public final class AutomationRulesMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomationRulesMetadata.Builder,AutomationRulesMetadata>
Metadata for automation rules in the calling account. The response includes rules with a RuleStatus of
ENABLED and DISABLED.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AutomationRulesMetadata.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AutomationRulesMetadata.Builder |
builder() |
Instant |
createdAt()
A timestamp that indicates when the rule was created.
|
String |
createdBy()
The principal that created a rule.
|
String |
description()
A description of the rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
isTerminal()
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria.
|
String |
ruleArn()
The Amazon Resource Name (ARN) for the rule.
|
String |
ruleName()
The name of the rule.
|
Integer |
ruleOrder()
An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings.
|
RuleStatus |
ruleStatus()
Whether the rule is active after it is created.
|
String |
ruleStatusAsString()
Whether the rule is active after it is created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutomationRulesMetadata.Builder> |
serializableBuilderClass() |
AutomationRulesMetadata.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedAt()
A timestamp that indicates when the rule was most recently updated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String ruleArn()
The Amazon Resource Name (ARN) for the rule.
public final RuleStatus ruleStatus()
Whether the rule is active after it is created. If this parameter is equal to ENABLED, Security Hub
starts applying the rule to findings and finding updates after the rule is created. To change the value of this
parameter after creating a rule, use
BatchUpdateAutomationRules .
If the service returns an enum value that is not available in the current SDK version, ruleStatus will
return RuleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ruleStatusAsString().
ENABLED,
Security Hub starts applying the rule to findings and finding updates after the rule is created. To
change the value of this parameter after creating a rule, use
BatchUpdateAutomationRules .RuleStatuspublic final String ruleStatusAsString()
Whether the rule is active after it is created. If this parameter is equal to ENABLED, Security Hub
starts applying the rule to findings and finding updates after the rule is created. To change the value of this
parameter after creating a rule, use
BatchUpdateAutomationRules .
If the service returns an enum value that is not available in the current SDK version, ruleStatus will
return RuleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ruleStatusAsString().
ENABLED,
Security Hub starts applying the rule to findings and finding updates after the rule is created. To
change the value of this parameter after creating a rule, use
BatchUpdateAutomationRules .RuleStatuspublic final Integer ruleOrder()
An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
public final String ruleName()
The name of the rule.
public final String description()
A description of the rule.
public final Boolean isTerminal()
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This
is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If the
value of this field is set to true for a rule, Security Hub applies the rule action to a finding
that matches the rule criteria and doesn't evaluate other rules for the finding.
The default value of
this field is false.
true for a rule, Security Hub
applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for
the finding.
The default value of this field is false.public final Instant createdAt()
A timestamp that indicates when the rule was created.
Uses the date-time format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z.
Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z.
public final Instant updatedAt()
A timestamp that indicates when the rule was most recently updated.
Uses the date-time format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z.
Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z.
public final String createdBy()
The principal that created a rule.
public AutomationRulesMetadata.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutomationRulesMetadata.Builder,AutomationRulesMetadata>public static AutomationRulesMetadata.Builder builder()
public static Class<? extends AutomationRulesMetadata.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.