Interface UpdateAutomationRulesRequestItem.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<UpdateAutomationRulesRequestItem.Builder,UpdateAutomationRulesRequestItem>,SdkBuilder<UpdateAutomationRulesRequestItem.Builder,UpdateAutomationRulesRequestItem>,SdkPojo
- Enclosing class:
- UpdateAutomationRulesRequestItem
public static interface UpdateAutomationRulesRequestItem.Builder extends SdkPojo, CopyableBuilder<UpdateAutomationRulesRequestItem.Builder,UpdateAutomationRulesRequestItem>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateAutomationRulesRequestItem.Builderactions(Collection<AutomationRulesAction> actions)One or more actions to update finding fields if a finding matches the conditions specified inCriteria.UpdateAutomationRulesRequestItem.Builderactions(Consumer<AutomationRulesAction.Builder>... actions)One or more actions to update finding fields if a finding matches the conditions specified inCriteria.UpdateAutomationRulesRequestItem.Builderactions(AutomationRulesAction... actions)One or more actions to update finding fields if a finding matches the conditions specified inCriteria.default UpdateAutomationRulesRequestItem.Buildercriteria(Consumer<AutomationRulesFindingFilters.Builder> criteria)A set of ASFF finding field attributes and corresponding expected values that Security Hub uses to filter findings.UpdateAutomationRulesRequestItem.Buildercriteria(AutomationRulesFindingFilters criteria)A set of ASFF finding field attributes and corresponding expected values that Security Hub uses to filter findings.UpdateAutomationRulesRequestItem.Builderdescription(String description)A description of the rule.UpdateAutomationRulesRequestItem.BuilderisTerminal(Boolean isTerminal)Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria.UpdateAutomationRulesRequestItem.BuilderruleArn(String ruleArn)The Amazon Resource Name (ARN) for the rule.UpdateAutomationRulesRequestItem.BuilderruleName(String ruleName)The name of the rule.UpdateAutomationRulesRequestItem.BuilderruleOrder(Integer ruleOrder)An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings.UpdateAutomationRulesRequestItem.BuilderruleStatus(String ruleStatus)Whether the rule is active after it is created.UpdateAutomationRulesRequestItem.BuilderruleStatus(RuleStatus ruleStatus)Whether the rule is active after it is created.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
ruleArn
UpdateAutomationRulesRequestItem.Builder ruleArn(String ruleArn)
The Amazon Resource Name (ARN) for the rule.
- Parameters:
ruleArn- The Amazon Resource Name (ARN) for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleStatus
UpdateAutomationRulesRequestItem.Builder ruleStatus(String 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, useBatchUpdateAutomationRules.- Parameters:
ruleStatus- Whether the rule is active after it is created. If this parameter is equal toENABLED, 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, useBatchUpdateAutomationRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleStatus,RuleStatus
-
ruleStatus
UpdateAutomationRulesRequestItem.Builder ruleStatus(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, useBatchUpdateAutomationRules.- Parameters:
ruleStatus- Whether the rule is active after it is created. If this parameter is equal toENABLED, 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, useBatchUpdateAutomationRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleStatus,RuleStatus
-
ruleOrder
UpdateAutomationRulesRequestItem.Builder ruleOrder(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
UpdateAutomationRulesRequestItem.Builder description(String description)
A description of the rule.
- Parameters:
description- A description of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleName
UpdateAutomationRulesRequestItem.Builder ruleName(String ruleName)
The name of the rule.
- Parameters:
ruleName- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isTerminal
UpdateAutomationRulesRequestItem.Builder isTerminal(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 a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
- Parameters:
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 a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
UpdateAutomationRulesRequestItem.Builder criteria(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
default UpdateAutomationRulesRequestItem.Builder criteria(Consumer<AutomationRulesFindingFilters.Builder> 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.
This is a convenience method that creates an instance of theAutomationRulesFindingFilters.Builderavoiding the need to create one manually viaAutomationRulesFindingFilters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocriteria(AutomationRulesFindingFilters).- Parameters:
criteria- a consumer that will call methods onAutomationRulesFindingFilters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
criteria(AutomationRulesFindingFilters)
-
actions
UpdateAutomationRulesRequestItem.Builder actions(Collection<AutomationRulesAction> actions)
One or more actions to update finding fields if a finding matches the conditions specified in
Criteria.- Parameters:
actions- One or more actions to update finding fields if a finding matches the conditions specified inCriteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
UpdateAutomationRulesRequestItem.Builder actions(AutomationRulesAction... actions)
One or more actions to update finding fields if a finding matches the conditions specified in
Criteria.- Parameters:
actions- One or more actions to update finding fields if a finding matches the conditions specified inCriteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
UpdateAutomationRulesRequestItem.Builder actions(Consumer<AutomationRulesAction.Builder>... actions)
One or more actions to update finding fields if a finding matches the conditions specified in
This is a convenience method that creates an instance of theCriteria.AutomationRulesAction.Builderavoiding the need to create one manually viaAutomationRulesAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actions(List.) - Parameters:
actions- a consumer that will call methods onAutomationRulesAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#actions(java.util.Collection)
-
-