public StageConditionState withConditionStates(ConditionState... conditionStates) {
        if (this.conditionStates == null) {
            setConditionStates(new java.util.ArrayList<ConditionState>(conditionStates.length));
        }
        for (ConditionState ele : conditionStates) {
            this.conditionStates.add(ele);
        }
        return this;
    }
<p>
The states of the conditions for a run of a condition for a stage.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setConditionStates(java.util.Collection)} or {@link #withConditionStates(java.util.Collection)} if you
want to override the existing values.
</p>

@param conditionStates
       The states of the conditions for a run of a condition for a stage.
@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/StageConditionState.java