public ReservedInstancesListing withInstanceCounts(InstanceCount... instanceCounts) {
        if (this.instanceCounts == null) {
            setInstanceCounts(new com.amazonaws.internal.SdkInternalList<InstanceCount>(instanceCounts.length));
        }
        for (InstanceCount ele : instanceCounts) {
            this.instanceCounts.add(ele);
        }
        return this;
    }
public ReservedInstancesListing withInstanceCounts ( InstanceCount ... instanceCounts ) { if ( this . instanceCounts == null ) { setInstanceCounts ( new com . amazonaws . internal . SdkInternalList < InstanceCount > ( instanceCounts . length ) ) ; } for ( InstanceCount ele : instanceCounts ) { this . instanceCounts . add ( ele ) ; } return this ; }
<p>
The number of instances in this state.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstanceCounts(java.util.Collection)} or {@link #withInstanceCounts(java.util.Collection)} if you want
to override the existing values.
</p>

@param instanceCounts
The number of instances in this state.
@return Returns a reference to this object so that method calls can be chained together.