public RuleAction withForward(ForwardAction forward) {
        setForward(forward);
        return this;
    }
<p>
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
</p>

@param forward
       The forward action. Traffic that matches the rule is forwarded to the specified target groups.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/RuleAction.java