public CreateRuleRequest withPublishStatus(RulePublishStatus publishStatus) {
        this.publishStatus = publishStatus.toString();
        return this;
    }
<p>
The publish status of the rule.
</p>

@param publishStatus
       The publish status of the rule.
@return Returns a reference to this object so that method calls can be chained together.
@see RulePublishStatus
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleRequest.java