public AwsWafRegionalRuleGroupRulesDetails withAction(AwsWafRegionalRuleGroupRulesActionDetails action) {
        setAction(action);
        return this;
    }
<p>
The action that WAF should take on a web request when it matches the criteria defined in the rule.
</p>

@param action
       The action that WAF should take on a web request when it matches the criteria defined in the rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsWafRegionalRuleGroupRulesDetails.java