public DescribeInstancePatchStatesResult withInstancePatchStates(InstancePatchState... instancePatchStates) {
        if (this.instancePatchStates == null) {
            setInstancePatchStates(new com.amazonaws.internal.SdkInternalList<InstancePatchState>(instancePatchStates.length));
        }
        for (InstancePatchState ele : instancePatchStates) {
            this.instancePatchStates.add(ele);
        }
        return this;
    }
<p>
The high-level patch state for the requested managed nodes.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstancePatchStates(java.util.Collection)} or {@link #withInstancePatchStates(java.util.Collection)}
if you want to override the existing values.
</p>

@param instancePatchStates
       The high-level patch state for the requested managed nodes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/DescribeInstancePatchStatesResult.java