public ConditionState withRuleStates(RuleState... ruleStates) {
        if (this.ruleStates == null) {
            setRuleStates(new java.util.ArrayList<RuleState>(ruleStates.length));
        }
        for (RuleState ele : ruleStates) {
            this.ruleStates.add(ele);
        }
        return this;
    }
<p>
The state of the rules for the condition.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRuleStates(java.util.Collection)} or {@link #withRuleStates(java.util.Collection)} if you want to
override the existing values.
</p>

@param ruleStates
       The state of the rules for the condition.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/ConditionState.java