public AwsWafRuleGroupRulesActionDetails withType(String type) {
        setType(type);
        return this;
    }
<p>
The action that WAF should take on a web request when it matches the rule's statement.
</p>

@param type
       The action that WAF should take on a web request when it matches the rule's statement.
@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/AwsWafRuleGroupRulesActionDetails.java