public RuleGroupSourceStatefulRulesDetails withAction(String action) {
        setAction(action);
        return this;
    }
<p>
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful
rule criteria.
</p>

@param action
       Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the
       stateful rule criteria.
@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/RuleGroupSourceStatefulRulesDetails.java