public void setRule(String rule) {
        this.rule = rule;
    }
<p>
The name of the rule.
</p>

@param rule
       The name of the rule.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/PutTargetsRequest.java