@Generated(value="software.amazon.awssdk:codegen") public final class AutomationRulesConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomationRulesConfig.Builder,AutomationRulesConfig>
Defines the configuration of an automation rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AutomationRulesConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<AutomationRulesAction> |
actions()
One or more actions to update finding fields if a finding matches the defined criteria of the rule.
|
static AutomationRulesConfig.Builder |
builder() |
Instant |
createdAt()
A timestamp that indicates when the rule was created.
|
String |
createdBy()
The principal that created a rule.
|
AutomationRulesFindingFilters |
criteria()
A set of Amazon Web
Services Security Finding Format finding field attributes and corresponding expected values that Security Hub
uses to filter findings.
|
String |
description()
A description of the rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasActions()
For responses, this returns true if the service returned a value for the Actions property.
|
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) of a 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 AutomationRulesConfig.Builder> |
serializableBuilderClass() |
AutomationRulesConfig.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) of a 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.
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.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.
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.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 AutomationRulesFindingFilters criteria()
A set of Amazon Web Services Security Finding Format finding field attributes and corresponding expected values that Security Hub uses to filter findings. If a rule is enabled and a finding matches the conditions specified in this parameter, Security Hub applies the rule action to the finding.
public final boolean hasActions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<AutomationRulesAction> actions()
One or more actions to update finding fields if a finding matches the defined criteria of the rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasActions() method.
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 AutomationRulesConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutomationRulesConfig.Builder,AutomationRulesConfig>public static AutomationRulesConfig.Builder builder()
public static Class<? extends AutomationRulesConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.