public void setAction(RuleAction action) {
        this.action = action;
    }
<p>
The action for the rule.
</p>

@param action
       The action for the rule.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/RuleUpdateSuccess.java