public ListRulesRequest withNamePrefix(String namePrefix) {
        setNamePrefix(namePrefix);
        return this;
    }
<p>
The prefix matching the rule name.
</p>

@param namePrefix
       The prefix matching the rule name.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/ListRulesRequest.java