public CreateAutomationRuleRequest withRuleStatus(RuleStatus ruleStatus) {
        this.ruleStatus = ruleStatus.toString();
        return this;
    }
<p>
Whether the rule is active after it is created. If this parameter is equal to <code>ENABLED</code>, Security Hub
starts applying the rule to findings and finding updates after the rule is created. To change the value of this
parameter after creating a rule, use <a
href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateAutomationRules.html">
<code>BatchUpdateAutomationRules</code> </a>.
</p>

@param ruleStatus
       Whether the rule is active after it is created. If this parameter is equal to <code>ENABLED</code>,
       Security Hub starts applying the rule to findings and finding updates after the rule is created. To change
       the value of this parameter after creating a rule, use <a
       href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateAutomationRules.html">
       <code>BatchUpdateAutomationRules</code> </a>.
@return Returns a reference to this object so that method calls can be chained together.
@see RuleStatus
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/CreateAutomationRuleRequest.java