public DescribeInstancePatchStatesForPatchGroupResult 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;
    }
public DescribeInstancePatchStatesForPatchGroupResult 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 instances.
</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 instances.
@return Returns a reference to this object so that method calls can be chained together.