public MonitorInstancesResult withInstanceMonitorings(InstanceMonitoring... instanceMonitorings) {
        if (this.instanceMonitorings == null) {
            setInstanceMonitorings(new com.amazonaws.internal.SdkInternalList<InstanceMonitoring>(instanceMonitorings.length));
        }
        for (InstanceMonitoring ele : instanceMonitorings) {
            this.instanceMonitorings.add(ele);
        }
        return this;
    }
public MonitorInstancesResult withInstanceMonitorings ( InstanceMonitoring ... instanceMonitorings ) { if ( this . instanceMonitorings == null ) { setInstanceMonitorings ( new com . amazonaws . internal . SdkInternalList < InstanceMonitoring > ( instanceMonitorings . length ) ) ; } for ( InstanceMonitoring ele : instanceMonitorings ) { this . instanceMonitorings . add ( ele ) ; } return this ; }
<p>
The monitoring information.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstanceMonitorings(java.util.Collection)} or {@link #withInstanceMonitorings(java.util.Collection)}
if you want to override the existing values.
</p>

@param instanceMonitorings
The monitoring information.
@return Returns a reference to this object so that method calls can be chained together.