@Generated(value="software.amazon.awssdk:codegen") public final class CreateAutomationRuleRequest extends SecurityHubRequest implements ToCopyableBuilder<CreateAutomationRuleRequest.Builder,CreateAutomationRuleRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateAutomationRuleRequest.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 CreateAutomationRuleRequest.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 |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Boolean |
isTerminal()
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria.
|
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 CreateAutomationRuleRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
User-defined tags that help you label the purpose of a rule.
|
CreateAutomationRuleRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasTags()
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 Map<String,String> tags()
User-defined tags that help you label the purpose of a 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 hasTags() method.
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 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 CreateAutomationRuleRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateAutomationRuleRequest.Builder,CreateAutomationRuleRequest>toBuilder in class SecurityHubRequestpublic static CreateAutomationRuleRequest.Builder builder()
public static Class<? extends CreateAutomationRuleRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.