@Generated(value="software.amazon.awssdk:codegen") public final class UpdateAutomationRulesRequestItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UpdateAutomationRulesRequestItem.Builder,UpdateAutomationRulesRequestItem>
Specifies the parameters to update in an existing automation rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateAutomationRulesRequestItem.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<AutomationRulesAction> |
actions()
One or more actions to update finding fields if a finding matches the conditions specified in
Criteria. |
static UpdateAutomationRulesRequestItem.Builder |
builder() |
AutomationRulesFindingFilters |
criteria()
A set of ASFF 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) 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 UpdateAutomationRulesRequestItem.Builder> |
serializableBuilderClass() |
UpdateAutomationRulesRequestItem.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
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 description()
A description of the rule.
public final String ruleName()
The name 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 ASFF 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 conditions specified in
Criteria.
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.
Criteria.public UpdateAutomationRulesRequestItem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateAutomationRulesRequestItem.Builder,UpdateAutomationRulesRequestItem>public static UpdateAutomationRulesRequestItem.Builder builder()
public static Class<? extends UpdateAutomationRulesRequestItem.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.